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, removeValueChangeEventListenerprivate 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()
ALDSwingComponentgetJComponent in class ALDSwingComponentpublic 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)
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.