|
||||||||||
| 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>
C - an instance of JComponentpublic class SwingComponent<C extends javax.swing.JComponent>
The SwingComponent extends AwtComponent with setting the
alignment.
| Field Summary |
|---|
| 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 | |
|---|---|
SwingComponent(C pJComponent)
Creates a new instance of SwingComponent. |
|
| Method Summary | |
|---|---|
IImage |
capture(int pWidth,
int pHeight)
Creates an image/screenshot of the component. |
java.lang.String |
getToolTipText()
Returns the tooltip string that has been set with setToolTipText. |
void |
setBackground(IColor pBackground)
Sets the background color of this component. |
void |
setTabIndex(java.lang.Integer pTabIndex)
Sets the desired tab index. |
void |
setToolTipText(java.lang.String pText)
Registers the text to display in a tool tip. |
| 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 |
| Constructor Detail |
|---|
public SwingComponent(C pJComponent)
SwingComponent.
pJComponent - An instance of JComponent| Method Detail |
|---|
public 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 AwtComponent<C extends javax.swing.JComponent>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()public void setTabIndex(java.lang.Integer pTabIndex)
setTabIndex in interface IComponentsetTabIndex in class AwtComponent<C extends javax.swing.JComponent>pTabIndex - the desired tab index.public void setToolTipText(java.lang.String pText)
setToolTipText in interface IComponentsetToolTipText in class AwtComponent<C extends javax.swing.JComponent>pText - the string to display; if the text is null,
the tool tip is turned off for this componentpublic java.lang.String getToolTipText()
setToolTipText.
getToolTipText in interface IComponentgetToolTipText in class AwtComponent<C extends javax.swing.JComponent>IComponent.setToolTipText(String)
public IImage capture(int pWidth,
int pHeight)
capture in interface IComponentcapture in class AwtComponent<C extends javax.swing.JComponent>pWidth - the expected widthpHeight - the expected height
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||