Class 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:
  • Field Details

    • destGUI

      protected NodeDestinationsGUI destGUI
    • backupBox

      protected JCheckBox backupBox
      Used to determine whether the raw data for this node (not NAR data) should be backed up periodically.
    • backupLabel

      protected static String backupLabel
      Label string for backupBox
    • 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 interface DCNodeConfigGUIIfc
      Specified by:
      allFieldsValid in interface NodeConfigGUI_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 interface DCNodeConfigGUIIfc
    • getConfigActionObject

      public ConfigActionIfc getConfigActionObject()
      Description copied from interface: DCNodeConfigGUIIfc
      Returns config action object which was initialized during node creation.
      Specified by:
      getConfigActionObject in interface DCNodeConfigGUIIfc
    • getDCNodeConfigData

      public DCNodeConfigData getDCNodeConfigData()
      Description copied from interface: DCNodeConfigGUIIfc
      Populates the NodeConfig object with values from the "General" tab panel of the GUI.
      Specified by:
      getDCNodeConfigData in interface DCNodeConfigGUIIfc
    • getNodeConfigData

      protected com.nt.udc.admin.NodeConfigData getNodeConfigData()
    • getNodeSpecificConfigData

      protected abstract void getNodeSpecificConfigData(com.nt.udc.admin.NodeConfigData node_data)
    • getNodeSpecificConfigData

      public void getNodeSpecificConfigData(DCNodeConfigData node_data)
      Description copied from interface: DCNodeConfigGUIIfc
      Populates the NodeConfig object with node specific values from the GUI.
      Specified by:
      getNodeSpecificConfigData in interface DCNodeConfigGUIIfc
    • 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 interface DCNodeConfigGUIIfc
    • addGUIComponents

      protected void addGUIComponents()
    • addPanel

      protected void addPanel(String label, JPanel new_panel)
    • addDestPanel

      public void addDestPanel(NodeDestinationsGUI destgui)
    • MakeNodePanel

      protected JPanel MakeNodePanel()
    • makeTextField

      protected JTextField makeTextField(String contents, String tool_tip)
    • makeTextField

      protected JTextField makeTextField(String contents, int size, boolean editable, String tool_tip)
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
    • hasDestinations

      public boolean hasDestinations()
      Indicates whether the node can send output to other nodes.
      true for EI and Processor nodes. Default returns false.
      Specified by:
      hasDestinations in interface DCNodeConfigGUIIfc
      Returns:
      false
    • getDestinations

      public final Vector 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 interface DCNodeConfigGUIIfc
      Returns:
      Vector of NodeInfo objects
    • setDestinations

      public final void setDestinations(Vector inTargets)
      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 if hasDestinations() returns true.
      Specified by:
      setDestinations in interface DCNodeConfigGUIIfc
      Parameters:
      inTargets - Vector of NodeInfo objects
    • getNodeDestinationsGUI

      public NodeDestinationsGUI getNodeDestinationsGUI()
      Description copied from interface: DCNodeConfigGUIIfc
      Returns the existing node destinations GUI
      Specified by:
      getNodeDestinationsGUI in interface DCNodeConfigGUIIfc
    • getNodeId

      public final String 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 interface DCNodeConfigGUIIfc
      Returns:
      null, if nodeId has not been set using setNodeId()
    • setNodeId

      public final void setNodeId(String inNodeId)
      Description copied from interface: DCNodeConfigGUIIfc
      Sets the node identifier for the node that is being configured by this DCNodeConfigGUIIfc object.
      Specified by:
      setNodeId in interface DCNodeConfigGUIIfc
      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 interface DCNodeConfigGUIIfc
      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