|
|||||||||
| 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.gwtext.client.widgets.Component
com.gwtext.client.widgets.Button
com.gwtext.client.widgets.SplitButton
public class SplitButton
A split button that provides a built-in dropdown arrow that can fire an event separately from the default click event of the button. Typically this would be used to display a dropdown menu that provides additional options to the primary button action, but any custom handler can provide the arrowclick implementation.
| 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.gwtext.client.widgets.Component |
|---|
config, id |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
SplitButton()
Create a new SplitButton. |
|
SplitButton(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
SplitButton(java.lang.String text)
Create a new SplitButton. |
|
SplitButton(java.lang.String text,
SplitButtonListener listener)
Create a new SplitButton. |
|
SplitButton(java.lang.String text,
SplitButtonListener listener,
java.lang.String icon)
Create a new SplitButton. |
|
| Method Summary | |
|---|---|
void |
addListener(SplitButtonListener listener)
Add a listener. |
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject config)
|
java.lang.String |
getArrowTooltip()
The title attribute of the arrow. |
java.lang.String |
getXType()
Gets the xtype for this component as registered with ComponentMgr. |
void |
setArrowTooltip(java.lang.String arrowTooltip)
The title attribute of the arrow. |
| Methods inherited from class com.gwtext.client.widgets.Button |
|---|
addListener, focus, getBindToForm, getButtonElement, getClickEvent, getConfigPrototype, 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.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 |
|---|
ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, setElement, 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 |
|---|
public SplitButton()
public SplitButton(java.lang.String text)
text - the button text
public SplitButton(java.lang.String text,
SplitButtonListener listener)
text - the button textlistener - the button listener
public SplitButton(java.lang.String text,
SplitButtonListener listener,
java.lang.String icon)
text - the button textlistener - the button listenericon - the button icon image pathpublic SplitButton(com.google.gwt.core.client.JavaScriptObject jsObj)
| Method Detail |
|---|
public java.lang.String getXType()
Component
TextField field = new TextField();
field.getXType() returns "textfield"
getXType in class Buttonprotected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)
create in class Buttonpublic void addListener(SplitButtonListener listener)
listener - the listener
public void setArrowTooltip(java.lang.String arrowTooltip)
throws java.lang.IllegalStateException
arrowTooltip - the arrow tooltip
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getArrowTooltip()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||