com.cometway.swing
Class PropsEditor

java.lang.Object
  extended by com.cometway.props.Props
      extended by com.cometway.ak.Agent
          extended by com.cometway.swing.AbstractJFrameAgent
              extended by com.cometway.swing.PropsEditor
All Implemented Interfaces:
AgentInterface, HasStateMachineModel

public class PropsEditor
extends AbstractJFrameAgent

This agent is used by the StartupEditor agent application. This agent can be used to present a JFrame containing a JTable-based Agent Props editor. The edit_props property must be set to reference the Props that will be edited before this agent is started.


Field Summary
 
Fields inherited from class com.cometway.swing.AbstractJFrameAgent
frame, menu, menuActionListener, menuBar, windowListener
 
Fields inherited from class com.cometway.ak.Agent
agent_id, agentController, CREATING_STATE, debugReporter, DESTROYED_STATE, DESTROYING_STATE, errorReporter, FAILED_STATE, printlnReporter, props, RUNNING_STATE, STARTING_STATE, STOPPED_STATE, STOPPING_STATE, warningReporter
 
Constructor Summary
PropsEditor()
           
 
Method Summary
protected  java.awt.event.ActionListener createMenuActionListener()
          Creates the ActionListener for interpreting menu events used by this agent.
 void initProps()
          Initializes the Props for this agent.
protected  void openFrame()
          Creates and initializes the Props Editor JFrame.
 void start()
          Creates a Agent Props Editor JFrame for the specified edit_props.
 
Methods inherited from class com.cometway.swing.AbstractJFrameAgent
closeFrame, createFrame, createMenu, createWindowListener, setLookAndFeel, setMenuBar, stop
 
Methods inherited from class com.cometway.ak.Agent
currentStateEquals, debug, destroy, error, error, getAgentController, getDateTimeStr, getProps, getServiceImpl, getStateMachineModel, println, register, registerService, setAgentController, setProps, toString, unregister, unregisterService, warning, warning
 
Methods inherited from class com.cometway.props.Props
addListener, append, copy, copyFrom, copyTo, decrementInteger, dump, enableListeners, enumerateKeys, format, getBoolean, getByteArray, getCharacter, getDate, getDate, getDateString, getDouble, getFloat, getHexString, getInteger, getKeys, getLong, getNextKey, getProperty, getProperty, getPropsContainer, getSize, getString, getString, getTokens, getTokens, getTrimmedString, getVector, hasProperty, incrementInteger, insertProps, loadProps, notifyPropsChanged, notifyPropsChangedIgnore, notifyPropsChangedIgnore, parse, propertyMatchesRegEx, readFromFile, regExPropertyMatches, removeAll, removeListener, removeProperty, resumeNotify, saveProps, set, setBoolean, setCharacter, setDefault, setDouble, setFloat, setInteger, setLong, setProperty, setProperty, setProperty, setPropsContainer, suspendNotify, writeToFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropsEditor

public PropsEditor()
Method Detail

initProps

public void initProps()
Initializes the Props for this agent.

Specified by:
initProps in interface AgentInterface
Overrides:
initProps in class AbstractJFrameAgent

start

public void start()
Creates a Agent Props Editor JFrame for the specified edit_props.

Specified by:
start in interface AgentInterface
Overrides:
start in class AbstractJFrameAgent

createMenuActionListener

protected java.awt.event.ActionListener createMenuActionListener()
Creates the ActionListener for interpreting menu events used by this agent.

Overrides:
createMenuActionListener in class AbstractJFrameAgent

openFrame

protected void openFrame()
Creates and initializes the Props Editor JFrame.

Overrides:
openFrame in class AbstractJFrameAgent