public class PanelHolder extends ParameterPanel
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponentaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTNO_BUTTONS, OK_BUTTON, OK_CANCEL_APPLY_BUTTONS, OK_CANCEL_BUTTONS| Constructor and Description |
|---|
PanelHolder()
Creates a Triana parameter panel associated with the specified task.
|
PanelHolder(java.awt.Component panel) |
| 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.
|
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() |
javax.swing.JPanel |
getPanel() |
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() |
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.
|
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, updateUIaddAncestorListener, 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, updateadd, 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, validateTreeaction, 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, transferFocusUpCyclepublic PanelHolder(java.awt.Component panel)
public PanelHolder()
public javax.swing.JPanel getPanel()
public void setTask(Task task)
setTask in class ParameterPanelpublic Task getTask()
getTask in class ParameterPanelpublic void setParameter(java.lang.String name,
java.lang.Object value)
setParameter in class ParameterPanelname - the name of the parameter to be setvalue - the value the parameter is set topublic void removeParameter(java.lang.String name)
removeParameter in class ParameterPanelname - the name of the parameter to be removedpublic java.lang.Object getParameter(java.lang.String name)
getParameter in class ParameterPanelname - the name of the parameter to returnpublic boolean isParameterName(java.lang.String name)
isParameterName in class ParameterPanelname - the name of the parameterpublic byte getPreferredButtons()
getPreferredButtons in class ParameterPanelpublic boolean isAlwaysOnTopPreferred()
isAlwaysOnTopPreferred in class ParameterPanelpublic boolean isAutoCommitVisible()
isAutoCommitVisible in class ParameterPanelpublic boolean isAutoCommitByDefault()
isAutoCommitByDefault in class ParameterPanelpublic void setWindowInterface(ParameterWindowInterface comp)
setWindowInterface in class ParameterPanelpublic ParameterWindowInterface getWindowInterface()
getWindowInterface in class ParameterPanelpublic boolean isAutoCommit()
isAutoCommit in class ParameterPanelpublic void init()
init in class ParameterPanelpublic void reset()
reset in class ParameterPanelpublic void dispose()
dispose in class ParameterPanelpublic void disposePanel()
disposePanel in class ParameterPanelpublic void parameterUpdate(java.lang.String paramname,
java.lang.Object value)
parameterUpdate in class ParameterPanelpublic void okClicked()
okClicked in class ParameterPanelpublic void cancelClicked()
cancelClicked in class ParameterPanelpublic void applyClicked()
applyClicked in class ParameterPanelprotected java.awt.Window getWindow()
getWindow in class ParameterPanelpublic javax.swing.JMenuBar getMenuBar()
getMenuBar in class ParameterPanelpublic void setMenuBar(javax.swing.JMenuBar menubar)
setMenuBar in class ParameterPanelpublic void taskPropertyUpdate(TaskPropertyEvent event)
taskPropertyUpdate in interface TaskListenertaskPropertyUpdate in class ParameterPanelpublic void parameterUpdated(ParameterUpdateEvent event)
parameterUpdated in interface TaskListenerparameterUpdated in class ParameterPanelpublic void nodeRemoved(TaskNodeEvent event)
nodeRemoved in interface TaskListenernodeRemoved in class ParameterPanelpublic void nodeAdded(TaskNodeEvent event)
nodeAdded in interface TaskListenernodeAdded in class ParameterPanelpublic void taskDisposed(TaskDisposedEvent event)
taskDisposed in interface TaskListenertaskDisposed in class ParameterPanel