| net.mygwt.ui.client.viewer.ISelection
All known Subclasses: net.mygwt.ui.client.viewer.DefaultSelection,
ISelection | public interface ISelection (Code) | | A selection containing elements.
|
Method Summary | |
public Object | getFirstElement() Returns the first element in this selection, or null if the selection is
empty. | public boolean | isEmpty() Returns whether this selection is empty. | public Iterator | iterator() Returns an iterator over the elements of this selection. | public int | size() Returns the number of elements selected in this selection. | public Object[] | toArray() Returns the elements in this selection as an array. | public List | toList() Returns the elements in this selection as a List . |
getFirstElement | public Object getFirstElement()(Code) | | Returns the first element in this selection, or null if the selection is
empty.
an element, or null if none |
isEmpty | public boolean isEmpty()(Code) | | Returns whether this selection is empty.
true if this selection is empty, andfalse otherwise |
iterator | public Iterator iterator()(Code) | | Returns an iterator over the elements of this selection.
an iterator over the selected elements |
size | public int size()(Code) | | Returns the number of elements selected in this selection.
the number of elements selected |
toArray | public Object[] toArray()(Code) | | Returns the elements in this selection as an array.
the selected elements as an array |
toList | public List toList()(Code) | | Returns the elements in this selection as a List .
the selected elements as a list |
|
|