uic.widgets
Class ExtraWindow

java.lang.Object
  extended byuic.widgets.AbstractWindow
      extended byuic.widgets.ExtraWindow

public class ExtraWindow
extends AbstractWindow

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.

Since:
1.2

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

CLOSEPOLICY_AUTO_CLOSE

public static final int CLOSEPOLICY_AUTO_CLOSE
Automatically close the window when last panel closes

See Also:
Constant Field Values

CLOSEPOLICY_IGNORE

public static final int CLOSEPOLICY_IGNORE
Don't allow a panel to be removed, also remove the 'close button'

See Also:
Constant Field Values

CLOSEPOLICY_NONEMPTY

public static final int CLOSEPOLICY_NONEMPTY
Allow panels to be removed, but keep at least 1

See Also:
Constant Field Values
Constructor Detail

ExtraWindow

public ExtraWindow(Window owner,
                   String title)
Convinience constructor; closePolicy == CLOSEPOLICY_AUTO_CLOSE

See Also:
CLOSEPOLICY_AUTO_CLOSE

ExtraWindow

public ExtraWindow(Window owner,
                   String title,
                   int closePolicy)
Create a new ExtraWindow.

Parameters:
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.
See Also:
CLOSEPOLICY_AUTO_CLOSE, CLOSEPOLICY_IGNORE, CLOSEPOLICY_NONEMPTY
Method Detail

createInternalWindow

protected Window createInternalWindow(Frame owner,
                                      String title,
                                      boolean modal)
Specified by:
createInternalWindow in class AbstractWindow

createInternalWindow

protected Window createInternalWindow(Dialog owner,
                                      String title,
                                      boolean modal)
Specified by:
createInternalWindow in class AbstractWindow

getNumOfComponents

public int getNumOfComponents()
Since it is possible to add multiple components, here we ask how many there are


setTitle

public void setTitle(String title)
The title of the window.


setComponent

public void setComponent(Component c)
Set or add a component.

Overrides:
setComponent in class AbstractWindow

closeFirstComponentSlot

public void closeFirstComponentSlot()
Called at a double-click or when the close button is pressed. Removes the first component.


moveWindowSlot

public void moveWindowSlot(int x,
                           int y)

componentRemovedFromTabsSlot

public void componentRemovedFromTabsSlot()

childComponentRemovedSlot

public void childComponentRemovedSlot()

componentSizeChangedSlot

public void componentSizeChangedSlot()

closeWindowSlot

public void closeWindowSlot()

tabSwitchedSlot

public void tabSwitchedSlot()

addMoveListener

public void addMoveListener(WindowDroppedListener wdl)
When we move we send an event.


removeComponentListener

public void removeComponentListener(WindowDroppedListener wdl)
When we move we send an event.



Copyright © 2002,2003 Thomas Zander Available under the Free Apache licence