|
|||||||||
| 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.BoxComponent
com.extjs.gxt.ui.client.widget.button.Button
com.extjs.gxt.ui.client.widget.button.ToggleButton
public class ToggleButton
A 2-state toggle button.
| 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.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
ToggleButton()
Creates a new toggle button. |
|
ToggleButton(java.lang.String text)
Creates a new toggle button. |
|
ToggleButton(java.lang.String text,
com.google.gwt.user.client.ui.AbstractImagePrototype icon)
Creates a new toggle button with the given text and icon. |
|
ToggleButton(java.lang.String text,
SelectionListener<ButtonEvent> listener)
Creates a new toggle button. |
|
| Method Summary | |
|---|---|
java.lang.String |
getToggleGroup()
Returns the toggle group name. |
boolean |
isAllowDepress()
|
boolean |
isPressed()
Returns true if the button is pressed. |
void |
setAllowDepress(boolean allowDepress)
True to allow a toggle item to be depressed (default to true). |
void |
setToggleGroup(java.lang.String toggleGroup)
Optionally, set the the button's toggle group name. |
void |
toggle()
Toggles the current state. |
void |
toggle(boolean state)
Sets the current pressed state. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.button.Button |
|---|
addSelectionListener, getArrowAlign, getIcon, getIconAlign, getMenu, getMenuAlign, getMinWidth, getMouseEvents, getScale, getText, getType, hideMenu, onComponentEvent, removeSelectionListener, setArrowAlign, setIcon, setIconAlign, setIconStyle, setMenu, setMenuAlign, setMinWidth, setMouseEvents, setScale, setTabIndex, setText, setType, showMenu |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
getBounds, getHeight, getHeight, getPosition, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getParent, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ToggleButton()
public ToggleButton(java.lang.String text)
text - the button text
public ToggleButton(java.lang.String text,
SelectionListener<ButtonEvent> listener)
text - the button textlistener - a selection listener
public ToggleButton(java.lang.String text,
com.google.gwt.user.client.ui.AbstractImagePrototype icon)
text - the button texticon - the icon| Method Detail |
|---|
public java.lang.String getToggleGroup()
public boolean isAllowDepress()
public boolean isPressed()
public void toggle()
public void toggle(boolean state)
state - true to set pressed statepublic void setAllowDepress(boolean allowDepress)
allowDepress - true to allow depressingpublic void setToggleGroup(java.lang.String toggleGroup)
toggleGroup - the toggle group name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||