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, removeValueChangeEventListener
private 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
- ALDDataIOProviderException
protected HashMap<ALDOpParameterDescriptor,String> updateOperator(ALDOperator _op) throws ALDDataIOProviderException
_op
- New operator to be linked to window.ALDDataIOProviderException
public JComponent getJComponent()
ALDSwingComponent
getJComponent
in class ALDSwingComponent
public void handleValueChangeEvent(ALDSwingValueChangeEvent event)
ALDSwingValueChangeListener
handleValueChangeEvent
in interface ALDSwingValueChangeListener
event
- Event to be handled.public void disableComponent()
ALDSwingComponent
disableComponent
in class ALDSwingComponent
public void enableComponent()
ALDSwingComponent
enableComponent
in class ALDSwingComponent
public void dispose()
ALDSwingComponent
dispose
in class ALDSwingComponent
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.