public interface JFOrderAmountPanel extends JFComponent<javax.swing.JComponent>
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.awt.event.ActionListener listener)
Adds action listener to spinner.
|
void |
addSelectableItemListener(java.awt.event.ItemListener itemListener)
If "Amount" checkbox is visible, added itemListener is fired on any action.
|
java.math.BigDecimal |
getLastValidValue()
Returns last valid value of spinner.
|
java.math.BigDecimal |
getValue()
Returns current value of spinner.
|
java.math.BigDecimal |
getValueInMillions()
Returns last valid amount value in millions.
|
java.math.BigDecimal |
getValueInUnits()
Returns last valid amount value in units.
|
boolean |
isSelected()
When setSelectable(true) was called
|
boolean |
isValidValue()
Checks validity of current spinner value.
|
void |
removeActionListener(java.awt.event.ActionListener listener)
Removes action listener from spinner.
|
void |
removeSelectableItemListener(java.awt.event.ItemListener itemListener)
If "Amount" checkbox is visible, added itemListener is fired on any action.
|
void |
setInstrument(Instrument instrument)
Sets instrument for which the amount is selected.
|
void |
setSelectable(boolean selectable)
Switches "Amount" component between label and checkbox
|
void |
setSelected(boolean selected)
When setSelectable(true) was called
|
void |
setValue(java.math.BigDecimal value)
Sets value of spinner.
|
void |
setValueInMillions(java.math.BigDecimal valueInMillions)
Sets value of spinner in millions.
|
void |
setValueInUnits(java.math.BigDecimal valueInUnits)
Sets value of spinner in units.
|
getComponent, setAllSizes
java.math.BigDecimal getValue()
java.math.BigDecimal getValueInMillions()
java.math.BigDecimal getValueInUnits()
void setValue(java.math.BigDecimal value)
value
- new valuevoid setValueInMillions(java.math.BigDecimal valueInMillions)
valueInMillions
- new valuevoid setValueInUnits(java.math.BigDecimal valueInUnits)
valueInUnits
- new valueboolean isValidValue()
true
if current value is valid, false
otherwisejava.math.BigDecimal getLastValidValue()
void setInstrument(Instrument instrument)
instrument
- new instrumentvoid addActionListener(java.awt.event.ActionListener listener)
listener
- action listenervoid removeActionListener(java.awt.event.ActionListener listener)
listener
- action listenervoid setSelectable(boolean selectable)
selectable
- if true - checkbox, label otherwiseboolean isSelected()
void setSelected(boolean selected)
selected
- sets selection state of "Amount" checkboxvoid addSelectableItemListener(java.awt.event.ItemListener itemListener)
itemListener
- listener to addvoid removeSelectableItemListener(java.awt.event.ItemListener itemListener)
itemListener
- listener to removeCopyright © 2024. All rights reserved.