|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.data.DataObject
ewe.util.Vector
ewe.ui.CheckBoxGroup
A CheckBoxGroup object is used to group together a set of mutually exclusive mCheckBox objects. In other words, it will turn a set of mCheckBoxes into radio buttons. Furthermore, any ControlEvent.PRESSED events which are generated by the checkboxes in the group will have its target changed so that it appears as if these events are originating from the CheckBoxGroup object (if takeTarget is true).
| Field Summary | |
boolean |
exclusive
|
boolean |
takeTarget
If takeTarget is true then ControlEvent.PRESSED events generated by the individual boxes will have its target changed so that it appears to be coming from this group. |
| Constructor Summary | |
CheckBoxGroup()
|
|
| Method Summary | |
CheckBoxGroup |
addCheck(mCheckBox what)
Deprecated. - do not use this, use mCheckBox.setGroup() to add an mCheckBox. |
int |
getInt()
This returns the same value as getSelectedIndex(). |
mCheckBox |
getSelected()
Returns the mCheckBox currently selected. |
int |
getSelectedIndex()
Returns the index of the mCheckBox currently selected. |
String |
getText()
Return the label of the selected checkbox, or an empty String if none is selected. |
void |
makePanel(String[] choices,
CellPanel destination,
int columns)
This creates a set of new mCheckBox controls, each one of which is assigned a label as specified in the choices parameter. |
void |
onEvent(Event ev)
|
void |
selectIndex(int index)
Select the mCheckBox at the given index. |
void |
setInt(int value)
This calls selectIndex() with the provided value. |
void |
setText(String value)
This will turn on the checkbox in this group with a label the same as the provided String value. |
| Methods inherited from class ewe.util.Vector |
add, add, add, addAll, addAll, addAll, addCopiesFrom, addElement, clear, compare, contains, copyCopiesFrom, copyFrom, copyInto, copyInto, del, elementAt, elements, find, find, get, getCount, getFullCopy, insert, insertElementAt, isEmpty, iterator, iterator, pop, push, remove, removeAllElements, removeElementAt, set, setElementAt, setSize, size, sort, sort, toArray, toArray, toObjectArray, toString, zero |
| Methods inherited from class ewe.data.DataObject |
_getSetField, appendAllFields, compareTo, copied, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getDeclaredFieldValue, getFieldList, getFieldList, getMyFieldList, getNew |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode |
| Field Detail |
public boolean exclusive
public boolean takeTarget
| Constructor Detail |
public CheckBoxGroup()
| Method Detail |
public int getSelectedIndex()
public mCheckBox getSelected()
public void selectIndex(int index)
public void onEvent(Event ev)
onEvent in interface EventListenerpublic void setInt(int value)
setInt in interface Intablepublic int getInt()
getInt in interface Intablepublic void setText(String value)
setText in interface Textablepublic String getText()
getText in interface Textable
public void makePanel(String[] choices,
CellPanel destination,
int columns)
choices - a list of lables for each checkbox.destination - a destination panel to add to.columns - the number of columns to add.public CheckBoxGroup addCheck(mCheckBox what)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||