public interface IComponentCommon extends IWidgetCommon, IComponentObservable, IFocusObservable, IKeyObservable, IMouseObservable, IMouseMotionObservable, IPopupDetectionObservable
| Modifier and Type | Method and Description |
|---|---|
IColorConstant |
getBackgroundColor()
Gets the background color
|
IColorConstant |
getForegroundColor()
Gets the foreground color
|
Position |
getPosition()
Gets the position of the component
|
Dimension |
getSize()
Gets the current size of the component.
|
boolean |
isVisible()
Gets the visibility state.
|
void |
redraw()
Marks the widget that a redraw is necessary
|
boolean |
requestFocus()
Try's to get the focus for the component.
|
void |
setBackgroundColor(IColorConstant colorValue)
Sets the background color.
|
void |
setCursor(Cursor cursor)
Sets the cursor
|
void |
setForegroundColor(IColorConstant colorValue)
Sets the foreground color.
|
void |
setPosition(Position position)
Sets the position of the component
|
void |
setRedrawEnabled(boolean enabled)
Enables or disabled the redraw of a component and its children.
|
void |
setSize(Dimension size)
Sets the size of the component.
|
void |
setVisible(boolean visible)
Sets the components visibility state.
|
getUiReference, isEnabled, setEnabledaddComponentListener, removeComponentListeneraddFocusListener, removeFocusListeneraddKeyListener, removeKeyListeneraddMouseListener, removeMouseListeneraddMouseMotionListener, removeMouseMotionListeneraddPopupDetectionListener, removePopupDetectionListenervoid redraw()
void setRedrawEnabled(boolean enabled)
enabled - The enabled stateboolean requestFocus()
void setForegroundColor(IColorConstant colorValue)
colorValue - The color to set, may be nullvoid setBackgroundColor(IColorConstant colorValue)
colorValue - The color to set, may be nullIColorConstant getForegroundColor()
IColorConstant getBackgroundColor()
void setCursor(Cursor cursor)
cursor - The cursor to setvoid setVisible(boolean visible)
visible - The visibility state to setboolean isVisible()
Dimension getSize()
void setSize(Dimension size)
size - The size to set, must not be nullPosition getPosition()
void setPosition(Position position)
position - The position of the component, must not be nullSiehe auch Jowidgets Nutzerhandbuch