protected class ALDOperatorDataIOSwing.OperatorConfigWindow extends ALDSwingValueChangeReporter implements ActionListener, ALDSwingValueChangeListener
Modifier and Type | Field and Description |
---|---|
private ALDOperatorParameterPanel |
configPanel
Sub-panel containing operator parameters.
|
private ALDParameterDescriptor |
descriptor
Optional descriptor granting access to additional parameter information.
|
protected Parameter.ExpertMode |
displayMode
Mode for displaying parameters.
|
protected boolean |
editsAllowed
Flag to enable/disable editing.
|
private int |
frameWidth
Fixed width of window.
|
private JPanel |
mainPanel
Main panel of main frame.
|
private ALDOperator |
operator
Corresponding operator to be configured.
|
private Class<?> |
operatorClass
Class of the operator to be configured.
|
(package private) JFrame |
window
Main configuration window.
|
listenerList
Constructor and Description |
---|
OperatorConfigWindow(ALDOperator ops,
Class<?> cl,
ALDParameterDescriptor descr,
boolean editable)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
private void |
buildWindow()
Generates the window.
|
void |
disableComponent()
Disables the operator configuration panel.
|
void |
dispose()
Disposes all resources of this window and its sub-windows.
|
void |
enableComponent()
Enables the operator configuration panel.
|
void |
handleValueChangeEvent(ALDSwingValueChangeEvent event)
Method which is called on event occurence.
|
protected void |
initOperator()
Initializes a new operator object with default configuration.
|
protected boolean |
isOperatorNull()
Allows to check if window is linked to operator object or not.
|
protected ALDOperator |
setOperatorParameters(Field field,
Class<?> cl) |
void |
setVisible(boolean visible)
Displays the window and inits an operator object (if not done before).
|
protected HashMap<ALDOpParameterDescriptor,String> |
updateOperator(ALDOperator oper)
Update operator linked to window.
|
addValueChangeEventListener, fireALDSwingValueChangeEvent, removeValueChangeEventListener
JFrame window
private final int frameWidth
private JPanel mainPanel
private ALDOperatorParameterPanel configPanel
private ALDOperator operator
private Class<?> operatorClass
private ALDParameterDescriptor descriptor
protected Parameter.ExpertMode displayMode
protected boolean editsAllowed
public OperatorConfigWindow(ALDOperator ops, Class<?> cl, ALDParameterDescriptor descr, boolean editable)
ops
- Corresponding operator to configure.cl
- descr
- editable
- public void disableComponent()
public void enableComponent()
public void dispose()
protected ALDOperator setOperatorParameters(Field field, Class<?> cl) throws ALDOperatorException
ALDOperatorException
protected HashMap<ALDOpParameterDescriptor,String> updateOperator(ALDOperator oper) throws ALDDataIOProviderException
oper
- New operator to be linked to the window.ALDDataIOProviderException
protected boolean isOperatorNull()
protected void initOperator()
private void buildWindow()
public void setVisible(boolean visible)
visible
- public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void handleValueChangeEvent(ALDSwingValueChangeEvent event)
ALDSwingValueChangeListener
handleValueChangeEvent
in interface ALDSwingValueChangeListener
event
- Event to be handled.Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.