private class ALDOperatorDataIOSwing.OperatorHierarchyConfigPanel.AbstrOpClassPanel extends ALDSwingComponent implements ActionListener, ItemListener, ALDSwingValueChangeListener
Modifier and Type | Field and Description |
---|---|
private Collection<Class> |
availableClasses
List of available classes.
|
private ALDSwingComponentComboBox |
classSelection
Combobox containing available classes to select.
|
private JButton |
configButton
Button to open configuration window.
|
private HashMap<Class,ALDOperatorDataIOSwing.OperatorConfigPanel> |
configWins
Hashmap to store configuration windows for classes.
|
private JPanel |
mainPanel
Main panel.
|
protected ALDParameterDescriptor |
paramDescriptor
Descriptor of the associated (operator) parameter.
|
private HashMap<String,Class> |
shortNames
Hashmap to remember short class names.
|
listenerList
Constructor and Description |
---|
AbstrOpClassPanel(Field field,
Class<?> cl,
Object obj,
ALDParameterDescriptor descr)
Default 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.
|
void |
itemStateChanged(ItemEvent e) |
Object |
readData(Field field,
Class<?> cl)
Function to read parameter values from GUI.
|
HashMap<ALDOpParameterDescriptor,String> |
setValue(Field field,
Class<?> cl,
ALDSwingComponent guiElement,
Object value) |
addValueChangeEventListener, fireALDSwingValueChangeEvent, removeValueChangeEventListener
private JPanel mainPanel
private ALDSwingComponentComboBox classSelection
private JButton configButton
private Collection<Class> availableClasses
private HashMap<Class,ALDOperatorDataIOSwing.OperatorConfigPanel> configWins
protected ALDParameterDescriptor paramDescriptor
public AbstrOpClassPanel(Field field, Class<?> cl, Object obj, ALDParameterDescriptor descr)
field
- Field of associated object.cl
- Class of associated object.obj
- Current value of object, maybe null.descr
- Optional descriptor for additional information.public HashMap<ALDOpParameterDescriptor,String> setValue(Field field, Class<?> cl, ALDSwingComponent guiElement, Object value) throws ALDDataIOProviderException
ALDDataIOProviderException
public Object readData(Field field, Class<?> cl) throws ALDDataIOProviderException
field
- Field of object.cl
- Class of object.ALDDataIOProviderException
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public void handleValueChangeEvent(ALDSwingValueChangeEvent event)
ALDSwingValueChangeListener
handleValueChangeEvent
in interface ALDSwingValueChangeListener
event
- Event to be handled.public JComponent getJComponent()
ALDSwingComponent
getJComponent
in class ALDSwingComponent
public void disableComponent()
ALDSwingComponent
disableComponent
in class ALDSwingComponent
public void enableComponent()
ALDSwingComponent
enableComponent
in class ALDSwingComponent
public void dispose()
ALDSwingComponent
dispose
in class ALDSwingComponent
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.