com.google.gwt.user.client.impl
Class ElementMapperImpl<T extends UIObject>

java.lang.Object
  extended by com.google.gwt.user.client.impl.ElementMapperImpl<T>
Type Parameters:
T - the type that the element is mapped to

public class ElementMapperImpl<T extends UIObject>
extends java.lang.Object

Creates a mapping from elements to their associated ui objects.


Constructor Summary
ElementMapperImpl()
           
 
Method Summary
 T get(Element elem)
          Returns the uiObject associated with the given element.
 java.util.ArrayList<T> getObjectList()
          Gets the list of ui objects contained in this element mapper.
 java.util.Iterator<T> iterator()
          Creates an iterator from the ui objects stored within.
 void put(T uiObject)
          Adds the MappedType.
 void removeByElement(Element elem)
          Remove the uiObject associated with the given element.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementMapperImpl

public ElementMapperImpl()
Method Detail

get

public T get(Element elem)
Returns the uiObject associated with the given element.

Parameters:
elem - uiObject's element
Returns:
the uiObject

getObjectList

public java.util.ArrayList<T> getObjectList()
Gets the list of ui objects contained in this element mapper.

Returns:
the list of ui objects

iterator

public java.util.Iterator<T> iterator()
Creates an iterator from the ui objects stored within.

Returns:
an iterator of the ui objects indexed by this element mapper.

put

public void put(T uiObject)
Adds the MappedType.

Parameters:
uiObject - uiObject to add

removeByElement

public void removeByElement(Element elem)
Remove the uiObject associated with the given element.

Parameters:
elem - the uiObject's element