|
|||||||||
| 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.toolbar.ToolItem
com.extjs.gxt.ui.client.widget.toolbar.TextToolItem
public class TextToolItem
A tool item with optional text and icon style.
![]() |
![]() |
![]() |
![]() |
| 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 | |
|---|---|
TextToolItem()
Creates a new text tool item. |
|
TextToolItem(java.lang.String text)
Creates a new text tool item. |
|
TextToolItem(java.lang.String text,
SelectionListener<ToolBarEvent> selectionListener)
Creates a new text tool item. |
|
TextToolItem(java.lang.String text,
java.lang.String iconStyle)
Creates a new text tool item. |
|
| Method Summary | |
|---|---|
void |
addSelectionListener(SelectionListener listener)
Adds a selection listener. |
java.lang.String |
getIconStyle()
Returns the item's icon style. |
Menu |
getMenu()
Returns the item's menu (if it has one). |
java.lang.String |
getText()
Returns the button's text. |
ToolBar |
getToolBar()
Returns the item's parent tool bar. |
ToolTip |
getToolTip()
Returns the component's tool tip. |
void |
removeSelectionListener(SelectionListener listener)
Removes a selection listener. |
void |
setIconStyle(java.lang.String iconStyle)
Sets the item's icon style. |
void |
setMenu(Menu menu)
Sets the item's menu. |
void |
setText(java.lang.String text)
Sets the item's text. |
void |
setToolTip(java.lang.String text)
Sets the component's tool tip. |
void |
setToolTip(ToolTipConfig config)
Sets the component's tool tip with the given config. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.Component |
|---|
addListener, addPlugin, addStyleName, addWidgetListener, disable, disableEvents, disableTextSelection, el, enable, enableEvents, fireEvent, fireEvent, fireEvent, fly, focus, getBaseStyle, getBorders, getData, getData, getElement, getId, getItemId, getModel, getState, hide, hideToolTip, isDisabledEvents, isEnabled, isRendered, isVisible, onBrowserEvent, onComponentEvent, recalculate, removeAllListeners, removeFromParent, removeListener, removeStyleName, removeWidgetListener, render, render, saveState, setBorders, setData, setData, setElement, setEnabled, setEnableState, setHeight, setId, setIntStyleAttribute, setItemId, setPixelSize, setSize, setStyleAttribute, setStyleName, setTitle, setVisible, setWidth, show, sinkEvents, toString |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
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 TextToolItem()
public TextToolItem(java.lang.String text)
text - the tool item text
public TextToolItem(java.lang.String text,
SelectionListener<ToolBarEvent> selectionListener)
text - the item's textselectionListener - a selection listener
public TextToolItem(java.lang.String text,
java.lang.String iconStyle)
text - the texticonStyle - the icon style| Method Detail |
|---|
public void addSelectionListener(SelectionListener listener)
listener - the selection listenerpublic java.lang.String getIconStyle()
public Menu getMenu()
public java.lang.String getText()
public ToolBar getToolBar()
getToolBar in class ToolItempublic ToolTip getToolTip()
Component
getToolTip in class Componentpublic void removeSelectionListener(SelectionListener listener)
listener - the listener to be removedpublic void setIconStyle(java.lang.String iconStyle)
.my-icon {
background: url(images/icons/my-icon.png) no-repeat center left !important;
}
iconStyle - the icon stylepublic void setMenu(Menu menu)
menu - the menupublic void setText(java.lang.String text)
text - the textpublic void setToolTip(java.lang.String text)
Component
setToolTip in class Componenttext - the textpublic void setToolTip(ToolTipConfig config)
Component
setToolTip in class Componentconfig - the tool tip config
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||