private class ALDOperatorDataIOSwing.OperatorConfigPanel extends ALDSwingComponent implements ALDSwingValueChangeListener, ActionListener
This button has an operator configuration window attached to it.
| Modifier and Type | Field and Description |
|---|---|
private JButton |
configButton
Button to open configuration window.
|
private JPanel |
configPanel
Panel containing buttons.
|
(package private) ALDOperatorDataIOSwing.OperatorConfigWindow |
confWin
Operator configuration window.
|
private Class<?> |
operatorClass
Class of operator to configure.
|
private ALDParameterDescriptor |
operatorDescriptor
Descriptor of parameter linked to operator.
|
private JButton |
resetButton
Button to reset operator to null.
|
listenerList| Constructor and Description |
|---|
OperatorConfigPanel(Class<?> cl,
ALDParameterDescriptor d)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
void |
disableComponent()
Method to disable the component, i.e. all graphical elements, to
prohibit parameter changes.
|
void |
dispose()
Releases all resources, i.e. closes all sub-windows.
|
void |
enableComponent()
Method to enable the component with all graphical elements again.
|
JComponent |
getJComponent()
Method to request the provider's GUI element.
|
void |
handleValueChangeEvent(ALDSwingValueChangeEvent event)
Method which is called on event occurence.
|
protected Object |
readData(Field field,
Class<?> cl)
Read operator parameter values.
|
protected HashMap<ALDOpParameterDescriptor,String> |
updateOperator(ALDOperator _op)
Update window with new operator parameter values.
|
addValueChangeEventListener, fireALDSwingValueChangeEvent, removeValueChangeEventListenerprivate JPanel configPanel
private JButton configButton
private JButton resetButton
ALDOperatorDataIOSwing.OperatorConfigWindow confWin
private Class<?> operatorClass
private ALDParameterDescriptor operatorDescriptor
public OperatorConfigPanel(Class<?> cl, ALDParameterDescriptor d)
cl - Class of collection.d - Optional descriptor to provide additional information.protected Object readData(Field field, Class<?> cl) throws ALDDataIOProviderException
field - cl - ALDDataIOProviderExceptionprotected HashMap<ALDOpParameterDescriptor,String> updateOperator(ALDOperator _op) throws ALDDataIOProviderException
_op - New operator to be linked to window.ALDDataIOProviderExceptionpublic JComponent getJComponent()
ALDSwingComponentgetJComponent in class ALDSwingComponentpublic void handleValueChangeEvent(ALDSwingValueChangeEvent event)
ALDSwingValueChangeListenerhandleValueChangeEvent in interface ALDSwingValueChangeListenerevent - Event to be handled.public void disableComponent()
ALDSwingComponentdisableComponent in class ALDSwingComponentpublic void enableComponent()
ALDSwingComponentenableComponent in class ALDSwingComponentpublic void dispose()
ALDSwingComponentdispose in class ALDSwingComponentpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerCopyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.