com.google.gwt.widgetideas.table.client.overrides
Class ElementMapper<MappedType extends com.google.gwt.user.client.ui.UIObject>

java.lang.Object
  extended by com.google.gwt.widgetideas.table.client.overrides.ElementMapper<MappedType>
Type Parameters:
MappedType - the type that the element is mapped to

public class ElementMapper<MappedType extends com.google.gwt.user.client.ui.UIObject>
extends java.lang.Object

Creates a mapping from elements to their associated ui objects.


Constructor Summary
ElementMapper()
           
 
Method Summary
 MappedType get(com.google.gwt.user.client.Element elem)
          Returns the uiObject associated with the given element.
 java.util.Iterator<MappedType> iterator()
          Creates an iterator of uiObjects.
 void put(MappedType uiObject)
          Adds the MappedType.
 void removeByElement(com.google.gwt.user.client.Element elem)
          Remove the uiObject associated with the given element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementMapper

public ElementMapper()
Method Detail

get

public MappedType get(com.google.gwt.user.client.Element elem)
Returns the uiObject associated with the given element.

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

put

public void put(MappedType uiObject)
Adds the MappedType.

Parameters:
uiObject - uiObject to add

removeByElement

public void removeByElement(com.google.gwt.user.client.Element elem)
Remove the uiObject associated with the given element.

Parameters:
elem - the uiObject's element

iterator

public java.util.Iterator<MappedType> iterator()
Creates an iterator of uiObjects.

Returns:
the iterator