public class WidgetHandlerImpl extends Object implements WidgetHandler
WidgetHandler interface.
This class is used by ComponentManagerImpl for the
implementation of the getWidgetHandlerFor() method. Most of
the methods here simply operate on internal flags and do not have any further
effects. The class can be used for testing operations on widgets.| Constructor and Description |
|---|
WidgetHandlerImpl(Object component)
Creates a new instance of
WidgetHandlerImpl and sets the
underlying widget object. |
| Modifier and Type | Method and Description |
|---|---|
Color |
getBackgroundColor() |
Object |
getFont() |
Color |
getForegroundColor() |
String |
getToolTip() |
Object |
getWidget() |
boolean |
isVisible() |
void |
setBackgroundColor(Color c) |
void |
setFont(Object font) |
void |
setForegroundColor(Color c) |
void |
setToolTip(String toolTip) |
void |
setVisible(boolean f) |
public WidgetHandlerImpl(Object component)
WidgetHandlerImpl and sets the
underlying widget object.component - the widgetpublic Color getBackgroundColor()
getBackgroundColor in interface WidgetHandlerpublic Color getForegroundColor()
getForegroundColor in interface WidgetHandlerpublic Object getWidget()
getWidget in interface WidgetHandlerpublic boolean isVisible()
isVisible in interface WidgetHandlerpublic void setBackgroundColor(Color c)
setBackgroundColor in interface WidgetHandlerpublic void setForegroundColor(Color c)
setForegroundColor in interface WidgetHandlerpublic void setVisible(boolean f)
setVisible in interface WidgetHandlerpublic String getToolTip()
getToolTip in interface WidgetHandlerpublic void setToolTip(String toolTip)
setToolTip in interface WidgetHandlerpublic Object getFont()
getFont in interface WidgetHandlerpublic void setFont(Object font)
setFont in interface WidgetHandlerCopyright © 2016 The JGUIraffe Team. All rights reserved.