A custom ComboBox control that supports easy addition of items in Scene Builder. More...
Public Member Functions | |
ComboBoxChooser () | |
Initializes the control. | |
void | setRivit (String jono) |
Sets the rows. | |
void | setRivit (String[] rivit) |
Sets the rows. | |
String | getRivit () |
StringProperty | getRivitProperty () |
void | add (String name, T object) |
Adds the given object with given name. | |
void | add (T object) |
Addes the given object to the list. | |
void | addExample (String text) |
Adds example text to the list. | |
void | clear () |
Clears the ObservableList that holds the objects. | |
T | getSelectedObject () |
Returns the first seleceted object. | |
String | getSelectedText () |
Returns the first selected objects gui text. | |
int | getSelectedIndex () |
Returns the first selected index. | |
int | setSelectedIndex (int index) |
Sets item in index selected. | |
boolean | getSelectFirst () |
Returns the value of property getSelectFirst. | |
void | setSelectFirst (boolean value) |
Sets the value of setFirst. | |
void | addSelectionListener (Consumer< T > event) |
Adds the selection change listener to the component. | |
String | removeMnemonic (String item) |
Poistetaan alleviiva. | |
Protected Attributes | |
BooleanProperty | selectFirst = new SimpleBooleanProperty(true) |
Is the first to be selected on each run. | |
Private Member Functions | |
void | setRows (String[] strings) |
Private Attributes | |
StringProperty | rivit = new SimpleStringProperty() |
A custom ComboBox control that supports easy addition of items in Scene Builder.
<T> | Mitä luokkaa tallennetaan |
Definition at line 24 of file ComboBoxChooser.java.
|
inline |
Initializes the control.
Definition at line 34 of file ComboBoxChooser.java.
|
inline |
Adds the given object with given name.
name | objektin kohdalla näkyvä teksti |
object | tallennettava olio |
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 96 of file ComboBoxChooser.java.
|
inline |
Addes the given object to the list.
object | tallennettava olio |
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 106 of file ComboBoxChooser.java.
|
inline |
Adds example text to the list.
text | teksti joka näytetään |
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 116 of file ComboBoxChooser.java.
|
inline |
Adds the selection change listener to the component.
event | to listen to |
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 178 of file ComboBoxChooser.java.
|
inline |
Clears the ObservableList that holds the objects.
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 125 of file ComboBoxChooser.java.
|
inline |
Definition at line 77 of file ComboBoxChooser.java.
|
inline |
Definition at line 85 of file ComboBoxChooser.java.
|
inline |
Returns the first selected index.
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 146 of file ComboBoxChooser.java.
|
inline |
Returns the first seleceted object.
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 131 of file ComboBoxChooser.java.
|
inline |
Returns the first selected objects gui text.
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 139 of file ComboBoxChooser.java.
|
inline |
Returns the value of property getSelectFirst.
Definition at line 163 of file ComboBoxChooser.java.
|
inline |
Poistetaan alleviiva.
item | mistä poistetaan |
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 199 of file ComboBoxChooser.java.
|
inline |
Sets the rows.
jono | A multiline string, each line representing a single row. |
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 57 of file ComboBoxChooser.java.
|
inline |
Sets the rows.
rivit | A string arrays, each line representing a single row. |
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 65 of file ComboBoxChooser.java.
|
inlineprivate |
Definition at line 41 of file ComboBoxChooser.java.
|
inline |
Sets item in index selected.
index | item to be selected |
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 152 of file ComboBoxChooser.java.
|
inline |
Sets the value of setFirst.
value | new value |
Definition at line 172 of file ComboBoxChooser.java.
|
private |
Definition at line 25 of file ComboBoxChooser.java.
|
protected |
Is the first to be selected on each run.
Definition at line 29 of file ComboBoxChooser.java.