|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.Container<T>
T - the child component typepublic abstract class Container<T extends Component>
Class for any BoxComponent that can contain other components.
Containers handle the basic behavior of containing components, namely
managing, attaching, and detaching the child widgets.
BaseEvent.setCancelled(boolean).BaseEvent.setCancelled(boolean).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
Container()
Creates a new container. |
|
| Method Summary | |
|---|---|
void |
disable()
Disable this component. |
void |
enable()
Enable this component. |
T |
findItem(com.google.gwt.user.client.Element elem)
Returns the component whose element, or child element, matches the given element. |
T |
getItem(int index)
Returns the item at the given index or null if index out of bounds. |
T |
getItemByItemId(java.lang.String itemId)
Returns the item with the specified item id. |
int |
getItemCount()
Returns the number of children. |
java.util.List<T> |
getItems()
Returns the child items. |
El |
getLayoutTarget()
Returns the container's layout target. |
com.google.gwt.user.client.ui.Widget |
getWidget(int index)
Returns the widget at the given index. |
int |
indexOf(T item)
Returns the index of the item. |
java.util.Iterator<T> |
iterator()
Returns an iterator over the container's children. |
boolean |
removeAll()
Removes all the container's items. |
void |
scrollIntoView(T item)
Scrolls the item into view. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
getBounds, getHeight, getHeight, getPosition, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getParent, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Container()
| Method Detail |
|---|
public void disable()
Component
disable in class Componentpublic void enable()
Component
enable in class Componentpublic T findItem(com.google.gwt.user.client.Element elem)
elem - the element
null if no matchpublic T getItem(int index)
index - the index
public T getItemByItemId(java.lang.String itemId)
itemId - the item id
null if no matchpublic int getItemCount()
public java.util.List<T> getItems()
public El getLayoutTarget()
public com.google.gwt.user.client.ui.Widget getWidget(int index)
index - the index
public int indexOf(T item)
item - the item
public java.util.Iterator<T> iterator()
public boolean removeAll()
public void scrollIntoView(T item)
item - the item
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||