|
|||||||||
| 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.StretchImg
com.smartgwt.client.widgets.StretchImgButton
com.smartgwt.client.widgets.menu.IMenuButton
public class IMenuButton
StretchImgButton based version of the MenuButton class.
| 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 | |
|---|---|
IMenuButton()
|
|
IMenuButton(JavaScriptObject jsObj)
|
|
IMenuButton(String title)
|
|
IMenuButton(String title,
Menu menu)
|
|
| Method Summary | |
|---|---|
protected JavaScriptObject |
create()
|
Boolean |
getAutoDestroyMenu()
If this menuButton is destroyed, should it also destroy its menu? |
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 IMenuButton |
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 |
setAutoDestroyMenu(Boolean autoDestroyMenu)
If this menuButton is destroyed, should it also destroy its menu? |
static void |
setDefaultProperties(IMenuButton iMenuButtonProperties)
Class level method to set the default properties of this class. |
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. |
void |
setTitle(String title)
Default title for the button. |
| Methods inherited from class com.smartgwt.client.widgets.StretchImg |
|---|
getGripImgSuffix, getHSrc, getImageType, getItemBaseStyle, getShowDownGrip, getShowGrip, getShowRollOverGrip, getVSrc, setDefaultProperties, setGripImgSuffix, setHSrc, setImageType, setItemBaseStyle, setShowDownGrip, setShowGrip, setShowRollOverGrip, setState, setState, setVSrc |
| Methods inherited from class com.smartgwt.client.widgets.StatefulCanvas |
|---|
getOverCanvasConstructor, getRedrawOnStateChange, getShowFocusedAsOver, getShowOverCanvas, getStateSuffix, setDefaultProperties, setOverCanvasConstructor, setRedrawOnStateChange, setShowFocusedAsOver, setShowOverCanvas |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, 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, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, 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 IMenuButton()
public IMenuButton(JavaScriptObject jsObj)
public IMenuButton(String title)
public IMenuButton(String title,
Menu menu)
| Method Detail |
|---|
public static IMenuButton getOrCreateRef(JavaScriptObject jsObj)
protected JavaScriptObject create()
create in class StretchImgButtonpublic void setAutoDestroyMenu(Boolean autoDestroyMenu)
destroyed, should it also destroy its menu?
autoDestroyMenu - autoDestroyMenu Default value is truepublic Boolean getAutoDestroyMenu()
destroyed, should it also destroy its menu?
public void setHiliteAccessKey(Boolean hiliteAccessKey)
throws IllegalStateException
accessKey, underline it in
the title of the button by default
setHiliteAccessKey in class StretchImgButtonhiliteAccessKey - 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 StretchImgButtonpublic void setMenu(Menu menu)
For a menu button with no menu (menu: null) the up/down arrow image can be suppressed by setting
showMenuButtonImage: false.
menu - menu Default value is nullpublic Menu getMenu()
For a menu button with no menu (menu: null) the up/down arrow image can be suppressed by setting
showMenuButtonImage: false.
public void setMenuAnimationEffect(String menuAnimationEffect)
menu.showAnimationEffect
Note : This is an advanced setting
menuAnimationEffect - menuAnimationEffect Default value is nullpublic String getMenuAnimationEffect()
menu.showAnimationEffect
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 createdMenuButton.setMenuButtonImageUp(java.lang.String)public String getMenuButtonImage()
showMenuBelow.
MenuButton.getMenuButtonImageUp()
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 createdMenuButton.setMenuButtonImage(java.lang.String)public String getMenuButtonImageUp()
showMenuBelow.
MenuButton.getMenuButtonImage()public void setShowMenuBelow(Boolean showMenuBelow)
showMenuBelow - True if the menu should be shown below the menubutton.. Default value is truepublic Boolean getShowMenuBelow()
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 setTitle(String title)
setTitle in class StretchImgButtontitle - title Default value is "Show Menu"Basics overview and related methodspublic String getTitle()
getTitle in class StretchImgButtonBasics overview and related methodspublic static void setDefaultProperties(IMenuButton iMenuButtonProperties)
Note: This method is intended for setting default attributes only and will effect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead.
iMenuButtonProperties - properties that should be used as new defaults when instances of this class are created
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||