|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.sphinx.tools.gui.GUIMediator
public class GUIMediator
This is one of the important classes that coordinates between GUI and model Its main operations are : 1. to start and initialize the GUI and Sphinx model 2. drive the input - output operation, and 3. to retrieve the most updated data from GUI or to update GUI of the new loaded data
| Field Summary | |
|---|---|
static java.lang.String |
EXIT
|
static java.lang.String |
NEW
|
static java.lang.String |
OPEN
|
static java.lang.String |
REFRESH
|
static java.lang.String |
SAVE
|
static java.lang.String |
SHOW_CONFIG
|
| Constructor Summary | |
|---|---|
GUIMediator()
Creates a new instance of GUIMediator |
|
| Method Summary | |
|---|---|
void |
action(java.lang.String command)
action command that does not involve File operation |
void |
action(java.lang.String command,
java.io.File fFile)
all action will call this method, with its specific command |
void |
action(java.lang.String command,
javax.swing.JTextArea outputJTextArea)
action that needs String return, with its specific command |
void |
execute()
Start the GUI - after load operations is completed successfully |
ModelBuilder |
getModelBuilder()
A public function to obtain reference to the ModelBuilder, that holds the complete set of classes and groups in the model |
void |
registerPanel(GUIFileActionListener c)
Used by GUI panel to register as one of the notified clients |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OPEN
public static final java.lang.String EXIT
public static final java.lang.String NEW
public static final java.lang.String SAVE
public static final java.lang.String REFRESH
public static final java.lang.String SHOW_CONFIG
| Constructor Detail |
|---|
public GUIMediator()
throws ConfigurableUtilException
ConfigurableUtilException| Method Detail |
|---|
public ModelBuilder getModelBuilder()
public void registerPanel(GUIFileActionListener c)
c - the registering class must implement GUIFileActionListenerpublic void execute()
public void action(java.lang.String command,
java.io.File fFile)
throws GUIReaderException,
GUIWriterException
command - Action to be performedfFile - File to open/save to
GUIReaderException, - GUIWriterException
GUIReaderException
GUIWriterException
public void action(java.lang.String command,
javax.swing.JTextArea outputJTextArea)
throws GUIWriterException,
GUIReaderException
command - Action to be performedoutputJTextArea - text area to display the output
GUIReaderException, - GUIWriterException
GUIWriterException
GUIReaderException
public void action(java.lang.String command)
throws ConfigurableUtilException
File operation
ConfigurableUtilException - when there's error while reloading model
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||