|
|||||||||
| 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>
com.extjs.gxt.ui.client.widget.ScrollContainer<Component>
com.extjs.gxt.ui.client.widget.LayoutContainer
public class LayoutContainer
A Container that lays out its children using a
Layout. Layouts are responsible for connecting the child
components to the container. Layouts are very flexible as they can create any
internal element structure, inserting its child components at any location.
For example, a TableLayout lays out its children using HTML tables.
FlowLayout is the the default layout and will be used if not a
layout is not specified.
doit field to false to cancel the action.doit
field to false to cancel the action.
Layout| 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 | |
|---|---|
LayoutContainer()
Creates a new layout container. |
|
LayoutContainer(Layout layout)
Creates a new layout container. |
|
| Method Summary | |
|---|---|
boolean |
add(com.google.gwt.user.client.ui.Widget widget)
Adds a widget to this Container. |
boolean |
add(com.google.gwt.user.client.ui.Widget widget,
LayoutData layoutData)
Adds a widget to this Container. |
Html |
addText(java.lang.String text)
Creates a new HTML instance and adds it to the container. |
WidgetComponent |
findComponent(com.google.gwt.user.client.ui.Widget widget)
Returns the widget component that wraps the given widget. |
Layout |
getLayout()
Returns the layout which is associated with the container, or null if one has not been set. |
boolean |
getLayoutOnChange()
Returns true if the layout will be executed when widgets are
added or removed. |
El |
getLayoutTarget()
Override this method to specify the element to be used by the layout as the container. |
boolean |
insert(com.google.gwt.user.client.ui.Widget widget,
int index)
Inserts a widget into this Container at a specified index. |
boolean |
insert(com.google.gwt.user.client.ui.Widget widget,
int index,
LayoutData layoutData)
Inserts a widget into this Container at a specified index. |
boolean |
isMonitorResize()
Returns true if the container's layout is executed when the container is resized (default to true). |
boolean |
isMonitorWindowResize()
Returns true if the container's layout is executed when the browser window is resized (defaults to false). |
boolean |
layout()
Executes the container's layout. |
boolean |
remove(com.google.gwt.user.client.ui.Widget widget)
Removes a component from this container. |
boolean |
removeAll()
Removes all of children from this container. |
void |
setLayout(Layout layout)
Sets the container's layout. |
void |
setLayoutData(Component component,
LayoutData layoutData)
Sets the component's layout data. |
void |
setLayoutOnChange(boolean layoutOnChange)
Specifies if the container's layout should be called when widgets are added or removed. |
void |
setMonitorWindowResize(boolean monitorWindowResize)
True to have the container's layout executed when the browser window is resized (default to false). |
| Methods inherited from class com.extjs.gxt.ui.client.widget.ScrollContainer |
|---|
addScrollListener, getHScrollPosition, getScrollMode, getVScrollPosition, onComponentEvent, removeScrollListener, scrollIntoView, setHScrollPosition, setScrollMode, setVScrollPosition |
| Methods inherited from class com.extjs.gxt.ui.client.widget.Container |
|---|
disable, enable, findItem, getItem, getItemByItemId, getItemCount, getItems, getWidget, indexOf, iterator, scrollIntoView |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
getBounds, getHeight, getHeight, getPosition, getShadow, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShim, setSize, setSize, setWidth, setWidth |
| Methods inherited from class com.extjs.gxt.ui.client.widget.Component |
|---|
addListener, addPlugin, addStyleName, addWidgetListener, disableEvents, disableTextSelection, el, enableEvents, fireEvent, fireEvent, fireEvent, fly, focus, getBaseStyle, getBorders, getData, getData, getElement, getId, getItemId, getModel, getState, getToolTip, hide, hideToolTip, isDisabledEvents, isEnabled, isRendered, isVisible, onBrowserEvent, recalculate, removeAllListeners, removeFromParent, removeListener, removeStyleName, removeWidgetListener, render, render, saveState, setBorders, setData, setData, setElement, setEnabled, setEnableState, setId, setIntStyleAttribute, setItemId, setStyleAttribute, setStyleName, setTitle, setToolTip, setToolTip, setVisible, show, sinkEvents, toString |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
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 LayoutContainer()
public LayoutContainer(Layout layout)
layout - the layout| Method Detail |
|---|
public boolean add(com.google.gwt.user.client.ui.Widget widget)
widget - the widget to add. If the widget is not a Component instance
it will be wrapped in a WidgetComponent
public boolean add(com.google.gwt.user.client.ui.Widget widget,
LayoutData layoutData)
widget - the widget to add. If the widget is not a Component instance
it will be wrapped in a WidgetComponentlayoutData - the layout datapublic Html addText(java.lang.String text)
text - the html text
public WidgetComponent findComponent(com.google.gwt.user.client.ui.Widget widget)
widget - the wrapped widget
public Layout getLayout()
null if one has not been set.
nullpublic boolean getLayoutOnChange()
true if the layout will be executed when widgets are
added or removed.
public El getLayoutTarget()
public boolean insert(com.google.gwt.user.client.ui.Widget widget,
int index)
widget - the widget to insert. If the widget is not a Component
instance it will be wrapped in a WidgetComponentindex - the index at which the component will be inserted in
public boolean insert(com.google.gwt.user.client.ui.Widget widget,
int index,
LayoutData layoutData)
widget - the widget to insert. If the widget is not a Component
instance it will be wrapped in a WidgetComponentindex - the index at which the component will be inserted inlayoutData - the component's layout datapublic boolean isMonitorResize()
Container
public boolean isMonitorWindowResize()
Container
public boolean layout()
public boolean remove(com.google.gwt.user.client.ui.Widget widget)
widget - the widget to removepublic boolean removeAll()
removeAll in class Container<Component>public void setLayout(Layout layout)
layout - the new layout
public void setLayoutData(Component component,
LayoutData layoutData)
component - the componentlayoutData - the layou datapublic void setLayoutOnChange(boolean layoutOnChange)
false.
layoutOnChange - true to enablepublic void setMonitorWindowResize(boolean monitorWindowResize)
Container
monitorWindowResize - true to monitor window resizing
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||