|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.widget.ComponentManager
public class ComponentManager
Provides a registry of all attached components. Only components currently part of the page (DOM) are part of the registry as all components register when attached, and unregister when detached.
Collectioncomponents = ComponentManager.get().getAll(); Component comp = ComponentManager.get().get("foo"); for (Component c : components) { }
Method Summary | ||
---|---|---|
|
find(com.google.gwt.dom.client.Element target)
Attempts to find a component. |
|
|
find(com.google.gwt.dom.client.Element target,
java.lang.Class<X> clazz)
Attempts to find a component. |
|
static ComponentManager |
get()
Returns the component manager instance. |
|
|
get(java.lang.Class<?> clazz)
Returns all component by class. |
|
Component |
get(java.lang.String id)
Returns a component by id. |
|
java.util.Collection<Component> |
getAll()
Returns a collection of all registered components. |
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
---|
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ComponentManager get()
public <X extends Component> X find(com.google.gwt.dom.client.Element target)
target
- the element or inner element of the component
public <X extends Component> X find(com.google.gwt.dom.client.Element target, java.lang.Class<X> clazz)
target
- the element or inner element of the componentclazz
- the class the component should have
public <X extends Component> java.util.List<X> get(java.lang.Class<?> clazz)
clazz
- the class to match
public Component get(java.lang.String id)
id
- the component id
public java.util.Collection<Component> getAll()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |