|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.qswing.SelectableGroup
Group of Selectable Objects.
Constructor Summary | |
SelectableGroup()
Constructs new SelectableGroup object. |
|
SelectableGroup(int initialCapacity)
Constructs new SelectableGroup object. |
Method Summary | |
void |
add(Selectable selectable)
Adds selectable to this group. |
Selectable |
getSelectable(int index)
Returns selectable at specified index. |
int |
getSelectableCount()
Returns the number of selectable objects in this group. |
java.util.Iterator |
getSelectables()
Returns iterator over the selectable elements of this group. |
Selectable |
getSelected()
Returns selectable object. |
boolean |
isSelected(Selectable selectable)
Returns true if specified selectable object is member of this group and it is selected; otherwise returns false. |
void |
remove(Selectable selectable)
Removes selectable from this group. |
void |
removeAll()
Removes all selectables. |
boolean |
setSelected(Selectable selectable)
Sets selected state for the specified selectable object in the group. |
void |
trimToSize()
Trims the capacity of group to be the same as the size of the group. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SelectableGroup()
public SelectableGroup(int initialCapacity)
initialCapacity
- the initial capacity of the group
java.lang.IllegalArgumentException
- if the initial capacity is negativeMethod Detail |
public void add(Selectable selectable)
selectable
- the selectable to be addedpublic void remove(Selectable selectable)
selectable
- the selectable to be removedpublic void removeAll()
public int getSelectableCount()
public Selectable getSelectable(int index)
index
- the index
public void trimToSize()
public java.util.Iterator getSelectables()
public boolean isSelected(Selectable selectable)
selectable
- the selectable object.
public Selectable getSelected()
public boolean setSelected(Selectable selectable)
selectable
- the selectable object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |