com.extjs.gxt.ui.client.util
Class Elements

java.lang.Object
  extended by com.extjs.gxt.ui.client.util.Elements

public class Elements
extends java.lang.Object

Utility class for identifying elements either as a single element, array of elements, a id, and index.


Field Summary
static int ARRAY
          Constant for an element array.
 com.google.gwt.user.client.Element element
          Single element.
static int ELEMENT
          Constant for a single element.
 com.google.gwt.user.client.Element[] elements
          Array of elements
 java.lang.String id
          Element id.
static int ID
          Constant for an element id.
 int index
          Element index.
static int INDEX
          Constant for a element index.
 
Constructor Summary
Elements(com.google.gwt.user.client.Element element)
           
Elements(com.google.gwt.user.client.Element[] elements)
           
Elements(int index)
          Creates a new index element info.
Elements(java.util.List<com.google.gwt.user.client.Element> elements)
           
Elements(java.lang.String id)
          Creates a new id element info.
 
Method Summary
 int 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARRAY

public static final int ARRAY
Constant for an element array.

See Also:
Constant Field Values

ELEMENT

public static final int ELEMENT
Constant for a single element.

See Also:
Constant Field Values

ID

public static final int ID
Constant for an element id.

See Also:
Constant Field Values

INDEX

public static final int INDEX
Constant for a element index.

See Also:
Constant Field Values

element

public com.google.gwt.user.client.Element element
Single element.


elements

public com.google.gwt.user.client.Element[] elements
Array of elements


id

public java.lang.String id
Element id.


index

public int index
Element index.

Constructor Detail

Elements

public Elements(com.google.gwt.user.client.Element element)

Elements

public Elements(com.google.gwt.user.client.Element[] elements)

Elements

public Elements(java.util.List<com.google.gwt.user.client.Element> elements)

Elements

public Elements(int index)
Creates a new index element info.

Parameters:
index - the index

Elements

public Elements(java.lang.String id)
Creates a new id element info.

Parameters:
id - the id
Method Detail

getType

public int getType()
Returns the element info type.

Returns:
the type

isArray

public boolean isArray()
Returns true if the value is an array.

Returns:
true if an array

isElement

public boolean isElement()
Returns true if the value is an element.

Returns:
true if an element

isId

public boolean isId()
Returns true if the value is an id.

Returns:
true if an id

isIndex

public boolean isIndex()
Returns true if the value is an index.

Returns:
true if an index