public class WindowWrapper extends ComponentWrapper implements IWindow
| Constructor and Description |
|---|
WindowWrapper(IWindow widget) |
| Modifier and Type | Method and Description |
|---|---|
void |
addWindowListener(IWindowListener listener)
Adds a window listener
|
void |
centerLocation()
Centers the location relative to the parent bounds
|
<WIDGET_TYPE extends IDisplay,DESCRIPTOR_TYPE extends IWidgetDescriptor<WIDGET_TYPE>> |
createChildWindow(DESCRIPTOR_TYPE descriptor)
Creates a child window with this window as parent
|
void |
dispose()
Disposes the widgets.
|
java.util.List<IDisplay> |
getChildWindows()
Gets the child windows of this window as a unmodifiable copy
|
IWindow |
getParent()
Gets the parent of the widget
|
Rectangle |
getParentBounds()
Gets the parent bounds of this window.
|
protected IWindow |
getWidget() |
void |
pack()
Resizes the window to its preferred size and layouts its underlying container
|
void |
removeWindowListener(IWindowListener listener)
Removes a window listener
|
void |
setMaxPackSize(Dimension size)
Sets the max pack size of the window.
|
void |
setMinPackSize(Dimension size)
Sets the min pack size of the window.
|
void |
setParent(IWindow parent)
Sets the parent window.
|
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, 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, toScreengetRoot, isDisposedaddDisposeListener, removeDisposeListeneraddShowingStateListener, removeShowingStateListenergetBackgroundColor, getForegroundColor, getPosition, getSize, isVisible, redraw, requestFocus, setBackgroundColor, setCursor, setForegroundColor, setPosition, setRedrawEnabled, setSize, setVisiblegetUiReference, isEnabled, setEnabledaddComponentListener, removeComponentListeneraddFocusListener, removeFocusListeneraddKeyListener, removeKeyListeneraddMouseListener, removeMouseListeneraddMouseMotionListener, removeMouseMotionListeneraddPopupDetectionListener, removePopupDetectionListenerpublic WindowWrapper(IWindow widget)
protected IWindow getWidget()
getWidget in class ComponentWrapperpublic void setParent(IWindow parent)
IDisplaypublic IWindow getParent()
IWidgetpublic Rectangle getParentBounds()
IWindowCommongetParentBounds in interface IWindowCommonpublic void pack()
IWindowCommonpack in interface IWindowCommonpublic void setMinPackSize(Dimension size)
IWindowsetMinPackSize in interface IWindowsize - The min pack size to setIWindowCommon.pack()public void setMaxPackSize(Dimension size)
IWindowsetMaxPackSize in interface IWindowsize - The max pack size to setIWindowCommon.pack()public void dispose()
IWidgetdispose in interface IWidgetdispose in interface IWindowCommondispose in class WidgetWrapperpublic void addWindowListener(IWindowListener listener)
IWindowObservableaddWindowListener in interface IWindowObservablelistener - The listener to addpublic void removeWindowListener(IWindowListener listener)
IWindowObservableremoveWindowListener in interface IWindowObservablelistener - The listener to removepublic void centerLocation()
IWindowcenterLocation in interface IWindowIWindowCommon.getParentBounds()public <WIDGET_TYPE extends IDisplay,DESCRIPTOR_TYPE extends IWidgetDescriptor<WIDGET_TYPE>> WIDGET_TYPE createChildWindow(DESCRIPTOR_TYPE descriptor)
IWindowcreateChildWindow in interface IWindowWIDGET_TYPE - The type of the created child windowDESCRIPTOR_TYPE - The type of the child windows descriptordescriptor - The child windows descriptorpublic java.util.List<IDisplay> getChildWindows()
IWindowgetChildWindows in interface IWindowSiehe auch Jowidgets Nutzerhandbuch