|
||||||||||
| 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.SwingScrollComponent<C,SC>
C - an instance of JComponentSC - The Sub component JComponentpublic class SwingScrollComponent<C extends JComponent,SC extends JComponent>
The SwingComponent is a component with scrollbars.
| Field Summary | |
|---|---|
protected SC |
component
The component. |
| Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent |
|---|
eventComponentMoved, eventComponentResized, 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_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
protected |
SwingScrollComponent(C pJComponent)
Creates a new instance of SwingScrollComponent. |
| Method Summary | |
|---|---|
IColor |
getBackground()
Gets the background color of this component. |
SC |
getComponent()
Gets the Swing Component. |
ICursor |
getCursor()
Gets the ICursor set in the component. |
IFont |
getFont()
Gets the font of this component. |
IColor |
getForeground()
Gets the foreground color of this component. |
String |
getName()
Gets the name of the object. |
String |
getToolTipText()
Returns the tooltip string that has been set with setToolTipText. |
boolean |
isBackgroundSet()
Returns whether the background color has been explicitly set for this Component. |
boolean |
isCursorSet()
Returns whether the cursor has been explicitly set for this Component. |
boolean |
isEnabled()
Determines whether this component is enabled. |
boolean |
isFocusable()
Returns whether this component can be focused. |
boolean |
isFontSet()
Returns whether the font has been explicitly set for this Component. |
boolean |
isForegroundSet()
Returns whether the foreground color has been explicitly set for this Component. |
void |
requestFocus()
Requests that this Component get the input focus, and that this Component's top-level ancestor become the focused Window. |
void |
setBackground(IColor pBackground)
Sets the background color of this component. |
void |
setCursor(ICursor pCursor)
Sets the cursor image to the specified cursor. |
void |
setEnabled(boolean pEnable)
Enables or disables this component, depending on the value of the parameter pEnable. |
void |
setFocusable(boolean pFocusable)
Sets the focusable state of this component to the specified value. |
void |
setFont(IFont pFont)
Sets the IFont of this component. |
void |
setForeground(IColor pForeground)
Sets the foreground color of this component. |
void |
setName(String pName)
Sets the name of the object to the specified string. |
void |
setToolTipText(String pText)
Registers the text to display in a tool tip. |
| Methods inherited from class com.sibvisions.rad.ui.swing.impl.SwingComponent |
|---|
capture |
| 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 |
|---|
equals, getResource, 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 |
| Field Detail |
|---|
protected SC extends JComponent component
| Constructor Detail |
|---|
protected SwingScrollComponent(C pJComponent)
SwingScrollComponent.
pJComponent - an instance of JComponent| Method Detail |
|---|
public void setToolTipText(String pText)
setToolTipText in interface IComponentsetToolTipText in class SwingComponent<C extends JComponent>pText - the string to display; if the text is null,
the tool tip is turned off for this componentpublic String getToolTipText()
setToolTipText.
getToolTipText in interface IComponentgetToolTipText in class SwingComponent<C extends JComponent>IComponent.setToolTipText(String)public String getName()
getName in interface IComponentgetName in interface INamedObjectgetName in class AwtComponent<C extends JComponent>IComponent.setName(java.lang.String)public void setName(String pName)
setName in interface IComponentsetName in interface INamedObjectsetName in class AwtComponent<C extends JComponent>pName - the string that is to be this
component's nameIComponent.getName()public IColor getBackground()
getBackground in interface IComponentgetBackground in class AwtComponent<C extends JComponent>IComponent.setBackground(javax.rad.ui.IColor)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 SwingComponent<C extends 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 boolean isBackgroundSet()
false, this Component is
inheriting its background color from an ancestor.
isBackgroundSet in interface IComponentisBackgroundSet in class AwtComponent<C extends JComponent>true if the background color has been explicitly
set for this Component; false otherwise.public IColor getForeground()
getForeground in interface IComponentgetForeground in class AwtComponent<C extends JComponent>IComponent.setForeground(javax.rad.ui.IColor)public void setForeground(IColor pForeground)
setForeground in interface IComponentsetForeground in class AwtComponent<C extends JComponent>pForeground - the color to become this component's
foreground color; if this parameter is null
then this component will inherit the foreground color of
its parentIComponent.getForeground()public boolean isForegroundSet()
false, this Component is
inheriting its foreground color from an ancestor.
isForegroundSet in interface IComponentisForegroundSet in class AwtComponent<C extends JComponent>true if the foreground color has been explicitly
set for this Component; false otherwise.public ICursor getCursor()
ICursor set in the component. If the component does
not have a cursor set, the cursor of its parent is returned.
If no cursor is set in the entire hierarchy,
Cursor.DEFAULT_CURSOR is returned.
getCursor in interface IComponentgetCursor in class AwtComponent<C extends JComponent>ICursor set in the componentIComponent.setCursor(javax.rad.ui.ICursor)public void setCursor(ICursor pCursor)
contains method for
this component returns true for the current cursor location, and
this Component is visible, displayable, and enabled. Setting the
cursor of a Container causes that cursor to be displayed
within all of the container's subcomponents, except for those
that have a non-null cursor.
The method may have no visual effect if the Java platform implementation and/or the native system do not support changing the mouse cursor shape.
setCursor in interface IComponentsetCursor in class AwtComponent<C extends JComponent>pCursor - One of the constants defined by the Cursor
class; if this parameter is null then this component
will inherit the cursor of its parentIComponent.isEnabled(),
IComponent.getCursor(),
Toolkit.createCustomCursor(java.awt.Image, java.awt.Point, java.lang.String),
ICursorpublic boolean isCursorSet()
false, this Component is inheriting
its cursor from an ancestor.
isCursorSet in interface IComponentisCursorSet in class AwtComponent<C extends JComponent>true if the cursor has been explicitly set for this
Component; false otherwise.public IFont getFont()
getFont in interface IComponentgetFont in class AwtComponent<C extends JComponent>IComponent.setFont(javax.rad.ui.IFont)public void setFont(IFont pFont)
IFont of this component.
setFont in interface IComponentsetFont in class AwtComponent<C extends JComponent>pFont - the IFont to become this component's font;
if this parameter is null then this
component will inherit the font of its parentIComponent.getFont()public boolean isFontSet()
false, this Component is inheriting its
font from an ancestor.
isFontSet in interface IComponentisFontSet in class AwtComponent<C extends JComponent>true if the font has been explicitly set for this
Component; false otherwise.public void setFocusable(boolean pFocusable)
setFocusable in interface IComponentsetFocusable in class AwtComponent<C extends JComponent>pFocusable - indicates whether this Component is focusablepublic boolean isFocusable()
isFocusable in interface IComponentisFocusable in class AwtComponent<C extends JComponent>true if this Component is focusable,
false otherwise.public void requestFocus()
This method cannot be used to set the focus owner to no Component at
all. Use KeyboardFocusManager.clearGlobalFocusOwner()
instead.
Because the focus behavior of this method is platform-dependent,
developers are strongly encouraged to use
requestFocusInWindow when possible.
requestFocus in interface IComponentrequestFocus in class AwtComponent<C extends JComponent>public boolean isEnabled()
setEnabled method.
isEnabled in interface IComponentisEnabled in class AwtComponent<C extends JComponent>true if the component is enabled, false otherwiseIComponent.setEnabled(boolean)public void setEnabled(boolean pEnable)
pEnable. An enabled component can respond to user
input and generate events. Components are enabled initially by default.
setEnabled in interface IComponentsetEnabled in class AwtComponent<C extends JComponent>pEnable - if true, this component is
enabled; otherwise this component is disabledIComponent.isEnabled()public SC getComponent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||