|
|||||||||
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.smartgwt.client.widgets.BaseWidget
com.smartgwt.client.widgets.Canvas
com.smartgwt.client.widgets.layout.Layout
com.smartgwt.client.widgets.toolbar.Toolbar
public abstract class Toolbar
A Toolbar creates a vertical or horizontal strip of similar components (typically Buttons) and provides managed resizing and reordering behavior over those components.
If you are creating a bar with a mixture of different elements (eg some MenuButtons, some
Labels, some Buttons, some custom components), you want to use a ToolStrip
. A
Toolbar is better suited for managing a set of highly similar, interchangeable components,
such as ListGrid headers.
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.smartgwt.client.widgets.BaseWidget |
---|
config, configOnly, id, isElementSet |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
Toolbar()
|
|
Toolbar(com.google.gwt.core.client.JavaScriptObject jsObj)
|
Method Summary | |
---|---|
HandlerRegistration |
addItemClickHandler(ItemClickHandler handler)
Add a itemClick handler. |
HandlerRegistration |
addItemDragResizedHandler(ItemDragResizedHandler handler)
Add a itemDragResized handler. |
protected com.google.gwt.core.client.JavaScriptObject |
create()
|
java.lang.Boolean |
getCanAcceptDrop()
If true, items (buttons) can be dropped into this toolbar, and the toolbar will show a drop line at the drop location. |
java.lang.Boolean |
getCanReorderItems()
If true, items can be reordered by dragging on them. |
java.lang.Boolean |
getCanResizeItems()
If true, items (buttons) can be resized by dragging on them. |
java.lang.Boolean |
getVertical()
Indicates whether the buttons are drawn horizontally from left to right (false), or vertically from top to bottom (true). |
void |
setCanAcceptDrop(java.lang.Boolean canAcceptDrop)
If true, items (buttons) can be dropped into this toolbar, and the toolbar will show a drop line at the drop location. |
void |
setCanReorderItems(java.lang.Boolean canReorderItems)
If true, items can be reordered by dragging on them. |
void |
setCanResizeItems(java.lang.Boolean canResizeItems)
If true, items (buttons) can be resized by dragging on them. |
void |
setVertical(java.lang.Boolean vertical)
Indicates whether the buttons are drawn horizontally from left to right (false), or vertically from top to bottom (true). |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setPixelSize, setSize, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Constructor Detail |
---|
public Toolbar()
public Toolbar(com.google.gwt.core.client.JavaScriptObject jsObj)
Method Detail |
---|
protected com.google.gwt.core.client.JavaScriptObject create()
create
in class Layout
public void setVertical(java.lang.Boolean vertical)
setVertical
in class Layout
vertical
- vertical Default value is falsepublic java.lang.Boolean getVertical()
getVertical
in class Layout
public void setCanReorderItems(java.lang.Boolean canReorderItems)
Note : This is an advanced setting
canReorderItems
- canReorderItems Default value is falsepublic java.lang.Boolean getCanReorderItems()
public void setCanResizeItems(java.lang.Boolean canResizeItems)
canResizeItems
at runtime.
Note : This is an advanced setting
canResizeItems
- New value for this.canResizeItems. Default value is falsepublic java.lang.Boolean getCanResizeItems()
public void setCanAcceptDrop(java.lang.Boolean canAcceptDrop)
Note : This is an advanced setting
setCanAcceptDrop
in class Canvas
canAcceptDrop
- canAcceptDrop Default value is falsepublic java.lang.Boolean getCanAcceptDrop()
getCanAcceptDrop
in class Canvas
public HandlerRegistration addItemClickHandler(ItemClickHandler handler)
Called when one of the buttons recieved a click event
addItemClickHandler
in interface HasItemClickHandlers
handler
- the itemClick handler
HandlerRegistration
used to remove this handlerpublic HandlerRegistration addItemDragResizedHandler(ItemDragResizedHandler handler)
Observable, overrideable method - called when one of the Toolbar buttons is drag resized.
addItemDragResizedHandler
in interface HasItemDragResizedHandlers
handler
- the itemDragResized handler
HandlerRegistration
used to remove this handler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |