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, toScreen
addDisposeListener, dispose, getUiReference, isDisposed, isEnabled, removeDisposeListener, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createPopupMenu, fromComponent, getBounds, hasFocus, isReparentable, isShowing, setBounds, setPopupMenu, setPosition, setSize, toComponent, toLocal, toScreen
dispose, isDisposed
addDisposeListener, removeDisposeListener
addShowingStateListener, removeShowingStateListener
getBackgroundColor, getForegroundColor, getPosition, getSize, isVisible, redraw, requestFocus, setBackgroundColor, setCursor, setForegroundColor, setPosition, setRedrawEnabled, setSize, setVisible
getUiReference, isEnabled, setEnabled
addComponentListener, removeComponentListener
addFocusListener, removeFocusListener
addKeyListener, removeKeyListener
addMouseListener, removeMouseListener
addMouseMotionListener, removeMouseMotionListener
addPopupDetectionListener, removePopupDetectionListener
public ControlWrapper(IControl widget)
protected IControl getWidget()
getWidget
in class ComponentWrapper
public void setParent(IContainer parent)
IControl
public IContainer getParent()
IWidget
public void addParentListener(IParentListener<IContainer> listener)
IParentObservable
addParentListener
in interface IParentObservable<IContainer>
listener
- The listener to addpublic void removeParentListener(IParentListener<IContainer> listener)
IParentObservable
removeParentListener
in interface IParentObservable<IContainer>
listener
- The listener to removepublic IControl getRoot()
IWidget
public void setLayoutConstraints(java.lang.Object layoutConstraints)
IControlCommon
setLayoutConstraints
in interface IControlCommon
layoutConstraints
- The layout constraints, may be nullpublic java.lang.Object getLayoutConstraints()
IControlCommon
getLayoutConstraints
in interface IControlCommon
public Dimension getMinSize()
IControlCommon
getMinSize
in interface IControlCommon
public Dimension getPreferredSize()
IControlCommon
getPreferredSize
in interface IControlCommon
public Dimension getMaxSize()
IControlCommon
getMaxSize
in interface IControlCommon
public void setMinSize(Dimension minSize)
IControl
setMinSize
in interface IControl
minSize
- The minimum size to set or null for default min sizepublic void setPreferredSize(Dimension preferredSize)
IControl
setPreferredSize
in interface IControl
preferredSize
- The preferred size to set or null for default preferred sizepublic void setMaxSize(Dimension maxSize)
IControl
setMaxSize
in interface IControl
maxSize
- The maximal size to set or null for default max sizepublic void setToolTipText(java.lang.String toolTip)
IControlCommon
setToolTipText
in interface IControlCommon
toolTip
- The tooltip text or null if the control should not show any tooltippublic IDragSource getDragSource()
IControl
getDragSource
in interface IControl
public IDropTarget getDropTarget()
IControl
getDropTarget
in interface IControl
Siehe auch Jowidgets Nutzerhandbuch