| |
|
| com.gwtext.client.widgets.menu.BaseItem com.gwtext.client.widgets.menu.TextItem
TextItem | public class TextItem extends BaseItem (Code) | | Adds a static text string to a menu, usually used as either a heading or group separator.
|
Method Summary | |
native protected JavaScriptObject | create(JavaScriptObject config) | protected JavaScriptObject | getConfigPrototype() | public String | getItemCls() The default CSS class to use for text items (defaults to "x-menu-text"). | public void | setItemCls(String itemCls) The default CSS class to use for text items (defaults to "x-menu-text"). | public void | setText(String text) Sets the text. |
TextItem | public TextItem()(Code) | | |
TextItem | public TextItem(String text)(Code) | | Create a new TextItem.
Parameters: text - the text. can pass html like for custom styling |
TextItem | public TextItem(String text, BaseItemListener listener)(Code) | | Create a new TextItem.
Parameters: text - the text. can pass html like for custom styling Parameters: listener - the listener |
create | native protected JavaScriptObject create(JavaScriptObject config)(Code) | | |
getConfigPrototype | protected JavaScriptObject getConfigPrototype()(Code) | | |
getItemCls | public String getItemCls() throws IllegalStateException(Code) | | The default CSS class to use for text items (defaults to "x-menu-text").
the default CSS class to use for text items throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setItemCls | public void setItemCls(String itemCls) throws IllegalStateException(Code) | | The default CSS class to use for text items (defaults to "x-menu-text").
Parameters: itemCls - the item CSS class throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
|
|
|