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, toScreenaddDisposeListener, dispose, getParent, getRoot, 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, getParent, getRoot, isDisposedaddDisposeListener, removeDisposeListeneraddShowingStateListener, removeShowingStateListenergetBackgroundColor, getForegroundColor, getPosition, getSize, isVisible, redraw, requestFocus, setBackgroundColor, setCursor, setForegroundColor, setPosition, setRedrawEnabled, setSize, setVisiblegetUiReference, isEnabled, setEnabledaddComponentListener, removeComponentListeneraddFocusListener, removeFocusListeneraddKeyListener, removeKeyListeneraddMouseListener, removeMouseListeneraddMouseMotionListener, removeMouseMotionListeneraddPopupDetectionListener, removePopupDetectionListenerpublic ContainerWrapper(IContainer widget)
protected IContainer getWidget()
getWidget in class ComponentWrapperpublic Rectangle getClientArea()
IContainerCommongetClientArea in interface IContainerCommonpublic Dimension computeDecoratedSize(Dimension clientAreaSize)
IContainerCommoncomputeDecoratedSize in interface IContainerCommonclientAreaSize - The client area size to get the decorated size for.public void setLayout(ILayoutDescriptor layoutDescriptor)
IContainerCommonsetLayout in interface IContainerCommonlayoutDescriptor - The layout to setpublic <LAYOUT_TYPE extends ILayouter> LAYOUT_TYPE setLayout(ILayoutFactory<LAYOUT_TYPE> layoutFactory)
IContainersetLayout in interface IContainerlayoutFactory - The layout to setpublic void layoutBegin()
IContainerCommonlayoutBegin in interface IContainerCommonpublic void layout()
IContainerlayout in interface IContainerpublic void layoutEnd()
IContainerCommonlayoutEnd in interface IContainerCommonpublic void layoutLater()
IContainerlayoutLater in interface IContainerpublic void removeAll()
IContainerCommonremoveAll in interface IContainerCommonpublic java.util.List<IControl> getChildren()
IContainergetChildren in interface IContainerpublic boolean remove(IControl control)
IContainerremove in interface IContainercontrol - The control to removepublic <WIDGET_TYPE extends IControl> WIDGET_TYPE add(int index, IWidgetDescriptor<? extends WIDGET_TYPE> descriptor, java.lang.Object layoutConstraints)
IContaineradd in interface IContainerWIDGET_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)
IContaineradd in interface IContainerWIDGET_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)
IContaineradd in interface IContainerWIDGET_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)
IContaineradd in interface IContainerWIDGET_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)
IContaineradd in interface IContainerWIDGET_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)
IContaineradd in interface IContainerWIDGET_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)
IContaineradd in interface IContainerWIDGET_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)
IContaineradd in interface IContainerWIDGET_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)
IContainersetTabOrder in interface IContainertabOrder - the tab order to set or null to set the default tab behavior.public void setTabOrder(IControl... controls)
IContainersetTabOrder in interface IContainerpublic void addContainerListener(IContainerListener listener)
IContainerObservableaddContainerListener in interface IContainerObservablelistener - The listener to addpublic void removeContainerListener(IContainerListener listener)
IContainerObservableremoveContainerListener in interface IContainerObservablelistener - The listener to removepublic void addContainerRegistry(IContainerRegistry registry)
IContaineraddContainerRegistry in interface IContainerregistry - The registry to addpublic void removeContainerRegistry(IContainerRegistry registry)
IContainerremoveContainerRegistry in interface IContainerregistry - The registry to removepublic void addComponentListenerRecursive(IListenerFactory<IComponentListener> listenerFactory)
addComponentListenerRecursive in interface IRecursiveContainerObservablepublic void removeComponentListenerRecursive(IListenerFactory<IComponentListener> listenerFactory)
removeComponentListenerRecursive in interface IRecursiveContainerObservablepublic void addFocusListenerRecursive(IListenerFactory<IFocusListener> listenerFactory)
addFocusListenerRecursive in interface IRecursiveContainerObservablepublic void removeFocusListenerRecursive(IListenerFactory<IFocusListener> listenerFactory)
removeFocusListenerRecursive in interface IRecursiveContainerObservablepublic void addKeyListenerRecursive(IListenerFactory<IKeyListener> listenerFactory)
addKeyListenerRecursive in interface IRecursiveContainerObservablepublic void removeKeyListenerRecursive(IListenerFactory<IKeyListener> listenerFactory)
removeKeyListenerRecursive in interface IRecursiveContainerObservablepublic void addMouseListenerRecursive(IListenerFactory<IMouseListener> listenerFactory)
addMouseListenerRecursive in interface IRecursiveContainerObservablepublic void removeMouseListenerRecursive(IListenerFactory<IMouseListener> listenerFactory)
removeMouseListenerRecursive in interface IRecursiveContainerObservablepublic void addPopupDetectionListenerRecursive(IListenerFactory<IPopupDetectionListener> listenerFactory)
addPopupDetectionListenerRecursive in interface IRecursiveContainerObservablepublic void removePopupDetectionListenerRecursive(IListenerFactory<IPopupDetectionListener> listenerFactory)
removePopupDetectionListenerRecursive in interface IRecursiveContainerObservableSiehe auch Jowidgets Nutzerhandbuch