|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.awt.impl.AwtResource<C>
com.sibvisions.rad.ui.awt.impl.AwtComponent<C>
com.sibvisions.rad.ui.awt.impl.AwtContainer<C>
com.sibvisions.rad.ui.swing.impl.SwingComponent<C>
com.sibvisions.rad.ui.swing.impl.component.SwingAbstractLabeledIconButton<C>
C - instance of AbstractButton.public abstract class SwingAbstractLabeledIconButton<C extends AbstractButton>
The SwingAbstractLabeledIconButton is a labeled icon button
implementation for swing.
AbstractButton,
ILabeledIcon| Field Summary | |
|---|---|
protected IImage |
image
the icon image. |
| Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent |
|---|
bComponentListener, bFocusListener, bKeyListener, bMouseListener, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, eventSource, factory, parent |
| Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
|---|
resource |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
SwingAbstractLabeledIconButton(C pAbstractButton)
Creates a new instance of SwingAbstractLabeledIconButton. |
|
| Method Summary | |
|---|---|
IImage |
getImage()
Returns the default image. |
String |
getText()
Returns the text string that the label displays. |
boolean |
isPreserveAspectRatio()
If the aspect ratio of the image should be preserved if it is stretched in any direction. |
void |
setBackground(IColor pBackground)
Sets the background color of this component. |
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. |
| Methods inherited from class com.sibvisions.rad.ui.swing.impl.SwingComponent |
|---|
capture, getToolTipText, setTabIndex, setToolTipText |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtContainer |
|---|
add, add, add, add, addIntern, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeIntern, setLayout, setLayoutIntern |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
|---|
getResource, 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 |
| Methods inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
getHorizontalAlignment, getVerticalAlignment |
| Field Detail |
|---|
protected IImage image
| Constructor Detail |
|---|
public SwingAbstractLabeledIconButton(C pAbstractButton)
SwingAbstractLabeledIconButton.
pAbstractButton - the instance of AbstractButton.| Method Detail |
|---|
public String getText()
getText in interface ILabelILabel.setText(java.lang.String)public void setText(String pText)
setText in interface ILabelpText - the textpublic 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 void setHorizontalAlignment(int pHorizontalAlignment)
setHorizontalAlignment in interface IAlignmentConstantssetHorizontalAlignment in class AwtComponent<C extends AbstractButton>pHorizontalAlignment - the new vertical alignmentpublic void setVerticalAlignment(int pVerticalAlignment)
setVerticalAlignment in interface IAlignmentConstantssetVerticalAlignment in class AwtComponent<C extends AbstractButton>pVerticalAlignment - the new vertical alignmentpublic void setBackground(IColor pBackground)
The background color affects each component differently and the parts of the component that are affected by the background color may differ between operating systems.
setBackground in interface IComponentsetBackground in class SwingComponent<C extends AbstractButton>pBackground - the color to become this component's color;
if this parameter is null, then this
component will inherit the background color of its parentIComponent.getBackground()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||