All Classes Namespaces Files Functions Variables
fi.jyu.mit.fxgui.Chooser< T > Interface Reference

Simple interface for all different choosers. More...

Inheritance diagram for fi.jyu.mit.fxgui.Chooser< T >:
fi.jyu.mit.fxgui.ComboBoxChooser< T > fi.jyu.mit.fxgui.ListChooser< T > fi.jyu.mit.fxgui.MultipleChooser< T >

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.
 
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.
 

Detailed Description

Simple interface for all different choosers.

Author
terop
Version
13.1.2017
Parameters
<T>mitä luokkaa tallennetaan

Definition at line 11 of file Chooser.java.

Member Function Documentation

void fi.jyu.mit.fxgui.Chooser< T >.add ( String  name,
object 
)

Adds a single object to the system.

Parameters
namename to be displayed in gui
objectobject 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 ( object)

Adds only the object to the system.

Parameters
objectstored 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.

Parameters
namestring 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.

Parameters
eventto 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.

Returns
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.

Returns
selected 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.

Returns
text shown on gui

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.

Parameters
itemmistä poistetaan
Returns
ilman 1. alleviivaa

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.

Parameters
jonoA 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.

Parameters
rivitA 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.

Parameters
indexitem to be selected
Returns
old selected index

Implemented in fi.jyu.mit.fxgui.ListChooser< T >, and fi.jyu.mit.fxgui.ComboBoxChooser< T >.


The documentation for this interface was generated from the following file: