Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.gwtext.client.widgets
Class Toolbar

    java.lang.Object
      com.google.gwt.user.client.ui.UIObject
          com.google.gwt.user.client.ui.Widget
              com.gwtext.client.widgets.Component
                  com.gwtext.client.widgets.BoxComponent
                      com.gwtext.client.widgets.Toolbar

All Implemented Interfaces:
  com.google.gwt.user.client.EventListener, Observable

Direct Known Subclasses:
  PagingToolbar

    public class Toolbar

extends BoxComponent

Basic Toolbar class.

Field Summary

Fields inherited from class com.gwtext.client.widgets.Component
`config, id`

Constructor Summary
`Toolbar()` Create a new Toolbar.
`Toolbar(com.google.gwt.core.client.JavaScriptObject jsObj)`

Method Summary
`void` | `addButton(ToolbarButton button)` Adds a button to the toolbar.
`void` | `addButton(ToolbarMenuButton button)` Adds a toolbar menu button.
`void` | `addElement(com.google.gwt.user.client.Element element)` Adds any standard element to the toolbar.
`void` | `addField(Field field)` Adds a dynamically rendered `Field` (TextField, ComboBox, etc).
`void` | `addFill()` Adds a fill element that forces subsequent additions to the right side of the toolbar.
`void` | `addItem(ToolbarItem item)` Adds any `ToolbarItem` or subclass.
`void` | `addSeparator()` Adds a separator.
`void` | `addSpacer()` Adds a spacer element.
`void` | `addText(java.lang.String text)` Adds text to the toolbar.
`protected com.google.gwt.core.client.JavaScriptObject` | `create(com.google.gwt.core.client.JavaScriptObject config)`
`protected com.google.gwt.core.client.JavaScriptObject` | `getConfigPrototype()`
`java.lang.String` | `getXType()` Gets the xtype for this component as registered with ComponentMgr.

Methods inherited from class com.gwtext.client.widgets.BoxComponent
`addListener, doOnRender, doOnRender, getAutoHeight, getAutoWidth, getBox, getBox, getHeight, getPosition, getPosition, getSize, getWidth, setAutoHeight, setAutoWidth, setHeight, setHeight, setPagePosition, setPosition, setSize, setSize, setWidth, setWidth, syncSize, updateBox`

Methods inherited from class com.gwtext.client.widgets.Component
`addClass, addClassCreated, addEvent, addEvents, addListener, addListener, addListener, afterRender, beforeDestroy, check, cloneComponent, cloneComponent, cloneConfig, destroy, disable, enable, equals, error, findParentBy, findParentByType, focus, focus, focus, getApplyTo, getAttribute, getAttributeAsBoolean, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAutoShow, getCls, getComponentJS, getConfig, getCtCls, getDisabledClass, getEl, getElement, getElement, getHideMode, getHideParent, getId, getItemId, getJsObj, getOffsetHeight, getOffsetWidth, getOrCreateJsObj, getOwnerContainer, getRenderTo, getStateEvents, getStateId, getStyle, getStyleElement, getTitle, getXTypes, hashCode, hide, initComponent, isCreated, isDisabled, isHidden, isRendered, isVisible, isXType, isXType, onDestroy, purgeListeners, removeClass, render, render, render, render, render, render, resumeEvents, setApplyTo, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAutoEl, setAutoEl, setAutoShow, setCls, setCtCls, setDisabled, setDisabledClass, setEl, setEl, setHideMode, setHideParent, setId, setRenderTo, setStateEvents, setStateId, setStyle, setTitle, setVisible, show, suspendEvents`

Methods inherited from class com.google.gwt.user.client.ui.Widget
`doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setElement`

Methods inherited from class com.google.gwt.user.client.ui.UIObject
`addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, removeStyleName, setPixelSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkEvents, toString, unsinkEvents`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### Toolbar

    public Toolbar()

  Create a new Toolbar.

### Toolbar

    public Toolbar(com.google.gwt.core.client.JavaScriptObject jsObj)

Method Detail

### getConfigPrototype

    protected com.google.gwt.core.client.JavaScriptObject getConfigPrototype()

  Overrides:
    `getConfigPrototype` in class `BoxComponent`

### getXType

    public java.lang.String getXType()

  Description copied from class: `Component`
  Gets the xtype for this component as registered with ComponentMgr. For a list of all available xtypes, see the Component javadocs.

       TextField field = new TextField();
       field.getXType() returns "textfield"

  Overrides:
    `getXType` in class `BoxComponent`
  Returns:
    the xtype

### create

    protected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)

  Overrides:
    `create` in class `BoxComponent`

### addButton

    public void addButton(ToolbarButton button)

  Adds a button to the toolbar.

  Parameters:
    `button` - the button

### addButton

    public void addButton(ToolbarMenuButton button)

  Adds a toolbar menu button.

  Parameters:
    `button` - the button to add

### addElement

    public void addElement(com.google.gwt.user.client.Element element)

  Adds any standard element to the toolbar.

  Parameters:
    `element` - the element to add

### addField

    public void addField(Field field)

  Adds a dynamically rendered `Field` (TextField, ComboBox, etc). Note: the field should not have been rendered yet.

  Parameters:
    `field` - the field to add

### addFill

    public void addFill()

  Adds a fill element that forces subsequent additions to the right side of the toolbar.

### addItem

    public void addItem(ToolbarItem item)

  Adds any `ToolbarItem` or subclass.

  Parameters:
    `item` - the item to add

### addSeparator

    public void addSeparator()

  Adds a separator.

### addSpacer

    public void addSpacer()

  Adds a spacer element.

### addText

    public void addText(java.lang.String text)

  Adds text to the toolbar.

  Parameters:
    `text` - the text

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD