public interface JFPriceSpinner extends JFComponent<javax.swing.JSpinner>
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getLastValidValue()
Returns last valid value of spinner.
|
java.math.BigDecimal |
getValue()
Returns current value of spinner.
|
boolean |
isValidValue()
Checks validity of current spinner value.
|
void |
setDefaultEntryPrice(java.math.BigDecimal curPrice,
IEngine.OrderCommand command)
Sets value of spinner corresponding to settings for default order entry price.
|
void |
setInstrument(Instrument instrument)
Sets instrument for which the price is selected.
|
void |
setValue(java.math.BigDecimal value)
Sets value of spinner.
|
getComponent, setAllSizes
java.math.BigDecimal getValue()
void setValue(java.math.BigDecimal value)
value
- new valueboolean isValidValue()
true
if current value is valid, false
otherwisejava.math.BigDecimal getLastValidValue()
void setInstrument(Instrument instrument)
instrument
- new instrumentvoid setDefaultEntryPrice(java.math.BigDecimal curPrice, IEngine.OrderCommand command)
curPrice
- current market pricecommand
- order commandCopyright © 2024. All rights reserved.