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, toScreen
addDisposeListener, 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
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 WindowWrapper(IWindow widget)
protected IWindow getWidget()
getWidget
in class ComponentWrapper
public void setParent(IWindow parent)
IDisplay
public IWindow getParent()
IWidget
public Rectangle getParentBounds()
IWindowCommon
getParentBounds
in interface IWindowCommon
public void pack()
IWindowCommon
pack
in interface IWindowCommon
public void setMinPackSize(Dimension size)
IWindow
setMinPackSize
in interface IWindow
size
- The min pack size to setIWindowCommon.pack()
public void setMaxPackSize(Dimension size)
IWindow
setMaxPackSize
in interface IWindow
size
- The max pack size to setIWindowCommon.pack()
public void dispose()
IWidget
dispose
in interface IWidget
dispose
in interface IWindowCommon
dispose
in class WidgetWrapper
public void addWindowListener(IWindowListener listener)
IWindowObservable
addWindowListener
in interface IWindowObservable
listener
- The listener to addpublic void removeWindowListener(IWindowListener listener)
IWindowObservable
removeWindowListener
in interface IWindowObservable
listener
- The listener to removepublic void centerLocation()
IWindow
centerLocation
in interface IWindow
IWindowCommon.getParentBounds()
public <WIDGET_TYPE extends IDisplay,DESCRIPTOR_TYPE extends IWidgetDescriptor<WIDGET_TYPE>> WIDGET_TYPE createChildWindow(DESCRIPTOR_TYPE descriptor)
IWindow
createChildWindow
in interface IWindow
WIDGET_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()
IWindow
getChildWindows
in interface IWindow
Siehe auch Jowidgets Nutzerhandbuch