jhomenet.gui.responsive
Class AbstractResponseEditor

java.lang.Object
  extended by jhomenet.gui.AbstractWindow
      extended by jhomenet.gui.AbstractEditor
          extended by jhomenet.gui.responsive.AbstractResponseEditor
Direct Known Subclasses:
DeviceResponseEditor, EmailResponseEditor, ExpressionEditor, MessageResponseEditor

public abstract class AbstractResponseEditor
extends AbstractEditor

ID: $id: $ Description: Provides a base responsive editor framework.


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
AbstractResponseEditor()
          Default constructor.
 
Method Summary
protected  void addResponse(AbstractResponse response)
          Add a response to the plan.
protected  java.lang.String getPlanDesc()
          Get the plan description (if one exists).
protected  void setExpression(Expression expression)
          Set the editor's expression.
 void setPlan(Plan plan)
          Set the editor's plan.
 void setResponseType(Plan.ResponseType type)
          Set the editor's response type variable.
 
Methods inherited from class jhomenet.gui.AbstractEditor
buildButtonPanel, buildGUI, buildMainPanel, commitButtonClicked, initializationComplete, loadObject, waitForInitialization
 
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
 

Constructor Detail

AbstractResponseEditor

public AbstractResponseEditor()
Default constructor.

Method Detail

setPlan

public void setPlan(Plan plan)
Set the editor's plan.

Parameters:
plan -

setResponseType

public void setResponseType(Plan.ResponseType type)
Set the editor's response type variable. This is only used for response editors and differentiates between an on-true and on-false response.

Parameters:
type -

setExpression

protected void setExpression(Expression expression)
Set the editor's expression. Only used for expression editors.

Parameters:
expression -

getPlanDesc

protected java.lang.String getPlanDesc()
Get the plan description (if one exists).

Returns:

addResponse

protected void addResponse(AbstractResponse response)
Add a response to the plan. All subclassing response editors should call this method to add a response. Sub-classes should not directly add responses to a plan.

Parameters:
response - Response to add


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