public abstract class JSLDesktop extends Object implements JSLFrameListener
JDesktopPane
,
JSLWindowMenu
,
JSLFrame
Modifier and Type | Class and Description |
---|---|
static class |
JSLDesktop.Factory |
Modifier and Type | Field and Description |
---|---|
protected int |
frame_count |
protected Boolean |
in_fake_activation |
protected List<JSLFrame> |
windows
a list of JSLFrames added to the JSLDesktop.
|
protected int |
xdecoration |
protected int |
ydecoration |
Modifier | Constructor and Description |
---|---|
protected |
JSLDesktop(Action exitAction)
Creates a new JSLDesktop.
|
Modifier and Type | Method and Description |
---|---|
void |
add(JSLFrame f)
add a JSLFrame under this JSLDesktop control.
|
protected abstract void |
addInternal(JSLFrame f) |
void |
closingProc() |
protected abstract void |
FrameActivated(JSLFrame f) |
protected abstract void |
FrameClosed(JSLFrame f) |
protected abstract void |
FrameClosing(JSLFrame f) |
protected abstract JSLFrame[] |
getAllJSLFrames() |
protected AppConfig |
getAppConfig() |
protected Point |
getDefaultLoationInternal(Dimension frameSize,
int xofs,
int yofs,
int xsep,
int ysep) |
protected abstract Point |
getDefaultLocation(Dimension frameSize) |
JFrame |
getInvisible()
Returns invisible window.
|
Iterator<JSLFrame> |
getJSLFrameIterator() |
protected JFrame |
getRootFrame()
Returns the root JFrame for the
owner parameter for
JDialog constructor to show a dialog window in the center of
screen. |
abstract JSLFrame |
getSelectedFrame()
Returns the currently active JSLFrame, or last active JSLFrame if no
JSLFrame is currently active, or null if any JSLFrame has never been
activated.
|
abstract JFrame |
getSelectedWindow()
Returns the current active JFrame.
|
abstract Dimension |
getSize()
Returns the size of this component in the form of a Dimension object.
|
boolean |
isReadyToExit() |
void |
JSLFrameActivated(JSLFrameEvent e)
Invoked when an internal frame is activated.
|
void |
JSLFrameClosed(JSLFrameEvent e)
Invoked when an internal frame has been closed.
|
void |
JSLFrameClosing(JSLFrameEvent e)
Invoked when an internal frame is in the process of being closed.
|
void |
JSLFrameDeactivated(JSLFrameEvent e)
Invoked when an internal frame is de-activated.
|
void |
JSLFrameDeiconified(JSLFrameEvent e)
Invoked when an internal frame is de-iconified.
|
void |
JSLFrameIconified(JSLFrameEvent e)
Invoked when an internal frame is iconified.
|
void |
JSLFrameOpened(JSLFrameEvent e)
Invoked when a internal frame has been opened.
|
abstract void |
updateLookAndFeel()
Notification from the UIManager that the L&F has changed.
|
protected Boolean in_fake_activation
protected int frame_count
protected int xdecoration
protected int ydecoration
protected JSLDesktop(Action exitAction)
protected abstract Point getDefaultLocation(Dimension frameSize)
JSLFrame.moveToDefaultLocation()
protected Point getDefaultLoationInternal(Dimension frameSize, int xofs, int yofs, int xsep, int ysep)
public abstract JSLFrame getSelectedFrame()
protected JFrame getRootFrame()
owner
parameter for
JDialog
constructor to show a dialog window in the center of
screen. In MDI mode returns the root JFrame created. In SDI mode returns
null.getSelectedWindow()
public JFrame getInvisible()
public void add(JSLFrame f)
public Iterator<JSLFrame> getJSLFrameIterator()
Iterator
of JSLFrame added on the JSLDesktop.public void JSLFrameActivated(JSLFrameEvent e)
JSLFrameListener
JSLFrameActivated
in interface JSLFrameListener
public void JSLFrameClosing(JSLFrameEvent e)
JSLFrameListener
JSLFrameClosing
in interface JSLFrameListener
public void JSLFrameClosed(JSLFrameEvent e)
JSLFrameListener
JSLFrameClosed
in interface JSLFrameListener
public void JSLFrameDeactivated(JSLFrameEvent e)
JSLFrameListener
JSLFrameDeactivated
in interface JSLFrameListener
public void JSLFrameDeiconified(JSLFrameEvent e)
JSLFrameListener
JSLFrameDeiconified
in interface JSLFrameListener
public void JSLFrameIconified(JSLFrameEvent e)
JSLFrameListener
JSLFrameIconified
in interface JSLFrameListener
public void JSLFrameOpened(JSLFrameEvent e)
JSLFrameListener
JSLFrameOpened
in interface JSLFrameListener
public boolean isReadyToExit()
public void closingProc()
public abstract JFrame getSelectedWindow()
owner
parameter for JDialog
constructor. In MDI mode returns the
root JFrame created. In SDI mode returns the current active JFrame (may
be the Toolbar frame).getSelectedWindow()
protected abstract JSLFrame[] getAllJSLFrames()
public abstract Dimension getSize()
protected abstract void addInternal(JSLFrame f)
public abstract void updateLookAndFeel()
protected abstract void FrameActivated(JSLFrame f)
protected abstract void FrameClosing(JSLFrame f)
protected abstract void FrameClosed(JSLFrame f)
protected AppConfig getAppConfig()
Copyright © 2014. All Rights Reserved.