|
|||||||||
| 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.IconButton
com.smartgwt.client.widgets.menu.IconMenuButton
public class IconMenuButton
A subclass of IconButton that shows a menuIcon by default and implements showMenu().
| 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 | |
|---|---|
IconMenuButton()
|
|
IconMenuButton(JavaScriptObject jsObj)
|
|
IconMenuButton(String title)
|
|
IconMenuButton(String title,
Menu menu)
|
|
| Method Summary | |
|---|---|
protected JavaScriptObject |
create()
|
Menu |
getMenu()
The menu to show when the menu-icon is clicked. |
String |
getMenuAnimationEffect()
Allows you to specify an animation effect to apply to the menu when it is being shown. |
static IconMenuButton |
getOrCreateRef(JavaScriptObject jsObj)
|
static void |
setDefaultProperties(IconMenuButton iconMenuButtonProperties)
Class level method to set the default properties of this class. |
void |
setMenu(Menu menu)
The menu to show when the menu-icon is clicked. |
void |
setMenuAnimationEffect(String menuAnimationEffect)
Allows you to specify an animation effect to apply to the menu when it is being shown. |
void |
showMenu()
Shows this button's menu. |
| Methods inherited from class com.smartgwt.client.widgets.IconButton |
|---|
getBaseStyle, getIcon, getIconSize, getLargeIcon, getLargeIconSize, getMenuIconSrc, getOrientation, getShowMenuIcon, getShowMenuIconOver, menuIconClick, setBaseStyle, setDefaultProperties, setIcon, setIconSize, setLargeIcon, setLargeIconSize, setMenuIconSrc, setOrientation, setShowMenuIcon, setShowMenuIconOver |
| Methods inherited from class com.smartgwt.client.widgets.StatefulCanvas |
|---|
getOverCanvasConstructor, getRedrawOnStateChange, getShowFocusedAsOver, getShowOverCanvas, getStateSuffix, setDefaultProperties, setOverCanvasConstructor, setRedrawOnStateChange, setShowFocusedAsOver, setShowOverCanvas, setTitleStyle |
| 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 IconMenuButton()
public IconMenuButton(JavaScriptObject jsObj)
public IconMenuButton(String title)
public IconMenuButton(String title,
Menu menu)
| Method Detail |
|---|
public static IconMenuButton getOrCreateRef(JavaScriptObject jsObj)
protected JavaScriptObject create()
create in class IconButtonpublic 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 showMenu()
menu. Called automatically when a
user clicks the menuIcon.
public static void setDefaultProperties(IconMenuButton iconMenuButtonProperties)
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.
iconMenuButtonProperties - 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 | ||||||||