jhomenet.gui
Class RegisterHardwareWindow

java.lang.Object
  extended by jhomenet.gui.AbstractWindow
      extended by jhomenet.gui.AbstractEditor
          extended by jhomenet.gui.RegisterHardwareWindow

public class RegisterHardwareWindow
extends AbstractEditor

Filename: $Source$ Description: Used to register currently unregistered hardware.


Field Summary
 
Fields inherited from class jhomenet.gui.AbstractEditor
cancel_b, commit_b, isInitialized, lock
 
Fields inherited from class jhomenet.gui.AbstractWindow
internalFrame
 
Constructor Summary
RegisterHardwareWindow(java.lang.String hardwareId)
          Default constructor.
 
Method Summary
protected  javax.swing.JPanel buildMainPanel()
          Build the hardware registration window.
protected  void commitButtonClicked()
          Initiate the hardware registration process.
 java.lang.String getIdentifier()
          Get the window identifier.
 java.lang.String getTitle()
          Get the frame title.
 void loadObject(java.lang.Object obj)
          Load an model into the editor.
protected  void resetGUI()
          Reset the GUI.
 
Methods inherited from class jhomenet.gui.AbstractEditor
buildButtonPanel, buildGUI, initializationComplete, waitForInitialization
 
Methods inherited from class jhomenet.gui.AbstractWindow
addChildWindow, buildStatusBar, closeWindow, createAsInternalFrame, createAsInternalFrame, getDesiredLocation, getPanel, getWindowDimension, setPanel, startWork, startWork, stopWork, stopWork, windowClosing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisterHardwareWindow

public RegisterHardwareWindow(java.lang.String hardwareId)
Default constructor.

Parameters:
hardwareId - The hardware ID of the unregistered hardware to register
Method Detail

getTitle

public java.lang.String getTitle()
Description copied from class: AbstractWindow
Get the frame title.

Specified by:
getTitle in class AbstractWindow
Returns:
The frame title
See Also:
AbstractWindow.getTitle()

buildMainPanel

protected javax.swing.JPanel buildMainPanel()
Build the hardware registration window.

Specified by:
buildMainPanel in class AbstractEditor
Returns:
A reference to the newly created main panel
See Also:
AbstractWindow.buildGUI()

commitButtonClicked

protected void commitButtonClicked()
Initiate the hardware registration process.

Specified by:
commitButtonClicked in class AbstractEditor
See Also:
AbstractEditor.commitButtonClicked()

loadObject

public void loadObject(java.lang.Object obj)
Description copied from class: AbstractEditor
Load an model into the editor.

Specified by:
loadObject in class AbstractEditor
See Also:
AbstractEditor.loadObject(java.lang.Object)

resetGUI

protected void resetGUI()
Description copied from class: AbstractWindow
Reset the GUI.

Specified by:
resetGUI in class AbstractWindow
See Also:
AbstractWindow.resetGUI()

getIdentifier

public java.lang.String getIdentifier()
Description copied from class: AbstractWindow
Get the window identifier. This identifier is used as the control in not allowing multiple windows of the same type to be opened. For example, two services status window should not allowed to be opened. In general, the system will not create another window if the identifier is already in the current list.

Specified by:
getIdentifier in class AbstractWindow
Returns:
The window's identifier
See Also:
jhomenet.gui.AbstractWindow#initializeIdentifier()


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