|
|||||||||
| 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
com.gwtext.client.widgets.menu.TextItem
public class TextItem
Adds a static text string to a menu, usually used as either a heading or group separator.
| 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 | |
|---|---|
TextItem()
|
|
TextItem(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
TextItem(java.lang.String text)
Create a new TextItem. |
|
TextItem(java.lang.String text,
BaseItemListener listener)
Create a new TextItem. |
|
| Method Summary | |
|---|---|
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject config)
|
protected com.google.gwt.core.client.JavaScriptObject |
getConfigPrototype()
|
java.lang.String |
getItemCls()
The default CSS class to use for text items (defaults to "x-menu-text"). |
java.lang.String |
getText()
Return the items text. |
void |
setItemCls(java.lang.String itemCls)
The default CSS class to use for text items (defaults to "x-menu-text"). |
void |
setText(java.lang.String text)
Sets the text. |
| Methods inherited from class com.gwtext.client.widgets.menu.BaseItem |
|---|
addListener, getActiveClass, getHideDelay, getShowDelay, isCanActivate, isHideOnClick, setActiveClass, setCanActivate, setHideDelay, setHideOnClick, setIcon, setShowDelay |
| 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 TextItem()
public TextItem(java.lang.String text)
text - the text. can pass html like Choose a Theme for custom styling
public TextItem(java.lang.String text,
BaseItemListener listener)
text - the text. can pass html like Choose a Theme for custom stylinglistener - the listenerpublic TextItem(com.google.gwt.core.client.JavaScriptObject jsObj)
| Method Detail |
|---|
protected com.google.gwt.core.client.JavaScriptObject getConfigPrototype()
getConfigPrototype in class BaseItemprotected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)
create in class BaseItem
public void setText(java.lang.String text)
throws java.lang.IllegalStateException
text - the text
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getText()
public void setItemCls(java.lang.String itemCls)
throws java.lang.IllegalStateException
itemCls - the item CSS class
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
public java.lang.String getItemCls()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||