|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.sap.ui.core.client.Element
com.sap.ui.core.client.Control
com.sap.ui.commons.client.Button
public class Button
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.
| Constructor Summary | |
|---|---|
protected |
Button()
constructs the class Buttonhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
Button |
attachPressEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the user presses the control. |
static Button |
create()
creates a new instance of the class Button |
static Button |
create(String idOrConfig)
creates a new instance of the class Button |
static Button |
create(String id,
String config)
creates a new instance of the class Button |
Button |
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. |
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. |
Button |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
Button |
setHeight(String value)
Setter for property height |
Button |
setHelpId(String value)
Setter for property helpIdDefault value is: '' |
Button |
setIcon(String value)
Setter for property iconDefault value is: '' |
Button |
setIconFirst(boolean value)
Setter for property iconFirstDefault value is: true |
Button |
setText(String value)
Setter for property textDefault value is: '' |
Button |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
Button |
setWidth(String value)
Setter for property width |
| Methods inherited from class com.sap.ui.core.client.Control |
|---|
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender |
| Methods inherited from class com.sap.ui.core.client.Element |
|---|
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Button()
ButtonJavaScriptObject restriction
| Method Detail |
|---|
public static Button create()
Button
public static Button create(String idOrConfig)
Button
id - id of the Button or configuration JSON string
public static Button create(String id,
String config)
Button
id - id of the Buttonconfig - configuration JSON stringpublic final String getText()
text
Control text displayed at runtime.
public final Button setText(String value)
text''
value - String
this to allow method chainingpublic final boolean isEnabled()
enabled
Disabled buttons have other colors than enabled ones, depending on customer settings.
public final Button setEnabled(boolean value)
enabledtrue
value - boolean
this to allow method chainingpublic final boolean isVisible()
visible
Invisible buttons are not rendered.
public final Button setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final String getWidth()
width
Control width as common CSS-size (px or % as unit, for example).
public final Button setWidth(String value)
width
value - String
this to allow method chainingpublic final String getHelpId()
helpId
Unique identifier used for help service.
public final Button setHelpId(String value)
helpId''
value - String
this to allow method chainingpublic final String getIcon()
icon
Icon displayed within the control at runtime.
public final Button setIcon(String value)
icon''
value - String
this to allow method chainingpublic final boolean isIconFirst()
iconFirst
The display sequence is 1.icon 2.control text.
public final Button setIconFirst(boolean value)
iconFirsttrue
value - boolean
this to allow method chainingpublic final 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 final Button setHeight(String value)
height
value - String
this to allow method chainingpublic final Button attachPressEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user presses the control.
listener - reference to the EventListener
this to allow method chainingpublic final Button detachPressEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user presses the control.
listener - reference to the EventListener
this to allow method chainingpublic final void focus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||