|
||||||||||
| 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.google.gwt.user.client.ui.Composite
org.exoplatform.gwtframework.ui.client.component.IconButton
public class IconButton
Created by The eXo Platform SAS .
| 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 | |
|---|---|
protected com.google.gwt.user.client.Command |
command
Command which will be executed when button was pressed. |
protected java.lang.String |
disabledIcon
Icon for disabled state. |
protected java.lang.String |
icon
Icon for enabled state. |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
IconButton()
Creates new instance of this IconButton. |
|
IconButton(com.google.gwt.user.client.ui.Image icon,
com.google.gwt.user.client.ui.Image disabledIcon)
Creates a new instance of this IconButton |
|
IconButton(java.lang.String icon,
java.lang.String disabledIcon)
Create IconButton with icons. |
|
IconButton(java.lang.String icon,
java.lang.String disabledIcon,
com.google.gwt.user.client.Command command)
Create IconButton with icons and command. |
|
| Method Summary | |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
|
com.google.gwt.user.client.Command |
getCommand()
Get command which will be executed when button was pressed. |
java.lang.String |
getDisabledIcon()
Get icon for disabled state. |
java.lang.String |
getIcon()
Get icon for enabled state. |
boolean |
isEnabled()
Get is enabled. |
boolean |
isSelected()
Get is button selected. |
void |
setCommand(com.google.gwt.user.client.Command command)
Set command which will be executed when button was pressed. |
void |
setDisabledIcon(java.lang.String disabledIcon)
Set icon as HTML image for disabled state. |
void |
setEnabled(boolean enabled)
Set is enabled. |
void |
setIcon(java.lang.String icon)
Set icon as HTML image for enabled state. |
void |
setImageName(java.lang.String imageName)
Set name of the image which will be received from ImageFactory |
void |
setSelected(boolean selected)
Set button is selected. |
void |
setTitle(java.lang.String title)
Sets the title associated with this button. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Field Detail |
|---|
protected java.lang.String icon
protected java.lang.String disabledIcon
protected com.google.gwt.user.client.Command command
| Constructor Detail |
|---|
public IconButton(java.lang.String icon,
java.lang.String disabledIcon)
icon - icon for enabled statedisabledIcon - icon for disabled statepublic IconButton()
IconButton.
public IconButton(com.google.gwt.user.client.ui.Image icon,
com.google.gwt.user.client.ui.Image disabledIcon)
IconButton
icon - html image for enabled statedisabledIcon - html image for disabled state
public IconButton(java.lang.String icon,
java.lang.String disabledIcon,
com.google.gwt.user.client.Command command)
icon - icon for enabled statedisabledIcon - icon for disabled statecommand - command which will be executed when button was pressed.| Method Detail |
|---|
public com.google.gwt.user.client.Command getCommand()
public void setCommand(com.google.gwt.user.client.Command command)
command - command which will be executed when button was pressedpublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - is enabledpublic java.lang.String getIcon()
public void setIcon(java.lang.String icon)
icon - iconpublic java.lang.String getDisabledIcon()
public void setDisabledIcon(java.lang.String disabledIcon)
disabledIcon - icon which is uses for disabled statepublic boolean isSelected()
true if button selected, false otherwise.public void setSelected(boolean selected)
selected - is button selectedpublic void setImageName(java.lang.String imageName)
ImageFactory
imageName - name of the imagepublic void setTitle(java.lang.String title)
setTitle in class com.google.gwt.user.client.ui.UIObjecttitle - the object's new titlepublic com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
addClickHandler in interface com.google.gwt.event.dom.client.HasClickHandlers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||