|
|||||||||
| 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<Component>
com.extjs.gxt.ui.client.widget.toolbar.ToolBar
public class ToolBar
A standard tool bar.
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 | |
|---|---|
ToolBar()
Creates a new tool bar. |
|
| Method Summary | |
|---|---|
boolean |
add(Component item)
Adds a item to the tool bar. |
Style.HorizontalAlignment |
getAlignment()
Returns the alignment of the items. |
int |
getMinButtonWidth()
Returns the min button width. |
int |
getSpacing()
Returns the child component spacing. |
boolean |
insert(Component item,
int index)
Inserts a item into the tool bar. |
boolean |
isEnableOverflow()
Returns true if overflow is enabled. |
boolean |
layout()
Executes the container's layout. |
boolean |
remove(Component item)
Removes a component from the tool bar. |
void |
setAlignment(Style.HorizontalAlignment alignment)
Sets the ailgnment of the items. |
void |
setEnableOverflow(boolean enableOverflow)
True to show a drop down icon when the available width is less than the required width (defaults to false). |
void |
setMinButtonWidth(int minButtonWidth)
Sets the minWidth for any Component of type Button |
void |
setSpacing(int spacing)
Sets the spacing between child items (defaults to 0). |
| Methods inherited from class com.extjs.gxt.ui.client.widget.Container |
|---|
disable, enable, findItem, getItem, getItemByItemId, getItemCount, getItems, getLayoutTarget, getWidget, indexOf, iterator, removeAll, scrollIntoView |
| 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 ToolBar()
| Method Detail |
|---|
public boolean add(Component item)
item - the item to addpublic Style.HorizontalAlignment getAlignment()
public int getMinButtonWidth()
public int getSpacing()
public boolean insert(Component item,
int index)
item - the item to addindex - the insert locationpublic boolean isEnableOverflow()
public boolean layout()
ContainerFlowLayout will be used.
public boolean remove(Component item)
item - the item to be removed
true if the item was removedpublic void setAlignment(Style.HorizontalAlignment alignment)
alignment - the alignment to setpublic void setMinButtonWidth(int minButtonWidth)
minButtonWidth - the min button width to setpublic void setEnableOverflow(boolean enableOverflow)
enableOverflow - true to enable overflow supportpublic void setSpacing(int spacing)
spacing - the spacing
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||