public abstract class ParameterPanel extends javax.swing.JPanel implements WindowButtonConstants, TaskListener
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
NO_BUTTONS, OK_BUTTON, OK_CANCEL_APPLY_BUTTONS, OK_CANCEL_BUTTONS
Constructor and Description |
---|
ParameterPanel()
Creates a Triana parameter panel associated with the specified task.
|
Modifier and Type | Method and Description |
---|---|
void |
applyClicked()
Called when the apply button is clicked on the parameter window.
|
void |
cancelClicked()
Called when the cancel button is clicked on the parameter window.
|
abstract void |
dispose()
This method is called when the panel is finished with.
|
void |
disposePanel()
Disposes of the parameter panel, calls dispose on the subclassing panel
|
javax.swing.JMenuBar |
getMenuBar() |
java.lang.Object |
getParameter(java.lang.String name)
Returns the value of a parameter in the associated task
|
byte |
getPreferredButtons()
This method returns WindowButtonConstants.OK_CANCEL_APPLY_BUTTONS by default.
|
Task |
getTask() |
protected java.awt.Window |
getWindow()
Convinence method that returns the window the panel is in.
|
ParameterWindowInterface |
getWindowInterface() |
abstract void |
init()
This method is called when the task is set for this panel.
|
boolean |
isAlwaysOnTopPreferred()
This method returns true by default.
|
boolean |
isAutoCommit() |
boolean |
isAutoCommitByDefault()
This method returns false by default.
|
boolean |
isAutoCommitVisible()
This method returns true by default.
|
boolean |
isParameterName(java.lang.String name)
Returns true if a value is set for a parameter in the associated task
|
void |
nodeAdded(TaskNodeEvent event)
Called when a data input node is added.
|
void |
nodeRemoved(TaskNodeEvent event)
Called before a data input node is removed.
|
void |
okClicked()
Called when the ok button is clicked on the parameter window.
|
void |
parameterUpdate(java.lang.String paramname,
java.lang.Object value)
This method is called when a parameter in the associated task is updated.
|
void |
parameterUpdated(ParameterUpdateEvent event)
Called when the value of a parameter is changed, including when a parameter is removed.
|
void |
removeParameter(java.lang.String name)
Removes a paremeter in the associated task.
|
abstract void |
reset()
This method is called when the panel is reset or cancelled.
|
void |
setMenuBar(javax.swing.JMenuBar menubar)
Sets the menu bar for this component
|
void |
setParameter(java.lang.String name,
java.lang.Object value)
Sets a paremeter in the associated task to the specified value.
|
void |
setTask(Task task) |
void |
setWindowInterface(ParameterWindowInterface comp)
Sets the component that determines whether parameter changes are committed automatically
|
void |
taskDisposed(TaskDisposedEvent event)
Called before the task is disposed
|
void |
taskPropertyUpdate(TaskPropertyEvent event)
Called when the core properties of a task change i.e.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public ParameterPanel()
public void setTask(Task task)
public Task getTask()
public void setParameter(java.lang.String name, java.lang.Object value)
name
- the name of the parameter to be setvalue
- the value the parameter is set topublic void removeParameter(java.lang.String name)
name
- the name of the parameter to be removedpublic java.lang.Object getParameter(java.lang.String name)
name
- the name of the parameter to returnpublic boolean isParameterName(java.lang.String name)
name
- the name of the parameterpublic byte getPreferredButtons()
public boolean isAlwaysOnTopPreferred()
public boolean isAutoCommitVisible()
public boolean isAutoCommitByDefault()
public void setWindowInterface(ParameterWindowInterface comp)
public ParameterWindowInterface getWindowInterface()
public boolean isAutoCommit()
public abstract void init()
public abstract void reset()
public abstract void dispose()
public void disposePanel()
public void parameterUpdate(java.lang.String paramname, java.lang.Object value)
public void okClicked()
public void cancelClicked()
public void applyClicked()
protected java.awt.Window getWindow()
public javax.swing.JMenuBar getMenuBar()
public void setMenuBar(javax.swing.JMenuBar menubar)
public void taskPropertyUpdate(TaskPropertyEvent event)
taskPropertyUpdate
in interface TaskListener
public void parameterUpdated(ParameterUpdateEvent event)
parameterUpdated
in interface TaskListener
public void nodeRemoved(TaskNodeEvent event)
nodeRemoved
in interface TaskListener
public void nodeAdded(TaskNodeEvent event)
nodeAdded
in interface TaskListener
public void taskDisposed(TaskDisposedEvent event)
taskDisposed
in interface TaskListener