|
||||||||||
| 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.Label
public class Label
The class Label is the GWT wrapper
for the Phoenix control: sap.ui.commons.Label.
Is used for labeling other controls. The API provides formatting options, for example for bold display or alignment. A label can have an icon.
| Constructor Summary | |
|---|---|
protected |
Label()
constructs the class Labelhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
static Label |
create()
creates a new instance of the class Label |
static Label |
create(String idOrConfig)
creates a new instance of the class Label |
static Label |
create(String id,
String config)
creates a new instance of the class Label |
LabelDesign |
getDesign()
Getter for property design
Labels can have bold format. |
String |
getIcon()
Getter for property icon
Icon to be displayed in the control. |
String |
getLabelFor()
Association to the labeled control. |
String |
getText()
Getter for property text
Text to be displayed. |
com.sap.ui.core.client.TextAlign |
getTextAlign()
Getter for property textAlign
Available alignment settings are "Begin", "Center", "End", "Left", and "Right". |
com.sap.ui.core.client.TextDirection |
getTextDirection()
Getter for property textDirection
Options for the text direction are RTL and LTR. |
String |
getWidth()
Getter for property width
Control width as common CSS-size (px or % as unit, for example). |
boolean |
isVisible()
Getter for property visible
Invisible labels are not rendered. |
boolean |
isWrapping()
Getter for property wrapping
Specifies whether a line wrapping shall be displayed when the text value is longer than the width (feature support in preparation) |
Label |
setDesign(LabelDesign value)
Setter for property designDefault value is: sap.ui.commons.LabelDesign.Standard |
Label |
setIcon(String value)
Setter for property icon |
Label |
setLabelFor(com.sap.ui.core.client.Control labelFor)
Association to the labeled control. |
Label |
setLabelFor(String labelFor)
Association to the labeled control. |
Label |
setText(String value)
Setter for property textDefault value is: '' |
Label |
setTextAlign(com.sap.ui.core.client.TextAlign value)
Setter for property textAlignDefault value is: sap.ui.core.TextAlign.Begin |
Label |
setTextDirection(com.sap.ui.core.client.TextDirection value)
Setter for property textDirectionDefault value is: sap.ui.core.TextDirection.Inherit |
Label |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
Label |
setWidth(String value)
Setter for property widthDefault value is: '' |
Label |
setWrapping(boolean value)
Setter for property wrappingDefault value is: false |
| 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 Label()
LabelJavaScriptObject restriction
| Method Detail |
|---|
public static Label create()
Label
public static Label create(String idOrConfig)
Label
id - id of the Label or configuration JSON string
public static Label create(String id,
String config)
Label
id - id of the Labelconfig - configuration JSON stringpublic final LabelDesign getDesign()
design
Labels can have bold format.
public final Label setDesign(LabelDesign value)
designsap.ui.commons.LabelDesign.Standard
value - com.sap.ui.commons.client.LabelDesign
this to allow method chainingpublic final com.sap.ui.core.client.TextDirection getTextDirection()
textDirection
Options for the text direction are RTL and LTR. Alternatively, the control can inherit the text direction from its parent container.
public final Label setTextDirection(com.sap.ui.core.client.TextDirection value)
textDirectionsap.ui.core.TextDirection.Inherit
value - com.sap.ui.core.client.TextDirection
this to allow method chainingpublic final boolean isWrapping()
wrapping
Specifies whether a line wrapping shall be displayed when the text value is longer than the width (feature support in preparation)
public final Label setWrapping(boolean value)
wrappingfalse
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 Label setWidth(String value)
width''
value - String
this to allow method chainingpublic final String getText()
text
Text to be displayed.
public final Label setText(String value)
text''
value - String
this to allow method chainingpublic final boolean isVisible()
visible
Invisible labels are not rendered.
public final Label setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final String getIcon()
icon
Icon to be displayed in the control.
public final Label setIcon(String value)
icon
value - String
this to allow method chainingpublic final com.sap.ui.core.client.TextAlign getTextAlign()
textAlign
Available alignment settings are "Begin", "Center", "End", "Left", and "Right".
public final Label setTextAlign(com.sap.ui.core.client.TextAlign value)
textAlignsap.ui.core.TextAlign.Begin
value - com.sap.ui.core.client.TextAlign
this to allow method chainingpublic final String getLabelFor()
public final Label setLabelFor(String labelFor)
labelFor - id of the associated com.sap.ui.core.client.Control or null
this to allow method chainingpublic final Label setLabelFor(com.sap.ui.core.client.Control labelFor)
labelFor - An associated com.sap.ui.core.client.Control or null
this to allow method chaining
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||