|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.core.client.dom.Elements
public class Elements
Utility class for identifying elements either as a single element, array of elements, a id, and index.
| Nested Class Summary | |
|---|---|
static class |
Elements.Type
|
| Constructor Summary | |
|---|---|
Elements(Element element)
|
|
Elements(Element[] elements)
|
|
Elements(int index)
Creates a new index element info. |
|
Elements(java.util.List<Element> elements)
Creates a new instance. |
|
Elements(java.lang.String id)
Creates a new id element info. |
|
| Method Summary | |
|---|---|
Element |
getElement()
Returns the element when Elements.Type.ELEMENT. |
Element[] |
getElements()
Returns the array of elements when Elements.Type.ARRAY. |
java.lang.String |
getId()
Returns the element id when Elements.Type.ID. |
int |
getIndex()
Returns the index when Elements.Type.ARRAY. |
Elements.Type |
getType()
Returns the element info type. |
boolean |
isArray()
Returns true if the value is an array. |
boolean |
isElement()
Returns true if the value is an element. |
boolean |
isId()
Returns true if the value is an id. |
boolean |
isIndex()
Returns true if the value is an index. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Elements(Element element)
public Elements(Element[] elements)
public Elements(int index)
index - the indexpublic Elements(java.util.List<Element> elements)
elements - the list of elementspublic Elements(java.lang.String id)
id - the id| Method Detail |
|---|
public Element getElement()
Elements.Type.ELEMENT.
public Element[] getElements()
Elements.Type.ARRAY.
public java.lang.String getId()
Elements.Type.ID.
public int getIndex()
Elements.Type.ARRAY.
public Elements.Type getType()
public boolean isArray()
public boolean isElement()
public boolean isId()
public boolean isIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||