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.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JCheckBoxUsed to determine whether the raw data for this node (not NAR data) should be backed up periodically.protected static StringLabel string forbackupBoxprotected NodeDestinationsGUIprotected com.nt.udc.admin.NodeConfigDataprotected booleanFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) voidaddDestPanel(NodeDestinationsGUI destgui) protected voidprotected voidbooleanIndicates that all input fields in this NodeConfigGUI contain valid dataprotected voidHides the "Backup Node Data" checkbox in the "General" tabprotected voidDisplays the "Backup Node Data" checkbox in the "General" tabvoidAllows Node specific panels to be added to the NodeConfigurationGUI's tabbed pane.protected abstract voidbooleanIndicates 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 VectorReturns 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.NodeConfigDataReturns the existing node destinations GUIfinal StringReturns the node identifier for the node that is being configured by this DCNodeConfigGUIIfc object.protected abstract voidgetNodeSpecificConfigData(com.nt.udc.admin.NodeConfigData node_data) voidgetNodeSpecificConfigData(DCNodeConfigData node_data) Populates the NodeConfig object with node specific values from the GUI.booleanIndicates whether the node can send output to other nodes.booleanCheck for the additional configurations of the node which need to be initialized during node creation.protected JPanelprotected JTextFieldmakeTextField(String contents, int size, boolean editable, String tool_tip) protected JTextFieldmakeTextField(String contents, String tool_tip) voidsetBackupValue(boolean value) Sets the value of the "Backup Node Data" checkboxfinal voidsetDestinations(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 voidSets the node identifier for the node that is being configured by this DCNodeConfigGUIIfc object.final voidsetNodeInfo(com.nt.udc.admin.NodeInfo ni) Sets the current node infoMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods 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, updateMethods 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, validateTreeMethods 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:DCNodeConfigGUIIfcIndicates that all input fields in this NodeConfigGUI contain valid data- Specified by:
allFieldsValidin interfaceDCNodeConfigGUIIfc- Specified by:
allFieldsValidin interfaceNodeConfigGUI_Interface
-
isAnyConfigAction
public boolean isAnyConfigAction()Description copied from interface:DCNodeConfigGUIIfcCheck for the additional configurations of the node which need to be initialized during node creation.- Specified by:
isAnyConfigActionin interfaceDCNodeConfigGUIIfc
-
getConfigActionObject
Description copied from interface:DCNodeConfigGUIIfcReturns config action object which was initialized during node creation.- Specified by:
getConfigActionObjectin interfaceDCNodeConfigGUIIfc
-
getDCNodeConfigData
Description copied from interface:DCNodeConfigGUIIfcPopulates the NodeConfig object with values from the "General" tab panel of the GUI.- Specified by:
getDCNodeConfigDatain 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:DCNodeConfigGUIIfcPopulates the NodeConfig object with node specific values from the GUI.- Specified by:
getNodeSpecificConfigDatain interfaceDCNodeConfigGUIIfc
-
extendGUI
protected abstract void extendGUI() -
extendConfigGUI
public void extendConfigGUI()Description copied from interface:DCNodeConfigGUIIfcAllows Node specific panels to be added to the NodeConfigurationGUI's tabbed pane.- Specified by:
extendConfigGUIin interfaceDCNodeConfigGUIIfc
-
addGUIComponents
protected void addGUIComponents() -
addPanel
-
addDestPanel
-
MakeNodePanel
-
makeTextField
-
makeTextField
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
hasDestinations
public boolean hasDestinations()Indicates whether the node can send output to other nodes.
truefor EI and Processor nodes. Default returnsfalse.- Specified by:
hasDestinationsin 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:
getDestinationsin interfaceDCNodeConfigGUIIfc- Returns:
- Vector of NodeInfo objects
-
setDestinations
Description copied from interface:DCNodeConfigGUIIfcAccepts 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:
setDestinationsin interfaceDCNodeConfigGUIIfc- Parameters:
inTargets- Vector of NodeInfo objects
-
getNodeDestinationsGUI
Description copied from interface:DCNodeConfigGUIIfcReturns the existing node destinations GUI- Specified by:
getNodeDestinationsGUIin interfaceDCNodeConfigGUIIfc
-
getNodeId
Description copied from interface:DCNodeConfigGUIIfcReturns the node identifier for the node that is being configured by this DCNodeConfigGUIIfc object.- Specified by:
getNodeIdin interfaceDCNodeConfigGUIIfc- Returns:
null, if nodeId has not been set usingsetNodeId()
-
setNodeId
Description copied from interface:DCNodeConfigGUIIfcSets the node identifier for the node that is being configured by this DCNodeConfigGUIIfc object.- Specified by:
setNodeIdin 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:DCNodeConfigGUIIfcSets the current node info- Specified by:
setNodeInfoin 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
-