|
|||||||||
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.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.menu.Item
com.extjs.gxt.ui.client.widget.menu.MenuItem
com.extjs.gxt.ui.client.widget.menu.CheckMenuItem
public class CheckMenuItem
Adds a menu item that contains a checkbox by default, but can also be part of a radio group. A horizontal row of buttons.
BaseEvent.setCancelled(boolean)
.
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.extjs.gxt.ui.client.widget.menu.MenuItem |
---|
icon, itemStyle, subMenu, text, widget |
Fields inherited from class com.extjs.gxt.ui.client.widget.menu.Item |
---|
canActivate, hideOnClick, parentMenu |
Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
CheckMenuItem()
Creates a new check menu item. |
|
CheckMenuItem(java.lang.String text)
Creates a new check menu item. |
Method Summary | |
---|---|
java.lang.String |
getAriaGroupTitle()
Returns the ARIA group title. |
java.lang.String |
getGroup()
Returns the group name. |
java.lang.String |
getGroupStyle()
Returns the group style. |
boolean |
isChecked()
Returns true if the item is checked. |
protected void |
onClick(ComponentEvent ce)
|
protected void |
onRadioClick(ComponentEvent ce)
|
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Subclasses must override and ensure setElement is called for lazy rendered components. |
void |
setAriaGroupTitle(java.lang.String title)
Sets the title attribute on the group container element. |
void |
setChecked(boolean checked)
Set the checked state of this item. |
void |
setChecked(boolean state,
boolean supressEvent)
Set the checked state of this item. |
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 null). |
void |
setGroupStyle(java.lang.String groupStyle)
The default CSS class to use for radio group check items (defaults to "x-menu-group-item"). |
Methods inherited from class com.extjs.gxt.ui.client.widget.menu.MenuItem |
---|
activate, afterRender, deactivate, doAttachChildren, doDetachChildren, expandMenu, expandMenu, getIcon, getSubMenu, getText, getWidget, onDisable, onEnable, setIcon, setIconStyle, setSubMenu, setText, setWidget, shouldDeactivate |
Methods inherited from class com.extjs.gxt.ui.client.widget.menu.Item |
---|
addSelectionListener, getActiveStyle, getHideOnClick, getParentMenu, handleClick, isCanActivate, onEscape, removeSelectionListener, setActiveStyle, setCanActivate, setHideOnClick |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onUnload, setLayoutData |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CheckMenuItem()
public CheckMenuItem(java.lang.String text)
text
- the textMethod Detail |
---|
public java.lang.String getAriaGroupTitle()
public java.lang.String getGroup()
public java.lang.String getGroupStyle()
public boolean isChecked()
public void setAriaGroupTitle(java.lang.String title)
title
- the titlepublic void setChecked(boolean checked)
checked
- the new checked statepublic void setChecked(boolean state, boolean supressEvent)
state
- the new checked statesupressEvent
- true to prevent the CheckChange event from firingpublic void setGroup(java.lang.String group)
group
- the grouppublic void setGroupStyle(java.lang.String groupStyle)
groupStyle
- the group styleprotected void onClick(ComponentEvent ce)
onClick
in class Item
protected void onRadioClick(ComponentEvent ce)
protected void onRender(com.google.gwt.user.client.Element target, int index)
Component
onRender
in class MenuItem
target
- the target elementindex
- the insert location
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |