|
|||||||||
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.menu.BaseItem
public class BaseItem
The base class for all items that render into menus. BaseItem provides default rendering, activated state management and base configuration options shared by all menu components.
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 | |
---|---|
BaseItem()
|
|
BaseItem(com.google.gwt.core.client.JavaScriptObject jsObj)
|
Method Summary | |
---|---|
void |
addListener(BaseItemListener listener)
Adda BaseItem listener. |
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject config)
|
java.lang.String |
getActiveClass()
The CSS class to use when the item becomes activated. |
protected com.google.gwt.core.client.JavaScriptObject |
getConfigPrototype()
|
int |
getHideDelay()
Length of time in milliseconds to wait before hiding after a click (defaults to 100). |
int |
getShowDelay()
Length of time in milliseconds to wait before showing a hidden item after a click (defaults to 100). |
boolean |
isCanActivate()
True if this item can be visually activated (defaults to false). |
boolean |
isHideOnClick()
True to hide the containing menu after this item is clicked (defaults to true). |
void |
setActiveClass(java.lang.String activeClass)
The CSS class to use when the item becomes activated (defaults to "x-menu-item-active") |
void |
setCanActivate(boolean canActivate)
True if this item can be visually activated (defaults to false) |
void |
setHideDelay(int hideDelay)
Length of time in milliseconds to wait before hiding after a click (defaults to 100). |
void |
setHideOnClick(boolean hideOnClick)
True to hide the containing menu after this item is clicked (defaults to true). |
void |
setIcon(java.lang.String icon)
|
void |
setShowDelay(int showDelay)
Length of time in milliseconds to wait before showing a hidden item after a click (defaults to 100) |
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 BaseItem()
public BaseItem(com.google.gwt.core.client.JavaScriptObject jsObj)
Method Detail |
---|
protected com.google.gwt.core.client.JavaScriptObject getConfigPrototype()
getConfigPrototype
in class Component
public void addListener(BaseItemListener listener)
listener
- the listenerprotected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)
create
in class Component
public void setActiveClass(java.lang.String activeClass) throws java.lang.IllegalStateException
activeClass
- the active CSS class
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic java.lang.String getActiveClass()
public void setCanActivate(boolean canActivate) throws java.lang.IllegalStateException
canActivate
- true if can be activated
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic boolean isCanActivate() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setHideDelay(int hideDelay) throws java.lang.IllegalStateException
hideDelay
- the hide delay
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic int getHideDelay() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setShowDelay(int showDelay) throws java.lang.IllegalStateException
showDelay
- the show delay
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic int getShowDelay() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setHideOnClick(boolean hideOnClick) throws java.lang.IllegalStateException
hideOnClick
- true to hide on click
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic boolean isHideOnClick() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setIcon(java.lang.String icon)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |