|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguiraffe.gui.platform.swing.builder.components.SwingWidgetHandler
class SwingWidgetHandler
A Swing specific implementation of the WidgetHandler
interface.
This implementation operates on an underlying Component object
and provides access to some of its fundamental properties.
| Constructor Summary | |
|---|---|
SwingWidgetHandler(java.awt.Component component)
Creates a new instance of SwingWidgetHandler and
initializes it with the wrapped component. |
|
| Method Summary | |
|---|---|
Color |
getBackgroundColor()
Returns the background color of the underlying widget. |
java.awt.Component |
getComponent()
Returns a reference to the underlying component. |
Color |
getForegroundColor()
Returns the foreground color of the underlying widget. |
java.lang.Object |
getWidget()
Returns the underlying widget. |
boolean |
isVisible()
Returns a flag whether the underlying widget is visible. |
void |
setBackgroundColor(Color c)
Sets the background color of the underlying widget. |
void |
setForegroundColor(Color c)
Sets the foreground color of the underlying widget. |
void |
setVisible(boolean f)
Sets the visible flag of the underlying widget. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwingWidgetHandler(java.awt.Component component)
SwingWidgetHandler and
initializes it with the wrapped component.
component - the underlying component| Method Detail |
|---|
public java.awt.Component getComponent()
public Color getBackgroundColor()
getBackgroundColor in interface WidgetHandlerpublic Color getForegroundColor()
getForegroundColor in interface WidgetHandlerpublic java.lang.Object getWidget()
getWidget in interface WidgetHandlerpublic boolean isVisible()
isVisible in interface WidgetHandlerpublic void setBackgroundColor(Color c)
Color object will be transformed into
an AWT color object.
setBackgroundColor in interface WidgetHandlerc - the new background colorpublic void setForegroundColor(Color c)
Color object will be transformed into
an AWT color object.
setForegroundColor in interface WidgetHandlerc - the new foreground colorpublic void setVisible(boolean f)
setVisible in interface WidgetHandlerf - the new visible flag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||