|
||||||||||
| 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 |
|---|
bTranslate, lLastTranslationModified, parent, popupMenu |
| Fields inherited from class javax.rad.genui.UIResource |
|---|
uiResource |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, 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(java.lang.String pText)
Creates a new instance of UILabel. |
|
UILabel(java.lang.String pText,
IFont pFont)
Creates a new instance of UILabel. |
|
UILabel(java.lang.String pText,
IFont pFont,
int pHorizontalAlignment,
int pVerticalAlignment)
Creates a new instance of UILabel. |
| Method Summary | |
|---|---|
protected java.lang.String |
createComponentName()
Creates a name for this UIComponent. |
int |
getHorizontalAlignment()
Returns the alignment along the x axis. |
java.lang.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(java.lang.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 |
|---|
eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getUIResource, hasResourceHandler, putObject, 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(java.lang.String pText)
UILabel.
pText - the text.ILabel
public UILabel(java.lang.String pText,
IFont pFont)
UILabel.
pText - the text.pFont - the font.ILabel
public UILabel(java.lang.String pText,
IFont pFont,
int pHorizontalAlignment,
int pVerticalAlignment)
UILabel.
pText - the text.pFont - the font.pHorizontalAlignment - the horizontal alignment.pVerticalAlignment - the vertical alignment.UIComponent.setFont(IFont),
setHorizontalAlignment(int),
setText(String),
setVerticalAlignment(int)| Method Detail |
|---|
public java.lang.String getText()
getText in interface ILabelILabel.setText(java.lang.String)public void setText(java.lang.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()protected java.lang.String createComponentName()
UIComponent.
The returned name needs to be unique in the current root/workscreen and
is ideally, but not necessarily, prefixed with the UIComponent.sRootName,
if there is any.
Overriding classes should be aware that this method will be called in
UIComponent.addNotify() and the returned name will only be assigned to the
UIComponent if there isn't already a name set. Also
UIComponent.stExistingNames can be used to find out if a name has already
been assigned, and UIComponent.sRootName to get the root name.
In rare cases UIComponent.stExistingNames and/or UIComponent.sRootName might
be null when this method is called.
createComponentName in class UIComponent<ILabel>UIComponent.UIComponent.getExistingNames(),
UIComponent.getRootName(),
UIComponent.incrementNameIfExists(String, Set, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||