|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rapla.gui.toolkit.FrameControllerList
public final class FrameControllerList
All rapla-windows are registered on the FrameControllerList. The FrameControllerList is responsible for positioning the windows and closing all open windows on exit.
Field Summary | |
---|---|
static String |
ROLE
|
Constructor Summary | |
---|---|
FrameControllerList()
|
Method Summary | |
---|---|
void |
add(FrameController c)
adds a window to the FrameControllerList |
void |
addFrameControllerListener(FrameControllerListener listener)
|
void |
centerWindow(Window window)
centers the window around the specified center |
static void |
centerWindowOnScreen(Window window)
centers the window around the specified center |
void |
closeAll()
closes all windows registered on the FrameControllerList |
void |
enableLogging(Logger logger)
|
protected void |
fireFrameClosed(FrameController controller)
|
protected void |
fireListEmpty()
|
static void |
fitIntoScreen(int x,
int y,
Component window)
Tries to place the window, that it fits into the screen. |
FrameControllerListener[] |
getFrameControllerListeners()
|
protected Logger |
getLogger()
|
Window |
getMainWindow()
|
static void |
placeRelativeToComponent(Window newWindow,
Component component,
Point point)
|
void |
placeRelativeToMain(Window newWindow)
places the window relative to the main-window if set. |
static void |
placeRelativeToWindow(Window newWindow,
Window owner)
places the window relative to the owner-window. |
void |
remove(FrameController c)
removes a window from the FrameControllerList |
void |
removeFrameControllerListener(FrameControllerListener listener)
|
void |
setCenter(Container window)
the center will be used by the centerWindow() function. |
void |
setCenter(Point center)
the center will be used by the centerWindow(Window) function. |
void |
setMainWindow(Window window)
the main-window will be used by the placeRelativeToMain(Window) function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ROLE
Constructor Detail |
---|
public FrameControllerList()
Method Detail |
---|
public void enableLogging(Logger logger)
enableLogging
in interface LogEnabled
protected Logger getLogger()
public void setCenter(Container window)
centerWindow()
function.
public void setCenter(Point center)
centerWindow(Window)
function.
centerWindow(Window)
public void setMainWindow(Window window)
placeRelativeToMain(Window)
function.
placeRelativeToMain(Window)
public Window getMainWindow()
public void placeRelativeToMain(Window newWindow)
centerWindow(Window)
method is called.
newWindow
- the window to placepublic void add(FrameController c)
public void remove(FrameController c)
public void closeAll()
public void addFrameControllerListener(FrameControllerListener listener)
public void removeFrameControllerListener(FrameControllerListener listener)
public FrameControllerListener[] getFrameControllerListeners()
protected void fireFrameClosed(FrameController controller)
protected void fireListEmpty()
public void centerWindow(Window window)
public static void centerWindowOnScreen(Window window)
public static void fitIntoScreen(int x, int y, Component window)
public static void placeRelativeToWindow(Window newWindow, Window owner)
newWindow
- the window to placeowner
- the window to place intopublic static void placeRelativeToComponent(Window newWindow, Component component, Point point)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |