|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.ui.BasicApp
org.esa.beam.framework.processor.ui.ProcessorApp
public class ProcessorApp
This class serves as the main processor UI frame shared by all processors. It provides Request load and save operations and the basic button set. This class mediates the communication between processor and processor UI.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.esa.beam.framework.ui.BasicApp |
|---|
BasicApp.MainFrame |
| Field Summary | |
|---|---|
static String |
INPUT_PRODUCT_DIR_PREFERENCES_KEY
|
static String |
OUTPUT_PRODUCT_DIR_PREFERENCES_KEY
|
static String |
REQUEST_DIR_PREFERENCES_KEY
|
| Constructor Summary | |
|---|---|
ProcessorApp(Processor processor)
Constructs the object with given processor |
|
ProcessorApp(Processor processor,
RequestLoader loader)
Constructs the object with given processor and logwriter |
|
| Method Summary | |
|---|---|
void |
addRequestValidator(RequestValidator requestValidator)
|
protected com.jidesoft.action.CommandBar |
createMainMenuBar()
Creates the menu bar, attaches it to the main frame and adds the action listeners. |
protected JComponent |
createMainPane()
Creates the main pane for this application. |
AbstractButton |
getHelpButton()
|
Processor |
getProcessor()
Gets the associated processor. |
Vector |
getRequests()
Retrieves the requests currently used by the processor |
RequestValidator[] |
getRequestValidators()
|
protected void |
initClient(com.bc.ceres.core.ProgressMonitor pm)
Runs the application. |
protected void |
initClientUI(com.bc.ceres.core.ProgressMonitor pm)
This method can be overridden in order to initialize a client user interface. |
boolean |
isStandAlone()
Determines whether or not this processor application runs in stand-alone mode. |
void |
markIODirChanges(ParamGroup paramGroup)
|
void |
markParentDirChanges(Parameter parameter,
String preferencesKey)
|
void |
markParentDirChanges(ParamGroup paramGroup,
String paramName,
String preferencesKey)
|
void |
processingAborted()
Called if the current processing request has been aborted. |
void |
processingCompleted()
Called if the current processing request has been successfully completed. |
void |
processingFailed()
Called if a processing error occurred. |
boolean |
removeRequestValidator(RequestValidator requestValidator)
|
void |
setHelpID(String helpID)
|
void |
setRequests(Vector requests)
Injects a list of requests to the processorUI. |
void |
setStandAlone(boolean standAlone)
Sets whether or not this processor application runs in stand-alone mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REQUEST_DIR_PREFERENCES_KEY
public static final String INPUT_PRODUCT_DIR_PREFERENCES_KEY
public static final String OUTPUT_PRODUCT_DIR_PREFERENCES_KEY
| Constructor Detail |
|---|
public ProcessorApp(Processor processor,
RequestLoader loader)
processor - the processor run by the ProcessorApploader - the request loader to be used (can be null)public ProcessorApp(Processor processor)
processor - the processor run by the ProcessorApp| Method Detail |
|---|
public Processor getProcessor()
public RequestValidator[] getRequestValidators()
nullpublic void addRequestValidator(RequestValidator requestValidator)
public boolean removeRequestValidator(RequestValidator requestValidator)
public void setStandAlone(boolean standAlone)
BasicApp.startUp(com.bc.ceres.core.ProgressMonitor) is called.
standAlone - whether or not this processor application runs in stand alone mode.public boolean isStandAlone()
true, if so.
protected void initClient(com.bc.ceres.core.ProgressMonitor pm)
throws Exception
initClient in class BasicApppm - a progress monitor, can be used to signal progress
Exception - if an error occurs
protected void initClientUI(com.bc.ceres.core.ProgressMonitor pm)
throws Exception
BasicApp.startUp(com.bc.ceres.core.ProgressMonitor) method before the BasicApp.applyPreferences() is called and before an optional splash-screen closes
and the main frame becomes visible.
initClientUI in class BasicApppm - A monitor to indicate progress.
Exception - if an error occursprotected com.jidesoft.action.CommandBar createMainMenuBar()
createMainMenuBar in class BasicAppprotected JComponent createMainPane()
createMainPane in class BasicApppublic void processingCompleted()
public void processingAborted()
public void processingFailed()
public Vector getRequests()
throws ProcessorException
ProcessorException - If an error occurs.
public void setRequests(Vector requests)
throws ProcessorException
requests - Sets the requests to be
processed by the processor
ProcessorException - If an error occurs.public void markIODirChanges(ParamGroup paramGroup)
public void markParentDirChanges(ParamGroup paramGroup,
String paramName,
String preferencesKey)
public void markParentDirChanges(Parameter parameter,
String preferencesKey)
public AbstractButton getHelpButton()
public void setHelpID(String helpID)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||