| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<ILabel>
javax.rad.genui.component.UILabel
public class UILabel
Platform and technology independent Label. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
Label, 
JLabel| Field Summary | 
|---|
| Fields inherited from class javax.rad.genui.UIComponent | 
|---|
lLastTranslationModified, parent | 
| Fields inherited from class javax.rad.genui.UIResource | 
|---|
uiResource | 
| Fields inherited from interface javax.rad.ui.IAlignmentConstants | 
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP | 
| Constructor Summary | |
|---|---|
  | 
UILabel()
Creates a new instance of UILabel. | 
protected  | 
UILabel(ILabel pLabel)
Creates a new instance of UILabel with the given
 labe. | 
  | 
UILabel(String pText)
Creates a new instance of UILabel. | 
  | 
UILabel(String pText,
        IFont pFont)
Creates a new instance of UILabel. | 
| Method Summary | |
|---|---|
 int | 
getHorizontalAlignment()
Returns the alignment along the x axis.  | 
 String | 
getText()
Returns the text string that the label displays.  | 
 int | 
getVerticalAlignment()
Returns the alignment along the y axis.  | 
 void | 
setHorizontalAlignment(int pHorizontalAlignment)
Sets the horizontal alignment.  | 
 void | 
setText(String pText)
Defines the single line of text this component will display.  | 
 void | 
setVerticalAlignment(int pVerticalAlignment)
Sets the vertical alignment.  | 
 void | 
updateTranslation()
Notification for updating the translation.  | 
| Methods inherited from class javax.rad.genui.UIResource | 
|---|
equals, getUIResource, hashCode, toString | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface javax.rad.ui.IResource | 
|---|
getResource | 
| Constructor Detail | 
|---|
public UILabel()
UILabel.
ILabelprotected UILabel(ILabel pLabel)
UILabel with the given
 labe.
pLabel - the labelILabelpublic UILabel(String pText)
UILabel.
pText - the text.ILabel
public UILabel(String pText,
               IFont pFont)
UILabel.
pText - the text.pFont - the font.ILabel| Method Detail | 
|---|
public String getText()
getText in interface ILabelILabel.setText(java.lang.String)public void setText(String pText)
setText in interface ILabelpText - the textpublic int getHorizontalAlignment()
getHorizontalAlignment in interface IAlignmentConstantspublic void setHorizontalAlignment(int pHorizontalAlignment)
setHorizontalAlignment in interface IAlignmentConstantspHorizontalAlignment - the new vertical alignmentpublic int getVerticalAlignment()
getVerticalAlignment in interface IAlignmentConstantspublic void setVerticalAlignment(int pVerticalAlignment)
setVerticalAlignment in interface IAlignmentConstantspVerticalAlignment - the new vertical alignmentpublic void updateTranslation()
UIComponent will be added to a displayable containment hierarchy, 
 when its containment hierarchy is made displayable or the translation table will
 be changed.
updateTranslation in class UIComponent<ILabel>UIComponent.setTranslation(TranslationMap), 
UIComponent.addNotify()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||