private class ALDNativeArray1DDataIOSwing.ArrayConfigPanel extends ALDSwingComponent implements ALDSwingValueChangeListener, ActionListener
This button has an array configuration window attached to it where specific data is stored and accessable.
Modifier and Type | Field and Description |
---|---|
private Class<?> |
arrayClass
Class of array to configure.
|
private ALDParameterDescriptor |
arrayDescriptor
Descriptor of parameter linked to array.
|
private Field |
arrayField
Parameter field of array to configure.
|
private JButton |
confButton
Button to create and configure array.
|
private JPanel |
configPanel
GUI component associated with this Swing component.
|
private ALDNativeArray1DDataIOSwing.ArrayConfigWindow |
confWin
Array configuration window.
|
private JButton |
resetButton
Button to reset array.
|
listenerList
Constructor and Description |
---|
ArrayConfigPanel(Field field,
Class<?> cl,
Object obj,
ALDParameterDescriptor descr)
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.
|
Object |
readData(Field field,
Class<?> cl)
Gets the data from the configuration window.
|
void |
setValue(Field field,
Class<?> cl,
Object value)
Gets the data from the configuration window.
|
addValueChangeEventListener, fireALDSwingValueChangeEvent, removeValueChangeEventListener
private JPanel configPanel
private JButton confButton
private JButton resetButton
private ALDNativeArray1DDataIOSwing.ArrayConfigWindow confWin
private Class<?> arrayClass
private Field arrayField
private ALDParameterDescriptor arrayDescriptor
public ArrayConfigPanel(Field field, Class<?> cl, Object obj, ALDParameterDescriptor descr)
field
- Field of collection.cl
- Class of collection.obj
- Default object.descr
- Optional descriptor for additional information.public JComponent getJComponent()
ALDSwingComponent
getJComponent
in class ALDSwingComponent
public void setValue(Field field, Class<?> cl, Object value)
field
- Field of collection.cl
- Class of collection.value
- Default object.public Object readData(Field field, Class<?> cl) throws ALDDataIOProviderException
field
- Field of collection.cl
- Class of collection.ALDDataIOProviderException
- Thrown in case of read failures.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.