|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xmlhammer.gui.util.SelectablePanelGroup
public class SelectablePanelGroup
Put comment...
| Field Summary | |
|---|---|
protected java.util.ArrayList<SelectablePanel> |
panels
|
(package private) SelectablePanel |
selection
The current selection. |
| Constructor Summary | |
|---|---|
SelectablePanelGroup()
default constructor |
|
| Method Summary | |
|---|---|
void |
add(SelectablePanel p)
Adds the panel to the group. |
java.util.Iterator<SelectablePanel> |
getElements()
Returns all the panels that are participating in this group. |
int |
getPanelCount()
Returns the number of panels in the group. |
SelectablePanel |
getSelection()
Returns the model of the selected button. |
boolean |
isSelected(SelectablePanel p)
Returns whether a SelectablePanel is selected. |
void |
remove(SelectablePanel p)
Removes the panel from the group. |
void |
setSelected(SelectablePanel p,
boolean b)
Sets the selected value for the SelectablePanel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList<SelectablePanel> panels
SelectablePanel selection
| Constructor Detail |
|---|
public SelectablePanelGroup()
| Method Detail |
|---|
public void add(SelectablePanel p)
p - the panel to be addedpublic void remove(SelectablePanel p)
p - the panel to be removedpublic java.util.Iterator<SelectablePanel> getElements()
Enumeration of the panels in this grouppublic SelectablePanel getSelection()
public void setSelected(SelectablePanel p,
boolean b)
SelectablePanel.
Only one panel in the group may be selected at a time.
p - the SelectablePanelb - true if this panel is to be
selected, otherwise falsepublic boolean isSelected(SelectablePanel p)
SelectablePanel is selected.
true if the panel is selected,
otherwise returns falsepublic int getPanelCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||