|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
de.lmu.ifi.dbs.elki.gui.multistep.panels.ParameterTabPanel
public abstract class ParameterTabPanel

Abstract panel, showing particular options.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected static Logging |
logger
ELKI logger for the GUI |
protected Observers<ParameterTabPanel> |
observers
Observers of this panel |
private ConfiguratorPanel |
parameterTable
The parameter table |
private JButton |
runButton
The "run" button. |
private static long |
serialVersionUID
Serial version |
static String |
STATUS_COMPLETE
Status to signal the step has been run completely. |
static String |
STATUS_CONFIGURED
Status to signal the step has been configured properly. |
static String |
STATUS_FAILED
Status to signal the step has failed somehow |
static String |
STATUS_READY
Status to signal the step is ready to run |
static String |
STATUS_UNCONFIGURED
Status to signal the step has been configured properly. |
private JLabel |
statusText
The status text field |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ParameterTabPanel()
Input pane |
|
| Method Summary | |
|---|---|
void |
addObserver(Observer<? super ParameterTabPanel> o)
Add an observer to the object. |
void |
appendParameters(ListParameterization params)
Collect parameters |
boolean |
canRun()
Test if this tab is ready-to-run |
protected abstract void |
configureStep(Parameterization config)
Configure this step with the given parameters. |
protected void |
execute()
Execute the task. |
protected abstract void |
executeStep()
Execute the configured step. |
protected abstract String |
getStatus()
Get the current status of this step. |
boolean |
isComplete()
Test if this tab is complete |
void |
removeObserver(Observer<? super ParameterTabPanel> o)
Remove an observer from the object. |
protected void |
reportErrors(Parameterization config)
Report errors in a single error log record. |
void |
setParameters(Parameterization config)
Do the actual setParameters invocation. |
void |
stateChanged(ChangeEvent e)
|
protected void |
updateParameterTable()
Serialize the parameter table and run setParameters() |
protected void |
updateStatus()
Invoked to update the UI when the status could have changed. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
public static final String STATUS_UNCONFIGURED
public static final String STATUS_CONFIGURED
public static final String STATUS_READY
public static final String STATUS_COMPLETE
public static final String STATUS_FAILED
protected static final Logging logger
private final ConfiguratorPanel parameterTable
private final JButton runButton
private final JLabel statusText
protected final Observers<ParameterTabPanel> observers
| Constructor Detail |
|---|
public ParameterTabPanel()
| Method Detail |
|---|
protected void updateParameterTable()
public void setParameters(Parameterization config)
config - Parameterizationpublic void appendParameters(ListParameterization params)
params - Parameter list to add toprotected void reportErrors(Parameterization config)
config - Parameterizationprotected void execute()
protected abstract void configureStep(Parameterization config)
config - Configuration to use.protected abstract String getStatus()
protected abstract void executeStep()
public boolean canRun()
public boolean isComplete()
protected void updateStatus()
public void addObserver(Observer<? super ParameterTabPanel> o)
Observable
addObserver in interface Observable<ParameterTabPanel>o - Observer to addpublic void removeObserver(Observer<? super ParameterTabPanel> o)
Observable
removeObserver in interface Observable<ParameterTabPanel>o - Observer to removepublic void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListener
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||