public interface ProcessorUI
Declared in the system as services (i.e. singleton), the role of UI classes is to provide user interface to configure processors and remember last used settings if needed. User interface for processors are shown when the import report is closed and can access the container before the process started.
To be recognized by the system, implementations must just add the following annotation:
@ServiceProvider(service=ProcessorUI.class)
Processor| Modifier and Type | Method and Description |
|---|---|
JPanel |
getPanel()
Returns the processor settings panel.
|
boolean |
isUIFoProcessor(Processor processor)
Returns
true if this UI belongs to the given processor. |
boolean |
isValid(Container[] containers)
Returns
true if the processor this UI represents is valid
for containers. |
void |
setup(Processor processor)
Link the UI to the processor and therefore to settings values.
|
void |
unsetup()
Notify UI the settings panel has been closed and that new values can be
written.
|
void setup(Processor processor)
getPanel() to push settings.processor - the processor that settings is to be setJPanel getPanel()
nullvoid unsetup()
boolean isUIFoProcessor(Processor processor)
true if this UI belongs to the given processor.processor - the processor that has to be testedtrue if the UI is matching with
processor, false otherwise.boolean isValid(Container[] containers)
true if the processor this UI represents is valid
for containers. Processors could be specific to some type of
data and this method can provide this information.containers - containers that are to be processedtrue if the processor this UI represents is valid
for containers.Copyright © 2007–2017. All rights reserved.