|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.widget.Items<T>
T
- the child typepublic class Items<T extends Component>
A selection of items in a container. The selection can be specified with an index, a range, a single item, an array, and a list.
Constructor Summary | |
---|---|
Items(int index)
Creates a items instance with a single item. |
|
Items(int start,
int end)
Creates a items instance with a range. |
|
Items(java.util.List<T> items)
Creates a items instance with a list. |
|
Items(T... item)
Createa a items instance with 1 to many items. |
Method Summary | |
---|---|
T |
getItem(Container c)
Returns the first matching item from the specified container. |
java.util.List<T> |
getItems(Container c)
Returns the matching items from the specified container. |
boolean |
isSingle()
Returns true if there is a single selected item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Items(int index)
index
- the index of the itempublic Items(int start, int end)
start
- the start indexend
- the end indexpublic Items(java.util.List<T> items)
items
- the list of itemspublic Items(T... item)
item
- the varargs itemsMethod Detail |
---|
public T getItem(Container c)
c
- the container
public java.util.List<T> getItems(Container c)
c
- the container
public boolean isSingle()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |