csli.dialog.app.calo.main
Class ServiceManagerGui

java.lang.Object
  extended by csli.dialog.app.calo.main.ServiceManagerGui

public class ServiceManagerGui
extends Object

A GUI for the CSLI CALO Service Manager to be used for development, debugging, and demo purposes.

There is only one instance of this gui since there is only one manager, and it may be gotten using the Service Manager's getGui() method. The Swing component which realizes the GUI may be gotten from the getJComponent() method in this class. Every managed service will be added as a tab in a tabbed pane.


Field Summary
static int PREFERRED_WIDTH
          The preferred width of the GUI.
 
Constructor Summary
protected ServiceManagerGui(ServiceManager manager)
          A protected constructor to be used by the manager's getGUI() method.
 
Method Summary
 void addButton(JButton button)
           
protected  void addService(Service service)
          Add a service to the set of tabbed components.
 JComponent getJComponent()
          Get the root swing component for this GUI.
 ServiceManager getManager()
           
 void setErrorText(String text)
          Set the text displayed in the error message area.
 void setLabelText(String text)
          Set the text displayed in the main message area at the top.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFERRED_WIDTH

public static final int PREFERRED_WIDTH
The preferred width of the GUI.

See Also:
Constant Field Values
Constructor Detail

ServiceManagerGui

protected ServiceManagerGui(ServiceManager manager)
A protected constructor to be used by the manager's getGUI() method.

Method Detail

addButton

public void addButton(JButton button)

addService

protected void addService(Service service)
Add a service to the set of tabbed components.


getJComponent

public JComponent getJComponent()
Get the root swing component for this GUI. This may be used to place the GUI into some owning super-GUI.


getManager

public ServiceManager getManager()
Returns:
Returns the manager.

setErrorText

public void setErrorText(String text)
Set the text displayed in the error message area.

Parameters:
text -

setLabelText

public void setLabelText(String text)
Set the text displayed in the main message area at the top.

Parameters:
text -