|
||||||||||
| 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.LabelWidget
public class LabelWidget
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.
| 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 | |
|---|---|
|
LabelWidget()
constructs the class LabelWidget |
protected |
LabelWidget(Label control)
constructs the class LabelWidget |
|
LabelWidget(String id)
constructs the class LabelWidget |
| Method Summary | |
|---|---|
Label |
getControl()
returns the reference to the Phoenix Control |
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) |
void |
setDesign(LabelDesign value)
Setter for property designDefault value is: sap.ui.commons.LabelDesign.Standard |
void |
setIcon(String value)
Setter for property icon |
void |
setLabelFor(com.sap.ui.core.client.Control labelFor)
Association to the labeled control. |
void |
setLabelFor(String labelFor)
Association to the labeled control. |
void |
setText(String value)
Setter for property textDefault value is: '' |
void |
setTextAlign(com.sap.ui.core.client.TextAlign value)
Setter for property textAlignDefault value is: sap.ui.core.TextAlign.Begin |
void |
setTextDirection(com.sap.ui.core.client.TextDirection value)
Setter for property textDirectionDefault value is: sap.ui.core.TextDirection.Inherit |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
setWidth(String value)
Setter for property widthDefault value is: '' |
void |
setWrapping(boolean value)
Setter for property wrappingDefault value is: false |
| 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, setHeight, 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 LabelWidget()
LabelWidget
public LabelWidget(String id)
LabelWidget
id - id of the LabelWidgetprotected LabelWidget(Label control)
LabelWidget
control - reference to an existing Label| Method Detail |
|---|
public Label getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic LabelDesign getDesign()
design
Labels can have bold format.
public void setDesign(LabelDesign value)
designsap.ui.commons.LabelDesign.Standard
value - com.sap.ui.commons.client.LabelDesignpublic 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 void setTextDirection(com.sap.ui.core.client.TextDirection value)
textDirectionsap.ui.core.TextDirection.Inherit
value - com.sap.ui.core.client.TextDirectionpublic 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 void setWrapping(boolean value)
wrappingfalse
value - 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 getText()
text
Text to be displayed.
public void setText(String value)
text''
value - Stringpublic boolean isVisible()
visible
Invisible labels 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 getIcon()
icon
Icon to be displayed in the control.
public void setIcon(String value)
icon
value - Stringpublic com.sap.ui.core.client.TextAlign getTextAlign()
textAlign
Available alignment settings are "Begin", "Center", "End", "Left", and "Right".
public void setTextAlign(com.sap.ui.core.client.TextAlign value)
textAlignsap.ui.core.TextAlign.Begin
value - com.sap.ui.core.client.TextAlignpublic String getLabelFor()
public void setLabelFor(String labelFor)
labelFor - String id of the associated com.sap.ui.core.client.Control or nullpublic void setLabelFor(com.sap.ui.core.client.Control labelFor)
labelFor - An associated com.sap.ui.core.client.Control or null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||