|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uic.widgets.AbstractWindow uic.widgets.ExtraWindow
This class represent a so-called Extra Window. An extra window is a top-level window that contains information you could normally use a non-modal dialog for. The difference with this one is that the ExtraWindow has a distinct look and is therefor falls into a catagory of its own. Other features include the window manager function that allow you to save the former position, logical scaling and positioning is automatically done.
Nested Class Summary | |
static class |
ExtraWindow.CloseButton
This Button just shows a cross as a good CloseButton should. |
Field Summary | |
static int |
CLOSEPOLICY_AUTO_CLOSE
Automatically close the window when last panel closes |
static int |
CLOSEPOLICY_IGNORE
Don't allow a panel to be removed, also remove the 'close button' |
static int |
CLOSEPOLICY_NONEMPTY
Allow panels to be removed, but keep at least 1 |
Fields inherited from class uic.widgets.AbstractWindow |
internalWindow |
Constructor Summary | |
ExtraWindow(Window owner,
String title)
Convinience constructor; closePolicy == CLOSEPOLICY_AUTO_CLOSE |
|
ExtraWindow(Window owner,
String title,
int closePolicy)
Create a new ExtraWindow. |
Method Summary | |
void |
addMoveListener(WindowDroppedListener wdl)
When we move we send an event. |
void |
childComponentRemovedSlot()
|
void |
closeFirstComponentSlot()
Called at a double-click or when the close button is pressed. |
void |
closeWindowSlot()
|
void |
componentRemovedFromTabsSlot()
|
void |
componentSizeChangedSlot()
|
protected Window |
createInternalWindow(Dialog owner,
String title,
boolean modal)
|
protected Window |
createInternalWindow(Frame owner,
String title,
boolean modal)
|
int |
getNumOfComponents()
Since it is possible to add multiple components, here we ask how many there are |
void |
moveWindowSlot(int x,
int y)
|
void |
removeComponentListener(WindowDroppedListener wdl)
When we move we send an event. |
void |
setComponent(Component c)
Set or add a component. |
void |
setTitle(String title)
The title of the window. |
void |
tabSwitchedSlot()
|
Methods inherited from class uic.widgets.AbstractWindow |
getBounds, getDialogSizePanel, getLocation, getRPContainer, getSize, positionDialog, positionDialog, show, show, show |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CLOSEPOLICY_AUTO_CLOSE
public static final int CLOSEPOLICY_IGNORE
public static final int CLOSEPOLICY_NONEMPTY
Constructor Detail |
public ExtraWindow(Window owner, String title)
CLOSEPOLICY_AUTO_CLOSE
public ExtraWindow(Window owner, String title, int closePolicy)
owner
- the owner window. When that window is iconified; this window will also be hidden.title
- the title as shown on the titlebar.closePolicy
- allow closing of content and/or window.CLOSEPOLICY_AUTO_CLOSE
,
CLOSEPOLICY_IGNORE
,
CLOSEPOLICY_NONEMPTY
Method Detail |
protected Window createInternalWindow(Frame owner, String title, boolean modal)
createInternalWindow
in class AbstractWindow
protected Window createInternalWindow(Dialog owner, String title, boolean modal)
createInternalWindow
in class AbstractWindow
public int getNumOfComponents()
public void setTitle(String title)
public void setComponent(Component c)
setComponent
in class AbstractWindow
public void closeFirstComponentSlot()
public void moveWindowSlot(int x, int y)
public void componentRemovedFromTabsSlot()
public void childComponentRemovedSlot()
public void componentSizeChangedSlot()
public void closeWindowSlot()
public void tabSwitchedSlot()
public void addMoveListener(WindowDroppedListener wdl)
public void removeComponentListener(WindowDroppedListener wdl)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |