|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jmex.bui.BComponent
com.jmex.bui.BContainer
com.jmex.bui.BList
public class BList
Displays a list of selectable entries and fires an ActionEvent when the selected value
changes. Each entry is displayed as a string obtained by calling Object.toString() on the
supplied values.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jmex.bui.BContainer |
|---|
BContainer.ChildOp |
| Field Summary | |
|---|---|
protected int |
_selidx
The index of the current selection (or -1 for none). |
protected ActionListener |
_slistener
Listens for button selections. |
protected java.util.ArrayList<java.lang.Object> |
_values
The values contained in the list. |
static java.lang.String |
SELECT
The action fired when the list selection changes. |
| Fields inherited from class com.jmex.bui.BContainer |
|---|
_children, _layout |
| Fields inherited from class com.jmex.bui.BComponent |
|---|
_alpha, _backgrounds, _bbuf, _borders, _colors, _cursor, _enabled, _height, _hover, _insets, _listeners, _parent, _preferredSize, _properties, _styleClass, _tipmouse, _tipStyle, _tiptext, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES |
| Constructor Summary | |
|---|---|
BList()
Creates an empty list. |
|
BList(java.lang.Object[] values)
Creates a list and populates it with the supplied values. |
|
| Method Summary | |
|---|---|
void |
addValue(java.lang.Object value)
Adds a value to the list. |
protected java.lang.String |
getDefaultStyleClass()
Returns the default stylesheet class to be used for all instances of this component. |
java.lang.Object |
getSelectedValue()
Returns the currently selected value. |
boolean |
removeValue(java.lang.Object value)
Removes a value from the list, if it is present. |
void |
setSelectedValue(java.lang.Object value)
Sets the selected value. |
| Methods inherited from class com.jmex.bui.BContainer |
|---|
add, add, add, add, applyOperation, computePreferredSize, getComponent, getComponentCount, getComponentIndex, getHitComponent, getLayoutManager, getNextFocus, getPreviousFocus, layout, remove, remove, removeAll, renderComponent, replace, setAlpha, setEnabled, setLayoutManager, setVisible, validate, wasAdded, wasRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SELECT
protected java.util.ArrayList<java.lang.Object> _values
protected int _selidx
protected ActionListener _slistener
| Constructor Detail |
|---|
public BList()
public BList(java.lang.Object[] values)
| Method Detail |
|---|
public void addValue(java.lang.Object value)
public boolean removeValue(java.lang.Object value)
public java.lang.Object getSelectedValue()
null for nonepublic void setSelectedValue(java.lang.Object value)
value - the value to select, or null for noneprotected java.lang.String getDefaultStyleClass()
BComponent
getDefaultStyleClass in class BContainer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||