public class ControlWrapper extends ComponentWrapper implements IControl
| Constructor and Description |
|---|
ControlWrapper(IControl widget) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParentListener(IParentListener<IContainer> listener)
Adds a parent listener
|
IDragSource |
getDragSource()
Gets the drag source of the control
|
IDropTarget |
getDropTarget()
Gets the drop target of the control
|
java.lang.Object |
getLayoutConstraints()
Gets the layout constraints of the control
|
Dimension |
getMaxSize()
Gets the maximal size of the control.
|
Dimension |
getMinSize()
Gets the minimal size of the control.
|
IContainer |
getParent()
Gets the parent of the widget
|
Dimension |
getPreferredSize()
Gets the preferred size of the control.
|
IControl |
getRoot()
Gets the root widget of the widget
If the widget is a composed widget, the root widget
of the composed widget will be returned.
|
protected IControl |
getWidget() |
void |
removeParentListener(IParentListener<IContainer> listener)
Removes a parent listener
|
void |
setLayoutConstraints(java.lang.Object layoutConstraints)
Sets the layout constraints of the control
|
void |
setMaxSize(Dimension maxSize)
Sets the maximal size
If set to null, the default maximal size will be used
|
void |
setMinSize(Dimension minSize)
Sets the minimum size of this control.
|
void |
setParent(IContainer parent)
Sets the parent of the container.
|
void |
setPreferredSize(Dimension preferredSize)
Sets the preferred size of this control.
|
void |
setToolTipText(java.lang.String toolTip)
Sets the tooltip text for the control
|
addComponentListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addPopupDetectionListener, addShowingStateListener, createPopupMenu, fromComponent, getBackgroundColor, getBounds, getForegroundColor, getPosition, getSize, hasFocus, isReparentable, isShowing, isVisible, redraw, removeComponentListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePopupDetectionListener, removeShowingStateListener, requestFocus, setBackgroundColor, setBounds, setCursor, setForegroundColor, setPopupMenu, setPosition, setPosition, setRedrawEnabled, setSize, setSize, setVisible, toComponent, toLocal, toScreenaddDisposeListener, dispose, getUiReference, isDisposed, isEnabled, removeDisposeListener, setEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatePopupMenu, fromComponent, getBounds, hasFocus, isReparentable, isShowing, setBounds, setPopupMenu, setPosition, setSize, toComponent, toLocal, toScreendispose, isDisposedaddDisposeListener, removeDisposeListeneraddShowingStateListener, removeShowingStateListenergetBackgroundColor, getForegroundColor, getPosition, getSize, isVisible, redraw, requestFocus, setBackgroundColor, setCursor, setForegroundColor, setPosition, setRedrawEnabled, setSize, setVisiblegetUiReference, isEnabled, setEnabledaddComponentListener, removeComponentListeneraddFocusListener, removeFocusListeneraddKeyListener, removeKeyListeneraddMouseListener, removeMouseListeneraddMouseMotionListener, removeMouseMotionListeneraddPopupDetectionListener, removePopupDetectionListenerpublic ControlWrapper(IControl widget)
protected IControl getWidget()
getWidget in class ComponentWrapperpublic void setParent(IContainer parent)
IControlpublic IContainer getParent()
IWidgetpublic void addParentListener(IParentListener<IContainer> listener)
IParentObservableaddParentListener in interface IParentObservable<IContainer>listener - The listener to addpublic void removeParentListener(IParentListener<IContainer> listener)
IParentObservableremoveParentListener in interface IParentObservable<IContainer>listener - The listener to removepublic IControl getRoot()
IWidgetpublic void setLayoutConstraints(java.lang.Object layoutConstraints)
IControlCommonsetLayoutConstraints in interface IControlCommonlayoutConstraints - The layout constraints, may be nullpublic java.lang.Object getLayoutConstraints()
IControlCommongetLayoutConstraints in interface IControlCommonpublic Dimension getMinSize()
IControlCommongetMinSize in interface IControlCommonpublic Dimension getPreferredSize()
IControlCommongetPreferredSize in interface IControlCommonpublic Dimension getMaxSize()
IControlCommongetMaxSize in interface IControlCommonpublic void setMinSize(Dimension minSize)
IControlsetMinSize in interface IControlminSize - The minimum size to set or null for default min sizepublic void setPreferredSize(Dimension preferredSize)
IControlsetPreferredSize in interface IControlpreferredSize - The preferred size to set or null for default preferred sizepublic void setMaxSize(Dimension maxSize)
IControlsetMaxSize in interface IControlmaxSize - The maximal size to set or null for default max sizepublic void setToolTipText(java.lang.String toolTip)
IControlCommonsetToolTipText in interface IControlCommontoolTip - The tooltip text or null if the control should not show any tooltippublic IDragSource getDragSource()
IControlgetDragSource in interface IControlpublic IDropTarget getDropTarget()
IControlgetDropTarget in interface IControlSiehe auch Jowidgets Nutzerhandbuch