|
||||||||||
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<IIcon>
javax.rad.genui.component.UIIcon
public class UIIcon
Platform and technology independent Icon. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
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 | |
---|---|
|
UIIcon()
Creates a new instance of UIIcon . |
protected |
UIIcon(IIcon pIcon)
Creates a new instance of UIIcon with the given
icon. |
|
UIIcon(IImage pImage)
Creates a new instance of UIIcon . |
|
UIIcon(IImage pImage,
int pHorizontalAlignment,
int pVerticalAlignment)
Creates a new instance of UIIcon . |
|
UIIcon(String pImageName)
Creates a new instance of UIIcon . |
|
UIIcon(String pImageName,
int pHorizontalAlignment,
int pVerticalAlignment)
Creates a new instance of UIIcon . |
Method Summary | |
---|---|
int |
getHorizontalAlignment()
Returns the alignment along the x axis. |
IImage |
getImage()
Returns the default image. |
int |
getVerticalAlignment()
Returns the alignment along the y axis. |
void |
setHorizontalAlignment(int pHorizontalAlignment)
Sets the horizontal alignment. |
void |
setImage(IImage pImage)
Sets the default image. |
void |
setVerticalAlignment(int pVerticalAlignment)
Sets the vertical alignment. |
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 UIIcon()
UIIcon
.
IIcon
protected UIIcon(IIcon pIcon)
UIIcon
with the given
icon.
pIcon
- the iconIIcon
public UIIcon(IImage pImage)
UIIcon
.
pImage
- the Image.IIcon
public UIIcon(String pImageName)
UIIcon
.
pImageName
- the Image name.IIcon
public UIIcon(IImage pImage, int pHorizontalAlignment, int pVerticalAlignment)
UIIcon
.
pImage
- the Image.pHorizontalAlignment
- the horizontal alignment.pVerticalAlignment
- the vertical alignment.IIcon
public UIIcon(String pImageName, int pHorizontalAlignment, int pVerticalAlignment)
UIIcon
.
pImageName
- the Image name.pHorizontalAlignment
- the horizontal alignment.pVerticalAlignment
- the vertical alignment.IIcon
Method Detail |
---|
public IImage getImage()
getImage
in interface IIcon
IIcon.setImage(IImage)
public void setImage(IImage pImage)
setImage
in interface IIcon
pImage
- the imageIIcon.getImage()
public int getHorizontalAlignment()
getHorizontalAlignment
in interface IAlignmentConstants
public void setHorizontalAlignment(int pHorizontalAlignment)
setHorizontalAlignment
in interface IAlignmentConstants
pHorizontalAlignment
- the new vertical alignmentpublic int getVerticalAlignment()
getVerticalAlignment
in interface IAlignmentConstants
public void setVerticalAlignment(int pVerticalAlignment)
setVerticalAlignment
in interface IAlignmentConstants
pVerticalAlignment
- the new vertical alignment
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |