|
|||||||||
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 |
---|
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 | |
---|---|
MenuButton()
|
|
MenuButton(JavaScriptObject jsObj)
|
|
MenuButton(String title)
|
|
MenuButton(String title,
Menu menu)
|
Method Summary | |
---|---|
protected JavaScriptObject |
create()
|
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. |
String |
getMenuAnimationEffect()
Allows you to specify an animation effect to apply to the menu when it is being shown. |
String |
getMenuButtonImage()
Image for menu button indicating that the button expands a menu. |
String |
getMenuButtonImageUp()
Image for menu button indicating that the button expands a menu. |
static MenuButton |
getOrCreateRef(JavaScriptObject jsObj)
|
Boolean |
getShowMenuBelow()
The menu drops down below the menu button. |
Boolean |
getShowMenuButtonImage()
show menu button image (up / down arrowhead) for this menu button |
String |
getTitle()
Default title for the button. |
void |
setHiliteAccessKey(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(String menuAnimationEffect)
Allows you to specify an animation effect to apply to the menu when it is being shown. |
void |
setMenuButtonImage(String menuButtonImage)
Image for menu button indicating that the button expands a menu. |
void |
setMenuButtonImageUp(String menuButtonImageUp)
Image for menu button indicating that the button expands a menu. |
void |
setShowMenuBelow(Boolean showMenuBelow)
The menu drops down below the menu button. |
void |
setShowMenuButtonImage(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(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 |
---|
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 MenuButton()
public MenuButton(JavaScriptObject jsObj)
public MenuButton(String title)
public MenuButton(String title, Menu menu)
Method Detail |
---|
public static MenuButton getOrCreateRef(JavaScriptObject jsObj)
protected JavaScriptObject create()
create
in class Button
public void setTitle(String title)
setTitle
in class Button
title
- title Default value is "Show Menu"public String getTitle()
getTitle
in class Button
public void setShowMenuButtonImage(Boolean showMenuButtonImage) throws IllegalStateException
showMenuButtonImage
- Should the image be shown. Default value is true
IllegalStateException
- this property cannot be changed after the component has been createdpublic Boolean getShowMenuButtonImage()
public void setMenuButtonImage(String menuButtonImage) throws IllegalStateException
showMenuBelow
.
Note : This is an advanced setting
menuButtonImage
- menuButtonImage Default value is "[SKIN]menu_button.gif"
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getMenuButtonImage()
showMenuBelow
.
public void setMenuButtonImageUp(String menuButtonImageUp) throws IllegalStateException
showMenuBelow
.
Note : This is an advanced setting
menuButtonImageUp
- menuButtonImageUp Default value is "[SKIN]menu_button_up.gif"
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getMenuButtonImageUp()
showMenuBelow
.
public void setHiliteAccessKey(Boolean hiliteAccessKey) throws IllegalStateException
'accessKey'
, underline it in
the title of the button by default
setHiliteAccessKey
in class Button
hiliteAccessKey
- hiliteAccessKey Default value is true
IllegalStateException
- this property cannot be changed after the component has been createdpublic Boolean getHiliteAccessKey()
'accessKey'
, underline it in
the title of the button by default
getHiliteAccessKey
in class Button
public void setShowMenuBelow(Boolean showMenuBelow)
showMenuBelow
- True if the menu should be shown below the menubutton.. Default value is truepublic Boolean getShowMenuBelow()
public void setMenu(Menu menu)
menu
- menu Default value is nullpublic Menu getMenu()
public void setMenuAnimationEffect(String menuAnimationEffect)
menu.showAnimationEffect
Note : This is an advanced setting
menuAnimationEffect
- menuAnimationEffect Default value is nullpublic String getMenuAnimationEffect()
menu.showAnimationEffect
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |