com.threerings.opengl.gui
Interface Selectable<T>

All Known Implementing Classes:
ButtonGroup, ColorPicker, ComboBox, List, TabbedPane

public interface Selectable<T>

Implemented by GUI components that allow selection from amongst enumerated values.


Field Summary
static String SELECT
          ActionEvent action fired when something is selected; the argument is the selected item.
 
Method Summary
 T getSelected()
          Get the selected item, if any.
 int getSelectedIndex()
          Get the index of the selected item, or -1.
 void setSelected(T item)
          Set the selected item.
 void setSelectedIndex(int index)
          Set the index of the selected item.
 

Field Detail

SELECT

static final String SELECT
ActionEvent action fired when something is selected; the argument is the selected item.

See Also:
Constant Field Values
Method Detail

getSelected

T getSelected()
Get the selected item, if any.


setSelected

void setSelected(T item)
Set the selected item.


getSelectedIndex

int getSelectedIndex()
Get the index of the selected item, or -1.


setSelectedIndex

void setSelectedIndex(int index)
Set the index of the selected item.



Copyright © 2011. All Rights Reserved.