|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.gswing.gui.desktop.Desktop
public class Desktop
The main frame in the GUI
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JFrame |
---|
JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
---|
Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JFrame |
---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Desktop()
Constructor. |
Method Summary | |
---|---|
void |
add(JInternalFrame guiComponent)
Add a component window to the desktop. |
void |
executeLengthyTask(Object source,
String methodName,
Object[] params,
BoundedRangeModel model)
Execute a method that could take some time. |
JDesktopPane |
getDesktopPane()
|
JRootPane |
getRootPane()
|
boolean |
initialise(IFramework framework)
Set up desktop. |
void |
invokeInserter(JComponent parent,
String constituency,
char type,
String parentConstituency)
Display the inserter dialog. |
void |
remove(JInternalFrame guiComponent)
Remove a component window from the desktop. |
void |
showResult(String constituency,
char type)
Display the result in the viewer dialog. |
void |
windowActivated(WindowEvent arg0)
|
void |
windowClosed(WindowEvent arg0)
|
void |
windowClosing(WindowEvent arg0)
Before closing make sure to shutdown database connection. |
void |
windowDeactivated(WindowEvent arg0)
|
void |
windowDeiconified(WindowEvent arg0)
|
void |
windowIconified(WindowEvent arg0)
|
void |
windowOpened(WindowEvent arg0)
|
Methods inherited from class java.awt.Frame |
---|
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Constructor Detail |
---|
public Desktop()
Method Detail |
---|
public boolean initialise(IFramework framework)
initialise
in interface IComponent
framework
- The gswing framework reference.
public void add(JInternalFrame guiComponent)
IDesktopManagement
add
in interface IDesktopManagement
guiComponent
- The component to be added.public void remove(JInternalFrame guiComponent)
IDesktopManagement
remove
in interface IDesktopManagement
guiComponent
- The component to be removed.public void invokeInserter(JComponent parent, String constituency, char type, String parentConstituency)
IDesktopManagement
invokeInserter
in interface IDesktopManagement
parent
- The component that invoked this.constituency
- The name of the constituency to display.type
- The constituency type.parentConstituency
- The parent constituency.public void showResult(String constituency, char type)
IViewerInvocation
showResult
in interface IViewerInvocation
constituency
- The name of the constituency to display.type
- The constituency type.public void executeLengthyTask(Object source, String methodName, Object[] params, BoundedRangeModel model)
IDesktopManagement
executeLengthyTask
in interface IDesktopManagement
source
- The object that the method is to invoked on.methodName
- The name of the method to be invoked.params
- The method parameters.model
- The progress bar model.public JDesktopPane getDesktopPane()
getDesktopPane
in interface IDesktopManagement
public JRootPane getRootPane()
getRootPane
in interface RootPaneContainer
getRootPane
in interface IDesktopManagement
getRootPane
in class JFrame
public void windowClosing(WindowEvent arg0)
windowClosing
in interface WindowListener
public void windowActivated(WindowEvent arg0)
windowActivated
in interface WindowListener
public void windowClosed(WindowEvent arg0)
windowClosed
in interface WindowListener
public void windowDeactivated(WindowEvent arg0)
windowDeactivated
in interface WindowListener
public void windowDeiconified(WindowEvent arg0)
windowDeiconified
in interface WindowListener
public void windowIconified(WindowEvent arg0)
windowIconified
in interface WindowListener
public void windowOpened(WindowEvent arg0)
windowOpened
in interface WindowListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |