com.gwtext.client.widgets
Class ToolbarMenuButton

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.gwtext.client.widgets.Component
              extended by com.gwtext.client.widgets.Button
                  extended by com.gwtext.client.widgets.SplitButton
                      extended by com.gwtext.client.widgets.ToolbarMenuButton
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, Observable

public class ToolbarMenuButton
extends SplitButton

A menu button that renders into a toolbar. Also known as ToolbarSplitButton.


Field Summary
 
Fields inherited from class com.gwtext.client.widgets.Component
config, id
 
Constructor Summary
ToolbarMenuButton()
          Create a new ToolbarMenuButton.
ToolbarMenuButton(com.google.gwt.core.client.JavaScriptObject jsObj)
           
ToolbarMenuButton(java.lang.String text)
          Create a new ToolbarMenuButton.
ToolbarMenuButton(java.lang.String text, Menu menu)
          Create a new ToolbarMenuButton.
ToolbarMenuButton(java.lang.String text, Menu menu, ButtonListener listener)
          Create a new ToolbarMenuButton.
ToolbarMenuButton(java.lang.String text, SplitButtonListener listener)
          Create a new ToolbarMenuButton.
 
Method Summary
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.SplitButton
addListener, getArrowTooltip, setArrowTooltip
 
Methods inherited from class com.gwtext.client.widgets.Button
addListener, focus, getBindToForm, getButtonElement, getClickEvent, getHandleMouseEvents, getIcon, getIconCls, getMenuAlign, getMinWidth, getOwnerCt, getTabIndex, getText, getToggleGroup, getTooltip, getTooltipType, getType, hasVisibleMenu, hideMenu, isDisabled, isEnableToggle, isPressed, isRepeat, setClickEvent, setEnableToggle, setFormBind, setHandleMouseEvents, setHidden, setIcon, setIconCls, setMenu, setMenuAlign, setMinWidth, setPressed, setRepeat, setRepeat, setTabIndex, setTemplate, setText, setToggleGroup, setTooltip, setTooltip, setTooltip, setTooltipType, setType, showMenu, toggle, toggle
 
Methods inherited from class com.gwtext.client.widgets.Component
addClass, addClassCreated, addEvent, addEvents, addListener, addListener, addListener, addPlugin, addStyleDependentName, addStyleName, afterRender, beforeDestroy, check, checkExtVer, cloneComponent, cloneComponent, cloneConfig, destroy, disable, enable, equals, error, findParentBy, findParentByType, fireEvent, focus, focus, getApplyTo, getAttribute, getAttributeAsBoolean, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAutoShow, getCls, getComponentJS, getConfig, getConfigAsString, getCtCls, getDisabledClass, getEl, getElement, getElement, getElement, getHideMode, getHideParent, getId, getItemId, getJsObj, getOffsetHeight, getOffsetWidth, getOrCreateJsObj, getOwnerContainer, getRenderTo, getStateEvents, getStateId, getTitle, getXTypes, hashCode, hide, initComponent, isCreated, isHidden, isRendered, isVisible, isXType, isXType, onDestroy, purgeListeners, removeClass, removeStyleDependentName, removeStyleName, 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, setElement, setHeight, setHideMode, setHideParent, setId, setRenderTo, setRenderToID, setStateEvents, setStateId, setStyle, setStyle, setStyleName, setStylePrimaryName, setTitle, setVisible, setWidth, show, suspendEvents, toString
 
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
getAbsoluteLeft, getAbsoluteTop, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, setPixelSize, setSize, setStyleName, setStyleName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ToolbarMenuButton

public ToolbarMenuButton()
Create a new ToolbarMenuButton.


ToolbarMenuButton

public ToolbarMenuButton(java.lang.String text)
Create a new ToolbarMenuButton.

Parameters:
text - the button text

ToolbarMenuButton

public ToolbarMenuButton(java.lang.String text,
                         SplitButtonListener listener)
Create a new ToolbarMenuButton.

Parameters:
text - the button text
listener - the button listner

ToolbarMenuButton

public ToolbarMenuButton(java.lang.String text,
                         Menu menu)
Create a new ToolbarMenuButton.

Parameters:
text - the button text
menu - the button menu

ToolbarMenuButton

public ToolbarMenuButton(java.lang.String text,
                         Menu menu,
                         ButtonListener listener)
Create a new ToolbarMenuButton.

Parameters:
text - the button text
menu - the button menu
listener - the button listener

ToolbarMenuButton

public ToolbarMenuButton(com.google.gwt.core.client.JavaScriptObject jsObj)
Method Detail

getConfigPrototype

protected com.google.gwt.core.client.JavaScriptObject getConfigPrototype()
Overrides:
getConfigPrototype in class Button

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 SplitButton
Returns:
the xtype

create

protected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)
Overrides:
create in class SplitButton