Simple interface for all different choosers. More...
Public Member Functions | |
void | add (String name, T object) |
Adds a single object to the system. | |
void | addSelectionListener (Consumer< T > event) |
Adds the selection change listener to the component. | |
void | add (T object) |
Adds only the object to the system. | |
void | addExample (String name) |
Adds an example string to the gui without stored object. | |
void | clear () |
Clears the components of 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. | |
void | setRivit (String jono) |
Sets the rows. | |
void | setRivit (String[] rivit) |
Sets the rows. | |
String | removeMnemonic (String item) |
Poistetaan alleviiva. | |
Simple interface for all different choosers.
<T> | mitä luokkaa tallennetaan |
Definition at line 11 of file Chooser.java.
void fi.jyu.mit.fxgui.Chooser< T >.add | ( | String | name, |
T | object | ||
) |
Adds a single object to the system.
name | name to be displayed in gui |
object | object to be stored |
Implemented in fi.jyu.mit.fxgui.ComboBoxChooser< T >, and fi.jyu.mit.fxgui.ListChooser< T >.
void fi.jyu.mit.fxgui.Chooser< T >.add | ( | T | object | ) |
Adds only the object to the system.
object | stored object |
Implemented in fi.jyu.mit.fxgui.ComboBoxChooser< T >, and fi.jyu.mit.fxgui.ListChooser< T >.
void fi.jyu.mit.fxgui.Chooser< T >.addExample | ( | String | name | ) |
Adds an example string to the gui without stored object.
name | string to be shown on gui |
Implemented in fi.jyu.mit.fxgui.ComboBoxChooser< T >, and fi.jyu.mit.fxgui.ListChooser< T >.
void fi.jyu.mit.fxgui.Chooser< T >.addSelectionListener | ( | Consumer< T > | event | ) |
Adds the selection change listener to the component.
event | to listen to |
Implemented in fi.jyu.mit.fxgui.ComboBoxChooser< T >, and fi.jyu.mit.fxgui.ListChooser< T >.
void fi.jyu.mit.fxgui.Chooser< T >.clear | ( | ) |
Clears the components of objects.
Implemented in fi.jyu.mit.fxgui.ComboBoxChooser< T >, and fi.jyu.mit.fxgui.ListChooser< T >.
int fi.jyu.mit.fxgui.Chooser< T >.getSelectedIndex | ( | ) |
Returns the first selected index.
Implemented in fi.jyu.mit.fxgui.ListChooser< T >, and fi.jyu.mit.fxgui.ComboBoxChooser< T >.
T fi.jyu.mit.fxgui.Chooser< T >.getSelectedObject | ( | ) |
Returns the first seleceted object.
Implemented in fi.jyu.mit.fxgui.ComboBoxChooser< T >, and fi.jyu.mit.fxgui.ListChooser< T >.
String fi.jyu.mit.fxgui.Chooser< T >.getSelectedText | ( | ) |
Returns the first selected objects gui text.
Implemented in fi.jyu.mit.fxgui.ListChooser< T >, and fi.jyu.mit.fxgui.ComboBoxChooser< T >.
String fi.jyu.mit.fxgui.Chooser< T >.removeMnemonic | ( | String | item | ) |
Poistetaan alleviiva.
item | mistä poistetaan |
Implemented in fi.jyu.mit.fxgui.ComboBoxChooser< T >, and fi.jyu.mit.fxgui.ListChooser< T >.
void fi.jyu.mit.fxgui.Chooser< T >.setRivit | ( | String | jono | ) |
Sets the rows.
jono | A multiline string, each line representing a single row. |
Implemented in fi.jyu.mit.fxgui.ListChooser< T >, and fi.jyu.mit.fxgui.ComboBoxChooser< T >.
void fi.jyu.mit.fxgui.Chooser< T >.setRivit | ( | String[] | rivit | ) |
Sets the rows.
rivit | A string arrays, each line representing a single row. |
Implemented in fi.jyu.mit.fxgui.ListChooser< T >, and fi.jyu.mit.fxgui.ComboBoxChooser< T >.
int fi.jyu.mit.fxgui.Chooser< T >.setSelectedIndex | ( | int | index | ) |
Sets item in index selected.
index | item to be selected |
Implemented in fi.jyu.mit.fxgui.ListChooser< T >, and fi.jyu.mit.fxgui.ComboBoxChooser< T >.