|
|||||||||
| 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.Item
com.gwtext.client.widgets.menu.CheckItem
public class CheckItem
Adds a menu item that contains a checkbox by default, but can also be part of a radio group.
| 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 | |
|---|---|
CheckItem()
Create a new CheckItem. |
|
CheckItem(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
CheckItem(java.lang.String text)
Create a new CheckItem. |
|
CheckItem(java.lang.String text,
boolean checked)
Create a new CheckItem. |
|
| Method Summary | |
|---|---|
void |
addListener(CheckItemListener listener)
Add a CheckItemListener. |
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject jsObj)
|
protected com.google.gwt.core.client.JavaScriptObject |
getConfigPrototype()
|
boolean |
isChecked()
True if checked. |
void |
setChecked(boolean checked)
True to mark the checkbox as checked (defaults to false). |
void |
setGroup(java.lang.String group)
All check items with the same group name will automatically be grouped into a single-select radio button group (defaults to ''). |
void |
setGroupClass(java.lang.String groupClass)
The default CSS class to use for radio group check items (defaults to "x-menu-group-item"). |
void |
setItemCls(java.lang.String itemCls)
The default CSS class to use for check items (defaults to "x-menu-item x-menu-check-item"). |
| Methods inherited from class com.gwtext.client.widgets.menu.Item |
|---|
getHref, getHrefTarget, getIconCls, getItemCls, getText, getXType, setHref, setHrefTarget, setIcon, setIconCls, setText |
| Methods inherited from class com.gwtext.client.widgets.menu.BaseItem |
|---|
addListener, getActiveClass, getHideDelay, getShowDelay, isCanActivate, isHideOnClick, setActiveClass, setCanActivate, setHideDelay, setHideOnClick, 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 CheckItem()
public CheckItem(java.lang.String text)
text - the CheckItem text
public CheckItem(java.lang.String text,
boolean checked)
text - the CheckItem textchecked - true for checkedpublic CheckItem(com.google.gwt.core.client.JavaScriptObject jsObj)
| Method Detail |
|---|
protected com.google.gwt.core.client.JavaScriptObject getConfigPrototype()
getConfigPrototype in class Itemprotected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject jsObj)
create in class Itempublic void addListener(CheckItemListener listener)
listener - the listenerpublic void setChecked(boolean checked)
checked - true to set as checkedpublic boolean isChecked()
public void setGroup(java.lang.String group)
throws java.lang.IllegalStateException
group - the group name
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
public void setGroupClass(java.lang.String groupClass)
throws java.lang.IllegalStateException
groupClass - the group CSS class
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
public void setItemCls(java.lang.String itemCls)
throws java.lang.IllegalArgumentException
setItemCls in class ItemitemCls - the default CSS class to use for check items
java.lang.IllegalArgumentException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||