|
||||||||||
| 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.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.ButtonWidget
public class ButtonWidget
The class Button is the GWT wrapper
for the Phoenix control: sap.ui.commons.Button.
Using the button control you enable end users to trigger actions such as Save or Print. For the button UI, you can define some text or an icon, or both.
| 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 | |
|---|---|
|
ButtonWidget()
constructs the class ButtonWidget |
protected |
ButtonWidget(Button control)
constructs the class ButtonWidget |
|
ButtonWidget(String id)
constructs the class ButtonWidget |
| Method Summary | |
|---|---|
void |
attachPressEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the user presses the control. |
void |
detachPressEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when the user presses the control. |
void |
focus()
Puts the focus into the control. |
Button |
getControl()
returns the reference to the Phoenix Control |
String |
getHeight()
Getter for property height
The height of the Button. |
String |
getHelpId()
Getter for property helpId
Unique identifier used for help service. |
String |
getIcon()
Getter for property icon
Icon displayed within the control at runtime. |
String |
getText()
Getter for property text
Control text displayed at runtime. |
String |
getWidth()
Getter for property width
Control width as common CSS-size (px or % as unit, for example). |
boolean |
isEnabled()
Getter for property enabled
Disabled buttons have other colors than enabled ones, depending on customer settings. |
boolean |
isIconFirst()
Getter for property iconFirst
The display sequence is 1.icon 2.control text. |
boolean |
isVisible()
Getter for property visible
Invisible buttons are not rendered. |
void |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
void |
setHeight(String value)
Setter for property height |
void |
setHelpId(String value)
Setter for property helpIdDefault value is: '' |
void |
setIcon(String value)
Setter for property iconDefault value is: '' |
void |
setIconFirst(boolean value)
Setter for property iconFirstDefault value is: true |
void |
setText(String value)
Setter for property textDefault value is: '' |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
setWidth(String value)
Setter for property width |
| Methods inherited from class com.sap.ui.core.client.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| 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, onAttach, onBrowserEvent, onDetach, 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, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ButtonWidget()
ButtonWidget
public ButtonWidget(String id)
ButtonWidget
id - id of the ButtonWidgetprotected ButtonWidget(Button control)
ButtonWidget
control - reference to an existing Button| Method Detail |
|---|
public Button getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getText()
text
Control text displayed at runtime.
public void setText(String value)
text''
value - Stringpublic boolean isEnabled()
enabled
Disabled buttons have other colors than enabled ones, depending on customer settings.
public void setEnabled(boolean value)
enabledtrue
value - booleanpublic boolean isVisible()
visible
Invisible buttons are not rendered.
isVisible in class com.google.gwt.user.client.ui.UIObjectpublic void setVisible(boolean value)
visibletrue
setVisible in class com.google.gwt.user.client.ui.UIObjectvalue - booleanpublic String getWidth()
width
Control width as common CSS-size (px or % as unit, for example).
public void setWidth(String value)
width
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic String getHelpId()
helpId
Unique identifier used for help service.
public void setHelpId(String value)
helpId''
value - Stringpublic String getIcon()
icon
Icon displayed within the control at runtime.
public void setIcon(String value)
icon''
value - Stringpublic boolean isIconFirst()
iconFirst
The display sequence is 1.icon 2.control text.
public void setIconFirst(boolean value)
iconFirsttrue
value - booleanpublic String getHeight()
height
The height of the Button.
NOTE: if this property is set, the height defined by the theme is not used anymore! The themes, however, define the official SAP design, so this property should only be used in justified special cases.
public void setHeight(String value)
height
setHeight in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic void attachPressEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user presses the control.
listener - reference to the EventListenerpublic void detachPressEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user presses the control.
listener - reference to the EventListenerpublic void focus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||