public class ContainerWrapper extends ComponentWrapper implements IContainer
Constructor and Description |
---|
ContainerWrapper(IContainer widget) |
Modifier and Type | Method and Description |
---|---|
<WIDGET_TYPE extends IControl> |
add(ICustomWidgetCreator<WIDGET_TYPE> creator)
Creates and adds an control to this container
|
<WIDGET_TYPE extends IControl> |
add(ICustomWidgetCreator<WIDGET_TYPE> creator,
java.lang.Object layoutConstraints)
Creates and adds an control to this container
|
<WIDGET_TYPE extends IControl> |
add(int index,
ICustomWidgetCreator<WIDGET_TYPE> creator)
Creates and adds an control to this container
|
<WIDGET_TYPE extends IControl> |
add(int index,
ICustomWidgetCreator<WIDGET_TYPE> creator,
java.lang.Object layoutConstraints)
Creates and adds an control to this container
|
<WIDGET_TYPE extends IControl> |
add(int index,
IWidgetDescriptor<? extends WIDGET_TYPE> descriptor)
Creates and adds an control to this container.
|
<WIDGET_TYPE extends IControl> |
add(int index,
IWidgetDescriptor<? extends WIDGET_TYPE> descriptor,
java.lang.Object layoutConstraints)
Creates and adds an control to this container.
|
<WIDGET_TYPE extends IControl> |
add(IWidgetDescriptor<? extends WIDGET_TYPE> descriptor)
Creates and adds an control to this container.
|
<WIDGET_TYPE extends IControl> |
add(IWidgetDescriptor<? extends WIDGET_TYPE> descriptor,
java.lang.Object layoutConstraints)
Creates and adds an control to this container.
|
void |
addComponentListenerRecursive(IListenerFactory<IComponentListener> listenerFactory) |
void |
addContainerListener(IContainerListener listener)
Adds a container listener
|
void |
addContainerRegistry(IContainerRegistry registry)
Adds a container registry recursively.
|
void |
addFocusListenerRecursive(IListenerFactory<IFocusListener> listenerFactory) |
void |
addKeyListenerRecursive(IListenerFactory<IKeyListener> listenerFactory) |
void |
addMouseListenerRecursive(IListenerFactory<IMouseListener> listenerFactory) |
void |
addPopupDetectionListenerRecursive(IListenerFactory<IPopupDetectionListener> listenerFactory) |
Dimension |
computeDecoratedSize(Dimension clientAreaSize)
Gets the decorated size (size with border / insets ) for a given client area size
|
java.util.List<IControl> |
getChildren()
Gets the containers children
|
Rectangle |
getClientArea()
Gets the client area of the container.
|
protected IContainer |
getWidget() |
void |
layout()
Layouts the container
|
void |
layoutBegin()
Informs that more than one operation on the containers children be
done and that now redraw should be done until layout end will be invoked
to avoid flickering.
|
void |
layoutEnd()
Layouts the container
|
void |
layoutLater()
Layouts the container later in the event queue.
|
boolean |
remove(IControl control)
Removes a control from this container.
|
void |
removeAll()
Removes all child controls from the container.
|
void |
removeComponentListenerRecursive(IListenerFactory<IComponentListener> listenerFactory) |
void |
removeContainerListener(IContainerListener listener)
Removes a container listener
|
void |
removeContainerRegistry(IContainerRegistry registry)
Removes a container registry
|
void |
removeFocusListenerRecursive(IListenerFactory<IFocusListener> listenerFactory) |
void |
removeKeyListenerRecursive(IListenerFactory<IKeyListener> listenerFactory) |
void |
removeMouseListenerRecursive(IListenerFactory<IMouseListener> listenerFactory) |
void |
removePopupDetectionListenerRecursive(IListenerFactory<IPopupDetectionListener> listenerFactory) |
void |
setLayout(ILayoutDescriptor layoutDescriptor)
Sets the layout for this container
|
<LAYOUT_TYPE extends ILayouter> |
setLayout(ILayoutFactory<LAYOUT_TYPE> layoutFactory)
Sets the layouter for this container defined by a layout factory
|
void |
setTabOrder(java.util.Collection<? extends IControl> tabOrder)
Sets the tab order of the container's controls.
|
void |
setTabOrder(IControl... controls)
Sets the tab order of the container's controls.
|
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, getParent, getRoot, 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, getParent, getRoot, 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 ContainerWrapper(IContainer widget)
protected IContainer getWidget()
getWidget
in class ComponentWrapper
public Rectangle getClientArea()
IContainerCommon
getClientArea
in interface IContainerCommon
public Dimension computeDecoratedSize(Dimension clientAreaSize)
IContainerCommon
computeDecoratedSize
in interface IContainerCommon
clientAreaSize
- The client area size to get the decorated size for.public void setLayout(ILayoutDescriptor layoutDescriptor)
IContainerCommon
setLayout
in interface IContainerCommon
layoutDescriptor
- The layout to setpublic <LAYOUT_TYPE extends ILayouter> LAYOUT_TYPE setLayout(ILayoutFactory<LAYOUT_TYPE> layoutFactory)
IContainer
setLayout
in interface IContainer
layoutFactory
- The layout to setpublic void layoutBegin()
IContainerCommon
layoutBegin
in interface IContainerCommon
public void layout()
IContainer
layout
in interface IContainer
public void layoutEnd()
IContainerCommon
layoutEnd
in interface IContainerCommon
public void layoutLater()
IContainer
layoutLater
in interface IContainer
public void removeAll()
IContainerCommon
removeAll
in interface IContainerCommon
public java.util.List<IControl> getChildren()
IContainer
getChildren
in interface IContainer
public boolean remove(IControl control)
IContainer
remove
in interface IContainer
control
- The control to removepublic <WIDGET_TYPE extends IControl> WIDGET_TYPE add(int index, IWidgetDescriptor<? extends WIDGET_TYPE> descriptor, java.lang.Object layoutConstraints)
IContainer
add
in interface IContainer
WIDGET_TYPE
- The type of the widget that is created, added and returnedindex
- The index at which the control should be added in the containerdescriptor
- The descriptor that describes the control to addlayoutConstraints
- The layout constraints / data for the added controlpublic <WIDGET_TYPE extends IControl> WIDGET_TYPE add(int index, IWidgetDescriptor<? extends WIDGET_TYPE> descriptor)
IContainer
add
in interface IContainer
WIDGET_TYPE
- The type of the widget that is created, added and returnedindex
- The index at which the control should be added in the containerdescriptor
- The descriptor that describes the control to addpublic <WIDGET_TYPE extends IControl> WIDGET_TYPE add(int index, ICustomWidgetCreator<WIDGET_TYPE> creator, java.lang.Object layoutConstraints)
IContainer
add
in interface IContainer
WIDGET_TYPE
- The type of the widget that is created, added and returnedindex
- The index at which the control should be added in the containercreator
- The creator that creates the controllayoutConstraints
- The layout constraints / data for the added controlpublic <WIDGET_TYPE extends IControl> WIDGET_TYPE add(int index, ICustomWidgetCreator<WIDGET_TYPE> creator)
IContainer
add
in interface IContainer
WIDGET_TYPE
- The type of the widget that is created, added and returnedindex
- The index at which the control should be added in the containercreator
- The creator that creates the controlpublic <WIDGET_TYPE extends IControl> WIDGET_TYPE add(IWidgetDescriptor<? extends WIDGET_TYPE> descriptor, java.lang.Object layoutConstraints)
IContainer
add
in interface IContainer
WIDGET_TYPE
- The type of the widget that is created, added and returneddescriptor
- The descriptor that describes the control to addlayoutConstraints
- The layout constraints / data for the added controlpublic <WIDGET_TYPE extends IControl> WIDGET_TYPE add(ICustomWidgetCreator<WIDGET_TYPE> creator, java.lang.Object layoutConstraints)
IContainer
add
in interface IContainer
WIDGET_TYPE
- The type of the widget that is created, added and returnedcreator
- The creator that creates the controllayoutConstraints
- The layout constraints / data for the added controlpublic <WIDGET_TYPE extends IControl> WIDGET_TYPE add(IWidgetDescriptor<? extends WIDGET_TYPE> descriptor)
IContainer
add
in interface IContainer
WIDGET_TYPE
- The type of the widget that is created, added and returneddescriptor
- The descriptor that describes the control to addpublic <WIDGET_TYPE extends IControl> WIDGET_TYPE add(ICustomWidgetCreator<WIDGET_TYPE> creator)
IContainer
add
in interface IContainer
WIDGET_TYPE
- The type of the widget that is created, added and returnedcreator
- The creator that creates the controlpublic void setTabOrder(java.util.Collection<? extends IControl> tabOrder)
IContainer
setTabOrder
in interface IContainer
tabOrder
- the tab order to set or null to set the default tab behavior.public void setTabOrder(IControl... controls)
IContainer
setTabOrder
in interface IContainer
public void addContainerListener(IContainerListener listener)
IContainerObservable
addContainerListener
in interface IContainerObservable
listener
- The listener to addpublic void removeContainerListener(IContainerListener listener)
IContainerObservable
removeContainerListener
in interface IContainerObservable
listener
- The listener to removepublic void addContainerRegistry(IContainerRegistry registry)
IContainer
addContainerRegistry
in interface IContainer
registry
- The registry to addpublic void removeContainerRegistry(IContainerRegistry registry)
IContainer
removeContainerRegistry
in interface IContainer
registry
- The registry to removepublic void addComponentListenerRecursive(IListenerFactory<IComponentListener> listenerFactory)
addComponentListenerRecursive
in interface IRecursiveContainerObservable
public void removeComponentListenerRecursive(IListenerFactory<IComponentListener> listenerFactory)
removeComponentListenerRecursive
in interface IRecursiveContainerObservable
public void addFocusListenerRecursive(IListenerFactory<IFocusListener> listenerFactory)
addFocusListenerRecursive
in interface IRecursiveContainerObservable
public void removeFocusListenerRecursive(IListenerFactory<IFocusListener> listenerFactory)
removeFocusListenerRecursive
in interface IRecursiveContainerObservable
public void addKeyListenerRecursive(IListenerFactory<IKeyListener> listenerFactory)
addKeyListenerRecursive
in interface IRecursiveContainerObservable
public void removeKeyListenerRecursive(IListenerFactory<IKeyListener> listenerFactory)
removeKeyListenerRecursive
in interface IRecursiveContainerObservable
public void addMouseListenerRecursive(IListenerFactory<IMouseListener> listenerFactory)
addMouseListenerRecursive
in interface IRecursiveContainerObservable
public void removeMouseListenerRecursive(IListenerFactory<IMouseListener> listenerFactory)
removeMouseListenerRecursive
in interface IRecursiveContainerObservable
public void addPopupDetectionListenerRecursive(IListenerFactory<IPopupDetectionListener> listenerFactory)
addPopupDetectionListenerRecursive
in interface IRecursiveContainerObservable
public void removePopupDetectionListenerRecursive(IListenerFactory<IPopupDetectionListener> listenerFactory)
removePopupDetectionListenerRecursive
in interface IRecursiveContainerObservable
Siehe auch Jowidgets Nutzerhandbuch