public interface JFSlippagePanel extends JFComponent<javax.swing.JComponent>
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener listener)
Adds change listener to spinner.
|
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 |
removeChangeListener(javax.swing.event.ChangeListener listener)
Removes change listener from spinner.
|
void |
setEnabled(boolean enabled)
Enables/disables slippage value editing.
|
void |
setInstrument(Instrument instrument)
Sets instrument for which the slippage 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 setEnabled(boolean enabled)
enabled
- true
if editing is enabled, false
otherwisevoid setInstrument(Instrument instrument)
instrument
- new instrumentvoid addChangeListener(javax.swing.event.ChangeListener listener)
listener
- change listenervoid removeChangeListener(javax.swing.event.ChangeListener listener)
listener
- change listenerCopyright © 2024. All rights reserved.