|
||||||||||
| 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<C>
javax.rad.genui.component.AbstractUILabeledIcon<C>
C - instance of ILabeledIconpublic abstract class AbstractUILabeledIcon<C extends ILabeledIcon>
Platform and technology independent label with icon component. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
| 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 | |
|---|---|
protected |
AbstractUILabeledIcon(C pActionComponent)
Creates a new instance of AbstractUIActionComponent. |
| Method Summary | |
|---|---|
int |
getHorizontalAlignment()
Returns the alignment along the x axis. |
IImage |
getImage()
Returns the default image. |
String |
getText()
Returns the text string that the label displays. |
int |
getVerticalAlignment()
Returns the alignment along the y axis. |
boolean |
isPreserveAspectRatio()
If the aspect ratio of the image should be preserved if it is stretched in any direction. |
void |
setHorizontalAlignment(int pHorizontalAlignment)
Sets the horizontal alignment. |
void |
setImage(IImage pImage)
Sets the default image. |
void |
setPreserveAspectRatio(boolean pPreserveAspectRatio)
Sets if the aspect ratio of the image should be preserved if it is stretched in any direction. |
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 |
|---|
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 |
|---|
protected AbstractUILabeledIcon(C pActionComponent)
AbstractUIActionComponent.
pActionComponent - the IActionComponent.IActionComponent| Method Detail |
|---|
public IImage getImage()
getImage in interface IIconIIcon.setImage(IImage)public void setImage(IImage pImage)
setImage in interface IIconpImage - the imageIIcon.getImage()public boolean isPreserveAspectRatio()
isPreserveAspectRatio in interface IIcontrue if the aspect ratio of the image is preserved when stretched.public void setPreserveAspectRatio(boolean pPreserveAspectRatio)
setPreserveAspectRatio in interface IIconpPreserveAspectRatio - true if the aspect ratio of the image is preserved when stretched.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<C extends ILabeledIcon>UIComponent.setTranslation(TranslationMap),
UIComponent.addNotify()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||