Class NodeConfigGUI
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.nt.udc.admin.client.gui.nodegui.NodeConfigGUI
- All Implemented Interfaces:
NodeConfigGUI_Interface
,DCNodeConfigGUIIfc
,ActionListener
,ImageObserver
,MenuContainer
,Serializable
,EventListener
,Accessible
- Direct Known Subclasses:
EINodeConfigGUI
,OINodeConfigGUI
,ProcessorNodeConfigGUI
public abstract class NodeConfigGUI
extends JPanel
implements ActionListener, DCNodeConfigGUIIfc, NodeConfigGUI_Interface
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JCheckBox
Used to determine whether the raw data for this node (not NAR data) should be backed up periodically.protected static String
Label string forbackupBox
protected NodeDestinationsGUI
protected com.nt.udc.admin.NodeConfigData
protected boolean
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent event) void
addDestPanel
(NodeDestinationsGUI destgui) protected void
protected void
boolean
Indicates that all input fields in this NodeConfigGUI contain valid dataprotected void
Hides the "Backup Node Data" checkbox in the "General" tabprotected void
Displays the "Backup Node Data" checkbox in the "General" tabvoid
Allows Node specific panels to be added to the NodeConfigurationGUI's tabbed pane.protected abstract void
boolean
Indicates whether the user has checked the "Backup Node Data" checkboxReturns config action object which was initialized during node creation.Populates the NodeConfig object with values from the "General" tab panel of the GUI.final Vector
Returns a Vector of NodeInfo objects representing the nodes that will receive output from the node being configured by this GUI.protected com.nt.udc.admin.NodeConfigData
Returns the existing node destinations GUIfinal String
Returns the node identifier for the node that is being configured by this DCNodeConfigGUIIfc object.protected abstract void
getNodeSpecificConfigData
(com.nt.udc.admin.NodeConfigData node_data) void
getNodeSpecificConfigData
(DCNodeConfigData node_data) Populates the NodeConfig object with node specific values from the GUI.boolean
Indicates whether the node can send output to other nodes.boolean
Check for the additional configurations of the node which need to be initialized during node creation.protected JPanel
protected JTextField
makeTextField
(String contents, int size, boolean editable, String tool_tip) protected JTextField
makeTextField
(String contents, String tool_tip) void
setBackupValue
(boolean value) Sets the value of the "Backup Node Data" checkboxfinal void
setDestinations
(Vector inTargets) Accepts a Vector of NodeInfo objects representing one or more nodes that the user has selected as a destination for this node's output.final void
Sets the node identifier for the node that is being configured by this DCNodeConfigGUIIfc object.final void
setNodeInfo
(com.nt.udc.admin.NodeInfo ni) Sets the current node infoMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
Methods inherited from class javax.swing.JComponent
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, hide, 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
Methods inherited from class java.awt.Container
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
Methods inherited from class java.awt.Component
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, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
destGUI
-
backupBox
Used to determine whether the raw data for this node (not NAR data) should be backed up periodically. -
backupLabel
Label string forbackupBox
-
nodeConfig
protected com.nt.udc.admin.NodeConfigData nodeConfig -
nodeFieldsDirty
protected boolean nodeFieldsDirty
-
-
Constructor Details
-
NodeConfigGUI
public NodeConfigGUI(com.nt.udc.admin.NodeConfigData ncd)
-
-
Method Details
-
allFieldsValid
public boolean allFieldsValid()Description copied from interface:DCNodeConfigGUIIfc
Indicates that all input fields in this NodeConfigGUI contain valid data- Specified by:
allFieldsValid
in interfaceDCNodeConfigGUIIfc
- Specified by:
allFieldsValid
in interfaceNodeConfigGUI_Interface
-
isAnyConfigAction
public boolean isAnyConfigAction()Description copied from interface:DCNodeConfigGUIIfc
Check for the additional configurations of the node which need to be initialized during node creation.- Specified by:
isAnyConfigAction
in interfaceDCNodeConfigGUIIfc
-
getConfigActionObject
Description copied from interface:DCNodeConfigGUIIfc
Returns config action object which was initialized during node creation.- Specified by:
getConfigActionObject
in interfaceDCNodeConfigGUIIfc
-
getDCNodeConfigData
Description copied from interface:DCNodeConfigGUIIfc
Populates the NodeConfig object with values from the "General" tab panel of the GUI.- Specified by:
getDCNodeConfigData
in interfaceDCNodeConfigGUIIfc
-
getNodeConfigData
protected com.nt.udc.admin.NodeConfigData getNodeConfigData() -
getNodeSpecificConfigData
protected abstract void getNodeSpecificConfigData(com.nt.udc.admin.NodeConfigData node_data) -
getNodeSpecificConfigData
Description copied from interface:DCNodeConfigGUIIfc
Populates the NodeConfig object with node specific values from the GUI.- Specified by:
getNodeSpecificConfigData
in interfaceDCNodeConfigGUIIfc
-
extendGUI
protected abstract void extendGUI() -
extendConfigGUI
public void extendConfigGUI()Description copied from interface:DCNodeConfigGUIIfc
Allows Node specific panels to be added to the NodeConfigurationGUI's tabbed pane.- Specified by:
extendConfigGUI
in interfaceDCNodeConfigGUIIfc
-
addGUIComponents
protected void addGUIComponents() -
addPanel
-
addDestPanel
-
MakeNodePanel
-
makeTextField
-
makeTextField
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
hasDestinations
public boolean hasDestinations()Indicates whether the node can send output to other nodes.
true
for EI and Processor nodes. Default returnsfalse
.- Specified by:
hasDestinations
in interfaceDCNodeConfigGUIIfc
- Returns:
false
-
getDestinations
Returns a Vector of NodeInfo objects representing the nodes that will receive output from the node being configured by this GUI.- Specified by:
getDestinations
in interfaceDCNodeConfigGUIIfc
- Returns:
- Vector of NodeInfo objects
-
setDestinations
Description copied from interface:DCNodeConfigGUIIfc
Accepts a Vector of NodeInfo objects representing one or more nodes that the user has selected as a destination for this node's output. (That is, the node that is being configured by this DCNodeConfigGUIIfc object.)
This method will only be called ifhasDestinations()
returnstrue
.- Specified by:
setDestinations
in interfaceDCNodeConfigGUIIfc
- Parameters:
inTargets
- Vector of NodeInfo objects
-
getNodeDestinationsGUI
Description copied from interface:DCNodeConfigGUIIfc
Returns the existing node destinations GUI- Specified by:
getNodeDestinationsGUI
in interfaceDCNodeConfigGUIIfc
-
getNodeId
Description copied from interface:DCNodeConfigGUIIfc
Returns the node identifier for the node that is being configured by this DCNodeConfigGUIIfc object.- Specified by:
getNodeId
in interfaceDCNodeConfigGUIIfc
- Returns:
null
, if nodeId has not been set usingsetNodeId()
-
setNodeId
Description copied from interface:DCNodeConfigGUIIfc
Sets the node identifier for the node that is being configured by this DCNodeConfigGUIIfc object.- Specified by:
setNodeId
in interfaceDCNodeConfigGUIIfc
- Parameters:
inNodeId
- String representing the node id
-
enableBackupCheckbox
protected void enableBackupCheckbox()Displays the "Backup Node Data" checkbox in the "General" tab -
disableBackupCheckbox
protected void disableBackupCheckbox()Hides the "Backup Node Data" checkbox in the "General" tab -
setNodeInfo
public final void setNodeInfo(com.nt.udc.admin.NodeInfo ni) Description copied from interface:DCNodeConfigGUIIfc
Sets the current node info- Specified by:
setNodeInfo
in interfaceDCNodeConfigGUIIfc
- Parameters:
ni
- Current NodeInfo object
-
getBackupValue
public boolean getBackupValue()Indicates whether the user has checked the "Backup Node Data" checkbox -
setBackupValue
public void setBackupValue(boolean value) Sets the value of the "Backup Node Data" checkbox
-