A custom ListView control that supports easy addition of items in Scene Builder. More...
Public Member Functions | |
ListChooser () | |
Initializes the control. | |
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. | |
void | setRivit (String jono) |
Sets the rows. | |
void | setRivit (String[] rivit) |
Sets the rows. | |
T | getSelectedObject () |
Palauttaa valitun olion tai null. | |
String | getRivit () |
Returns the contents of the ListChooser as a multiline string. | |
void | setNollataanko (boolean reset) |
Sets the value if the component should be reset after the original example data. | |
boolean | getNollataanko () |
Returns if the component was selected to be cleared. | |
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. | |
void | addSelectionListener (Consumer< T > event) |
Adds the selection change listener to the component. | |
String | removeMnemonic (String item) |
Poistetaan alleviiva. | |
Private Member Functions | |
void | setRows (String[] strings) |
Private Attributes | |
StringProperty | rivit = new SimpleStringProperty("\n") |
BooleanProperty | nollataanko = new SimpleBooleanProperty(false) |
A custom ListView control that supports easy addition of items in Scene Builder.
<T> | mitä luokkaa tallennetaan |
Definition at line 23 of file ListChooser.java.
|
inline |
Initializes the control.
Definition at line 32 of file ListChooser.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 44 of file ListChooser.java.
|
inline |
Addes the given object to the list.
object | tallennettava olio |
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 54 of file ListChooser.java.
|
inline |
Adds example text to the list.
text | teksti joka näytetään |
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 64 of file ListChooser.java.
|
inline |
Adds the selection change listener to the component.
event | to listen to |
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 174 of file ListChooser.java.
|
inline |
Clears the ObservableList that holds the objects.
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 73 of file ListChooser.java.
|
inline |
Returns if the component was selected to be cleared.
Definition at line 147 of file ListChooser.java.
|
inline |
Returns the contents of the ListChooser as a multiline string.
Definition at line 129 of file ListChooser.java.
|
inline |
Returns the first selected index.
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 160 of file ListChooser.java.
|
inline |
Palauttaa valitun olion tai null.
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 117 of file ListChooser.java.
|
inline |
Returns the first selected objects gui text.
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 153 of file ListChooser.java.
|
inline |
Poistetaan alleviiva.
item | mistä poistetaan |
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 192 of file ListChooser.java.
|
inline |
Sets the value if the component should be reset after the original example data.
reset | should it be reset |
Definition at line 138 of file ListChooser.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 95 of file ListChooser.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 104 of file ListChooser.java.
|
inlineprivate |
Definition at line 78 of file ListChooser.java.
|
inline |
Sets item in index selected.
index | item to be selected |
Implements fi.jyu.mit.fxgui.Chooser< T >.
Definition at line 166 of file ListChooser.java.
|
private |
Definition at line 26 of file ListChooser.java.
|
private |
Definition at line 25 of file ListChooser.java.