|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhomenet.gui.AbstractWindow
public abstract class AbstractWindow
Id: $Id$
The AbstractWindow is the base class for
all sensor responsive related windows. The window is an internal frame with
a main panel which in turn holds a status bar (Borderlayout.SOUTH) and the
built GUI elements (Borderlayout.CENTER).
By default, the status bar is set to null and if required the concrete class
should override the buildStatusBar method.
| Field Summary | |
|---|---|
protected javax.swing.JInternalFrame |
internalFrame
Internal frame |
| Constructor Summary | |
|---|---|
AbstractWindow()
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addChildWindow(AbstractWindow childWindow)
Add a child frame. |
protected abstract javax.swing.JPanel |
buildGUI()
Build the GUI. |
protected WindowStatusBar |
buildStatusBar()
Build the status bar. |
protected void |
closeWindow()
Try to close the internal frame. |
javax.swing.JInternalFrame |
createAsInternalFrame()
Create the window as an internal frame. |
javax.swing.JInternalFrame |
createAsInternalFrame(boolean resizable)
Create an internal frame. |
protected java.awt.Point |
getDesiredLocation()
Get the desired internal frame position. |
abstract java.lang.String |
getIdentifier()
Get the window identifier. |
protected javax.swing.JPanel |
getPanel()
Get the window's main panel. |
protected abstract java.lang.String |
getTitle()
Get the frame title. |
protected java.awt.Dimension |
getWindowDimension()
Get the desired window dimension. |
protected abstract void |
resetGUI()
Reset the GUI. |
protected void |
setPanel(javax.swing.JPanel p)
Set the window's main panel. |
void |
startWork()
Indicate that work has started. |
void |
startWork(java.lang.String text)
|
void |
stopWork()
Indicate that work has stopped. |
void |
stopWork(java.lang.String text)
|
protected void |
windowClosing()
If required, classes may override this method in order to perform any functions necessary before the window is closed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.swing.JInternalFrame internalFrame
| Constructor Detail |
|---|
public AbstractWindow()
| Method Detail |
|---|
protected abstract javax.swing.JPanel buildGUI()
throws java.lang.Exception
createAsInternalFrame
method is called. Simply instantiating the window does not build it.
java.lang.Exceptionprotected abstract void resetGUI()
public abstract java.lang.String getIdentifier()
public javax.swing.JInternalFrame createAsInternalFrame()
throws java.lang.Exception
java.lang.Exception
public javax.swing.JInternalFrame createAsInternalFrame(boolean resizable)
throws java.lang.Exception
resizable -
java.lang.Exceptionprotected void setPanel(javax.swing.JPanel p)
p - Main panelprotected javax.swing.JPanel getPanel()
protected void addChildWindow(AbstractWindow childWindow)
childWindow - protected java.awt.Dimension getWindowDimension()
protected java.awt.Point getDesiredLocation()
protected WindowStatusBar buildStatusBar()
public final void startWork()
public final void startWork(java.lang.String text)
public final void stopWork()
public final void stopWork(java.lang.String text)
protected abstract java.lang.String getTitle()
protected final void closeWindow()
protected void windowClosing()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||