|
|||||||||
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.StatefulCanvas
com.smartgwt.client.widgets.Button
com.smartgwt.client.widgets.menu.MenuButton
public class MenuButton
Simple subclass of button associated with a menu widget (gets shown below the button).
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 | |
---|---|
MenuButton()
|
|
MenuButton(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
MenuButton(java.lang.String title)
|
|
MenuButton(java.lang.String title,
Menu menu)
|
Method Summary | |
---|---|
protected com.google.gwt.core.client.JavaScriptObject |
create()
|
java.lang.Boolean |
getHiliteAccessKey()
If this MenuButton has a specified accessKey , underline it
in the title of the button by default |
Menu |
getMenu()
The menu to show. |
java.lang.String |
getMenuAnimationEffect()
Allows you to specify an animation effect to apply to the menu when it is being shown. Valid options are "none" (no animation), "fade", "slide" and "wipe". If unspecified falls through to menu.showAnimationEffect |
java.lang.String |
getMenuButtonImage()
Image for menu button indicating that the button expands a menu. |
java.lang.String |
getMenuButtonImageUp()
Image for menu button indicating that the button expands a menu. |
static MenuButton |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
|
java.lang.Boolean |
getShowMenuBelow()
The menu drops down below the menu button. Set to false if the menu should appear above the menu button. |
java.lang.Boolean |
getShowMenuButtonImage()
show menu button image (up / down arrowhead) for this menu button |
java.lang.String |
getTitle()
Default title for the button. |
void |
setHiliteAccessKey(java.lang.Boolean hiliteAccessKey)
If this MenuButton has a specified accessKey , underline it
in the title of the button by default |
void |
setMenu(Menu menu)
The menu to show. |
void |
setMenuAnimationEffect(java.lang.String menuAnimationEffect)
Allows you to specify an animation effect to apply to the menu when it is being shown. Valid options are "none" (no animation), "fade", "slide" and "wipe". If unspecified falls through to menu.showAnimationEffect |
void |
setMenuButtonImage(java.lang.String menuButtonImage)
Image for menu button indicating that the button expands a menu. |
void |
setMenuButtonImageUp(java.lang.String menuButtonImageUp)
Image for menu button indicating that the button expands a menu. |
void |
setShowMenuBelow(java.lang.Boolean showMenuBelow)
The menu drops down below the menu button. Set to false if the menu should appear above the menu button. |
void |
setShowMenuButtonImage(java.lang.Boolean showMenuButtonImage)
show menu button image (up / down arrowhead) for this menu button Setter for the 'showMenuButtonImage' property - shows/hides the menu button image at runtime |
void |
setTitle(java.lang.String title)
Default title for the button. |
Methods inherited from class com.smartgwt.client.widgets.StatefulCanvas |
---|
getOverCanvasConstructor, getRedrawOnStateChange, getShowFocusedAsOver, getShowOverCanvas, getStateSuffix, setOverCanvasConstructor, setRedrawOnStateChange, setShowFocusedAsOver, setShowOverCanvas, setTitleStyle |
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 |
Constructor Detail |
---|
public MenuButton()
public MenuButton(com.google.gwt.core.client.JavaScriptObject jsObj)
public MenuButton(java.lang.String title)
public MenuButton(java.lang.String title, Menu menu)
Method Detail |
---|
public static MenuButton getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
protected com.google.gwt.core.client.JavaScriptObject create()
create
in class Button
public void setTitle(java.lang.String title)
setTitle
in class Button
title
- title Default value is "Show Menu"public java.lang.String getTitle()
getTitle
in class Button
public void setShowMenuButtonImage(java.lang.Boolean showMenuButtonImage) throws java.lang.IllegalStateException
showMenuButtonImage
- Should the image be shown. Default value is true
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getShowMenuButtonImage()
public void setMenuButtonImage(java.lang.String menuButtonImage) throws java.lang.IllegalStateException
showMenuBelow
.
Note : This is an advanced setting
menuButtonImage
- menuButtonImage Default value is "[SKIN]menu_button.gif"
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getMenuButtonImage()
showMenuBelow
.
public void setMenuButtonImageUp(java.lang.String menuButtonImageUp) throws java.lang.IllegalStateException
showMenuBelow
.
Note : This is an advanced setting
menuButtonImageUp
- menuButtonImageUp Default value is "[SKIN]menu_button_up.gif"
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getMenuButtonImageUp()
showMenuBelow
.
public void setHiliteAccessKey(java.lang.Boolean hiliteAccessKey) throws java.lang.IllegalStateException
accessKey
, underline it
in the title of the button by default
setHiliteAccessKey
in class Button
hiliteAccessKey
- hiliteAccessKey Default value is true
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getHiliteAccessKey()
accessKey
, underline it
in the title of the button by default
getHiliteAccessKey
in class Button
public void setShowMenuBelow(java.lang.Boolean showMenuBelow)
showMenuBelow
- True if the menu should be shown below the menubutton.. Default value is truepublic java.lang.Boolean getShowMenuBelow()
public void setMenu(Menu menu)
menu
- menu Default value is nullpublic Menu getMenu()
public void setMenuAnimationEffect(java.lang.String menuAnimationEffect)
menu.showAnimationEffect
Note : This is an advanced setting
menuAnimationEffect
- menuAnimationEffect Default value is nullpublic java.lang.String getMenuAnimationEffect()
menu.showAnimationEffect
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |