jhomenet.gui
Class AbstractEditor

java.lang.Object
  extended by jhomenet.gui.AbstractWindow
      extended by jhomenet.gui.AbstractEditor
Direct Known Subclasses:
AbstractResponseEditor, ConditionEditor, PlanEditor, RegisterHardwareWindow, TriggerEditor

public abstract class AbstractEditor
extends AbstractWindow

An abstract editor class used as a base for all concrete editor classes.


Field Summary
protected  javax.swing.JButton cancel_b
          Buttons
protected  javax.swing.JButton commit_b
          Buttons
protected  boolean isInitialized
          Used to make ensure the GUI has been initialized before doing any further work.
protected  java.lang.Object lock
          Used for initializing.
 
Fields inherited from class jhomenet.gui.AbstractWindow
internalFrame
 
Constructor Summary
AbstractEditor()
          Constructor.
 
Method Summary
protected  javax.swing.JPanel buildButtonPanel()
          Create and build the button panel.
protected  javax.swing.JPanel buildGUI()
          Build the GUI
protected abstract  javax.swing.JPanel buildMainPanel()
          Used to build the panel editor panel.
protected abstract  void commitButtonClicked()
           
protected  void initializationComplete()
          Initialization is complete.
abstract  void loadObject(java.lang.Object object)
          Load an model into the editor.
protected  void waitForInitialization()
          Wait for initialization to complete.
 
Methods inherited from class jhomenet.gui.AbstractWindow
addChildWindow, buildStatusBar, closeWindow, createAsInternalFrame, createAsInternalFrame, getDesiredLocation, getIdentifier, getPanel, getTitle, getWindowDimension, resetGUI, setPanel, startWork, startWork, stopWork, stopWork, windowClosing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commit_b

protected javax.swing.JButton commit_b
Buttons


cancel_b

protected javax.swing.JButton cancel_b
Buttons


isInitialized

protected boolean isInitialized
Used to make ensure the GUI has been initialized before doing any further work.


lock

protected java.lang.Object lock
Used for initializing.

Constructor Detail

AbstractEditor

public AbstractEditor()
Constructor.

Method Detail

buildMainPanel

protected abstract javax.swing.JPanel buildMainPanel()
Used to build the panel editor panel.

Returns:
A reference to the newly created main panel

commitButtonClicked

protected abstract void commitButtonClicked()
See Also:
commitButtonClicked()

loadObject

public abstract void loadObject(java.lang.Object object)
Load an model into the editor.

Parameters:
object -

buildGUI

protected javax.swing.JPanel buildGUI()
Build the GUI

Specified by:
buildGUI in class AbstractWindow

buildButtonPanel

protected javax.swing.JPanel buildButtonPanel()
Create and build the button panel.

Returns:
A reference to the newly created button panel

waitForInitialization

protected void waitForInitialization()
Wait for initialization to complete.


initializationComplete

protected void initializationComplete()
Initialization is complete.



Copyright © 2004-2005 David Irwin. All Rights Reserved.