|
||||||||||
| 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.TextButton
public class TextButton
Created by The eXo Platform SAS .
| Nested Class Summary | |
|---|---|
static interface |
TextButton.Style
|
static class |
TextButton.TextAlignment
|
| 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 | |
|---|---|
TextButton(java.lang.String text)
Create StatusText component. |
|
TextButton(java.lang.String text,
com.google.gwt.user.client.Command command)
Create StatusText component. |
|
TextButton(java.lang.String text,
TextButton.TextAlignment textAlignment)
Create StatusText component. |
|
TextButton(java.lang.String text,
TextButton.TextAlignment textAlignment,
com.google.gwt.user.client.Command command)
Create StatusText component. |
|
| Method Summary | |
|---|---|
com.google.gwt.user.client.Command |
getCommand()
Get command. |
java.lang.String |
getText()
Get status text. |
TextButton.TextAlignment |
getTextAlignment()
Get text alignment. |
boolean |
isExecuteCommandOnSingleClick()
Get is execute command on single mouse click. |
protected void |
onMouseClick()
Handler of MouseClick event. |
protected void |
onMouseDClick()
Handler of MouseDoubleClick event. |
protected void |
onMouseDown()
Handler of MouseDown event. |
protected void |
onMouseOut()
Handler of MouseOut event. |
protected void |
onMouseOver()
Handler of MouseOver event. |
protected void |
onMouseUp()
Handler of MouseUp event. |
void |
setCommand(com.google.gwt.user.client.Command command)
Set command which will be executed when component will be clicked. |
void |
setExecuteCommandOnSingleClick(boolean executeCommandOnSingleClick)
Enable or disable execution of command on single mouse clicking. |
void |
setText(java.lang.String text)
Set status text. |
void |
setTextAlignment(TextButton.TextAlignment textAlignment)
Set text alignment. |
void |
setTitle(java.lang.String title)
Sets new title of this TextButton. |
void |
setWidth(int width)
Sets new width of this TextButton. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget |
| 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 |
| Constructor Detail |
|---|
public TextButton(java.lang.String text)
text - status text
public TextButton(java.lang.String text,
com.google.gwt.user.client.Command command)
text - status textcommand - command which will be executed when StatusText command will be clicked
public TextButton(java.lang.String text,
TextButton.TextAlignment textAlignment)
text - status texttextAlignment - alignment of the text
public TextButton(java.lang.String text,
TextButton.TextAlignment textAlignment,
com.google.gwt.user.client.Command command)
text - status texttextAlignment - alignment of the textcommand - command which will be executed when StatusText command will be clicked| Method Detail |
|---|
public com.google.gwt.user.client.Command getCommand()
public java.lang.String getText()
public TextButton.TextAlignment getTextAlignment()
public boolean isExecuteCommandOnSingleClick()
protected void onMouseClick()
protected void onMouseDClick()
protected void onMouseDown()
protected void onMouseOut()
protected void onMouseOver()
protected void onMouseUp()
public void setCommand(com.google.gwt.user.client.Command command)
command - command which will be executed when component will be clickedpublic void setExecuteCommandOnSingleClick(boolean executeCommandOnSingleClick)
executeCommandOnSingleClick - enable or disable execution of command on single mouse clickingpublic void setText(java.lang.String text)
text - status textpublic void setTextAlignment(TextButton.TextAlignment textAlignment)
textAlignment - text alignmentpublic void setTitle(java.lang.String title)
setTitle in class com.google.gwt.user.client.ui.UIObjectUIObject.setTitle(java.lang.String)public void setWidth(int width)
width - new width
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||