com.norbl.cbp.ppe.gui.networkspec
Class NetworkSpecGui

java.lang.Object
  extended by com.norbl.cbp.ppe.gui.networkspec.NetworkSpecGui
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class NetworkSpecGui
extends java.lang.Object
implements java.awt.event.ActionListener

Gathers info and provides logic for entering a network spec. The actual gui is drawn by NetworkSpecGuiFrame; this class provides all the logic.

Usage:


Nested Class Summary
static class NetworkSpecGui.CmdType
           
 
Field Summary
static java.lang.String CANCEL
           
static java.lang.String FINISH
           
 
Constructor Summary
NetworkSpecGui(PPEManager ppeManager, java.lang.Class amiChoiceClass, java.lang.Class guiFrameClass, java.lang.String networkName)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ev)
           
 NetworkSpec choicesToNetworkSpec()
           
 boolean fillSpec()
          fillSpec() launches the network spec gui in a separate thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CANCEL

public static final java.lang.String CANCEL
See Also:
Constant Field Values

FINISH

public static final java.lang.String FINISH
See Also:
Constant Field Values
Constructor Detail

NetworkSpecGui

public NetworkSpecGui(PPEManager ppeManager,
                      java.lang.Class amiChoiceClass,
                      java.lang.Class guiFrameClass,
                      java.lang.String networkName)
               throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

fillSpec

public boolean fillSpec()
fillSpec() launches the network spec gui in a separate thread. It then sleeps until params have been entered.

Returns:

choicesToNetworkSpec

public NetworkSpec choicesToNetworkSpec()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ev)
Specified by:
actionPerformed in interface java.awt.event.ActionListener