|
|||||||||
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 |
---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.smartgwt.client.widgets.BaseWidget |
---|
config, configOnly, id, isElementSet, scClassName |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
Toolbar()
|
|
Toolbar(JavaScriptObject jsObj)
|
Method Summary | |
---|---|
HandlerRegistration |
addItemClickHandler(ItemClickHandler handler)
Add a itemClick handler. |
HandlerRegistration |
addItemDragResizedHandler(ItemDragResizedHandler handler)
Add a itemDragResized handler. |
protected JavaScriptObject |
create()
|
Boolean |
getCanAcceptDrop()
If true, items (buttons) can be dropped into this toolbar, and the toolbar will show a drop line at the drop location. |
Boolean |
getCanReorderItems()
If true, items can be reordered by dragging on them. |
Boolean |
getCanResizeItems()
If true, items (buttons) can be resized by dragging on them. |
Boolean |
getVertical()
Indicates whether the buttons are drawn horizontally from left to right (false), or vertically from top to bottom (true). |
void |
setCanAcceptDrop(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(Boolean canReorderItems)
If true, items can be reordered by dragging on them. |
void |
setCanResizeItems(Boolean canResizeItems)
If true, items (buttons) can be resized by dragging on them. |
void |
setVertical(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 |
---|
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
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, 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 |
Constructor Detail |
---|
public Toolbar()
public Toolbar(JavaScriptObject jsObj)
Method Detail |
---|
protected JavaScriptObject create()
create
in class Layout
public void setVertical(Boolean vertical)
setVertical
in class Layout
vertical
- vertical Default value is falsepublic Boolean getVertical()
getVertical
in class Layout
public void setCanReorderItems(Boolean canReorderItems)
Note : This is an advanced setting
canReorderItems
- canReorderItems Default value is falsepublic Boolean getCanReorderItems()
public void setCanResizeItems(Boolean canResizeItems)
canResizeItems
at runtime.
Note : This is an advanced setting
canResizeItems
- New value for this.canResizeItems. Default value is falsepublic Boolean getCanResizeItems()
public void setCanAcceptDrop(Boolean canAcceptDrop)
Note : This is an advanced setting
setCanAcceptDrop
in class Canvas
canAcceptDrop
- canAcceptDrop Default value is falsepublic 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 |