public class FrameWrapper extends ContainerWrapper implements IFrame
Constructor and Description |
---|
FrameWrapper(IFrame original) |
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
|
IMenuBar |
createMenuBar()
Creates a new menu bar or returns a earlier created menu bar.
|
java.util.List<IDisplay> |
getChildWindows()
Gets the child windows of this window as a unmodifiable copy
|
IMenuBarModel |
getMenuBarModel()
Gets the menu bar model of this frame.
|
IWindow |
getParent()
Gets the parent of the widget
|
Rectangle |
getParentBounds()
Gets the parent bounds of this window.
|
boolean |
isIconfied() |
boolean |
isMaximized() |
void |
pack()
Resizes the window to its preferred size and layouts its underlying container
|
void |
removeWindowListener(IWindowListener listener)
Removes a window listener
|
void |
setDefaultButton(IButton button) |
void |
setIconfied(boolean iconfied) |
void |
setMaximized(boolean maximized) |
void |
setMaxPackSize(Dimension size)
Sets the max pack size of the window.
|
void |
setMenuBar(IMenuBarModel model)
Sets the menu bar for this frame.
|
void |
setMinPackSize(Dimension size)
Sets the min pack size of the window.
|
void |
setMinSize(Dimension minSize) |
void |
setMinSize(int width,
int height) |
void |
setParent(IWindow parent)
Sets the parent window.
|
void |
setTitle(java.lang.String title) |
add, add, add, add, add, add, add, add, addComponentListenerRecursive, addContainerListener, addContainerRegistry, addFocusListenerRecursive, addKeyListenerRecursive, addMouseListenerRecursive, addPopupDetectionListenerRecursive, computeDecoratedSize, getChildren, getClientArea, getWidget, layout, layoutBegin, layoutEnd, layoutLater, remove, removeAll, removeComponentListenerRecursive, removeContainerListener, removeContainerRegistry, removeFocusListenerRecursive, removeKeyListenerRecursive, removeMouseListenerRecursive, removePopupDetectionListenerRecursive, setLayout, setLayout, setTabOrder, setTabOrder
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, getRoot, getUiReference, isDisposed, isEnabled, removeDisposeListener, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, add, add, add, add, add, add, addContainerRegistry, getChildren, layout, layoutLater, remove, removeContainerRegistry, setLayout, setTabOrder, setTabOrder
createPopupMenu, fromComponent, getBounds, hasFocus, isReparentable, isShowing, setBounds, setPopupMenu, setPosition, setSize, toComponent, toLocal, toScreen
dispose, getRoot, isDisposed
addDisposeListener, removeDisposeListener
addShowingStateListener, removeShowingStateListener
addContainerListener, removeContainerListener
addComponentListenerRecursive, addFocusListenerRecursive, addKeyListenerRecursive, addMouseListenerRecursive, addPopupDetectionListenerRecursive, removeComponentListenerRecursive, removeFocusListenerRecursive, removeKeyListenerRecursive, removeMouseListenerRecursive, removePopupDetectionListenerRecursive
dispose
computeDecoratedSize, getClientArea, layoutBegin, layoutEnd, removeAll, setLayout
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 FrameWrapper(IFrame original)
public void addWindowListener(IWindowListener listener)
IWindowObservable
addWindowListener
in interface IWindowObservable
listener
- The listener to addpublic void setParent(IWindow parent)
IDisplay
public void setMinSize(Dimension minSize)
setMinSize
in interface IFrameCommon
public IMenuBar createMenuBar()
IFrame
createMenuBar
in interface IFrame
public void setTitle(java.lang.String title)
setTitle
in interface IFrameCommon
public void removeWindowListener(IWindowListener listener)
IWindowObservable
removeWindowListener
in interface IWindowObservable
listener
- The listener to removepublic void setMaximized(boolean maximized)
setMaximized
in interface IFrameCommon
public Rectangle getParentBounds()
IWindowCommon
getParentBounds
in interface IWindowCommon
public boolean isMaximized()
isMaximized
in interface IFrameCommon
public void centerLocation()
IWindow
centerLocation
in interface IWindow
IWindowCommon.getParentBounds()
public void setIconfied(boolean iconfied)
setIconfied
in interface IFrameCommon
public boolean isIconfied()
isIconfied
in interface IFrameCommon
public IMenuBarModel getMenuBarModel()
IFrame
getMenuBarModel
in interface IFrame
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 IWindow getParent()
IWidget
public void pack()
IWindowCommon
pack
in interface IWindowCommon
public void setMenuBar(IMenuBarModel model)
IFrame
setMenuBar
in interface IFrame
model
- The model of the menu bar to add, must not be null;public java.util.List<IDisplay> getChildWindows()
IWindow
getChildWindows
in interface IWindow
public void setDefaultButton(IButton button)
setDefaultButton
in interface IFrame
public void setMinSize(int width, int height)
setMinSize
in interface IFrame
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()
Siehe auch Jowidgets Nutzerhandbuch