|
||||||||||
| 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.sencha.gxt.widget.core.client.Component
com.sencha.gxt.widget.core.client.container.Container
com.sencha.gxt.widget.core.client.container.ResizeContainer
com.sencha.gxt.widget.core.client.container.InsertResizeContainer
com.sencha.gxt.widget.core.client.container.BoxLayoutContainer
public abstract class BoxLayoutContainer
A base class for box layout containers. Provides behavior common to all box layout containers, including packing, padding and the action to take on insert and remove.
| Nested Class Summary | |
|---|---|
static interface |
BoxLayoutContainer.BoxLayoutContainerAppearance
|
static class |
BoxLayoutContainer.BoxLayoutData
Specifies box layout parameters which control the minimum and maximum size, as well as the "flex" value. |
static class |
BoxLayoutContainer.BoxLayoutPack
BoxLayoutPack enumeration. |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel |
|---|
InsertPanel.ForIsWidget |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
HasWidgets.ForIsWidget |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
BoxLayoutContainer()
Creates a box layout container with the default appearance. |
|
BoxLayoutContainer(BoxLayoutContainer.BoxLayoutContainerAppearance appearance)
Creates a box layout container with the specified appearance. |
|
| Method Summary | |
|---|---|
void |
add(IsWidget child,
BoxLayoutContainer.BoxLayoutData layoutData)
Adds a widget to this box layout container with the specified layout parameters. |
BoxLayoutContainer.BoxLayoutPack |
getPack()
Returns the layout's pack value. |
Padding |
getPadding()
Returns the padding between widgets. |
int |
getScrollOffset()
Returns the scroll offset. |
void |
insert(IsWidget w,
int beforeIndex,
BoxLayoutContainer.BoxLayoutData layoutData)
Inserts a widget into the box layout container. |
boolean |
isAdjustForFlexRemainder()
Returns true if the remaining space after flex calculation is applied to the last widget being flexed. |
void |
setAdjustForFlexRemainder(boolean adjustForFlexRemainder)
Set to true if the remaining space after flex calculation should be applied to the last widget being flexed. |
void |
setPack(BoxLayoutContainer.BoxLayoutPack pack)
Sets how the child items of the container are packed together. |
void |
setPadding(Padding padding)
Sets the padding to use for the box layout container (i.e. |
void |
setScrollOffset(int scrollOffset)
Sets the scroll offset (defaults to 0). |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.InsertResizeContainer |
|---|
insert, insert |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.ResizeContainer |
|---|
forceLayout, isLayoutRunning, isOrWasLayoutRunning, onResize |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.Container |
|---|
add, add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, clear, disable, enable, findWidget, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove, remove, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget |
|---|
add |
| Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel |
|---|
add |
| Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget |
|---|
getWidgetIndex |
| Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
|---|
getWidget, getWidgetCount, getWidgetIndex, remove |
| Constructor Detail |
|---|
public BoxLayoutContainer()
public BoxLayoutContainer(BoxLayoutContainer.BoxLayoutContainerAppearance appearance)
appearance - the box layout container appearance| Method Detail |
|---|
@UiChild(tagname="child")
public void add(IsWidget child,
BoxLayoutContainer.BoxLayoutData layoutData)
child - the widget to addlayoutData - the layout parameterspublic BoxLayoutContainer.BoxLayoutPack getPack()
public Padding getPadding()
public int getScrollOffset()
public void insert(IsWidget w,
int beforeIndex,
BoxLayoutContainer.BoxLayoutData layoutData)
w - the widgetbeforeIndex - the insert indexlayoutData - the layout parameterspublic boolean isAdjustForFlexRemainder()
public void setAdjustForFlexRemainder(boolean adjustForFlexRemainder)
adjustForFlexRemainder - true to add the spacepublic void setPack(BoxLayoutContainer.BoxLayoutPack pack)
pack - the pack valuepublic void setPadding(Padding padding)
padding - the paddingpublic void setScrollOffset(int scrollOffset)
scrollOffset - the scroll offset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||