Class SetDetailsPanel

All Implemented Interfaces:
ActionListener, ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, DocumentListener

public class SetDetailsPanel extends JPanel implements ActionListener, DocumentListener, ItemListener
Panel that displays information about a GroupSet.
See Also:
  • Field Details

    • panelIsDirty

      protected boolean panelIsDirty
  • Constructor Details

    • SetDetailsPanel

      public SetDetailsPanel()
      Default constructor.
    • SetDetailsPanel

      public SetDetailsPanel(com.nt.udc.admin.GroupSet thisSet)
      Displays the panel with information from the given GroupSet.
      Parameters:
      thisSet - GroupSet this panel should display
  • Method Details

    • getSet

      public static com.nt.udc.admin.GroupSet getSet()
      Returns the GroupSet that the panel is currently displaying.
      Returns:
      GroupSet this panel is using to display information.
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Responds to actions from the updateButton.
      Specified by:
      actionPerformed in interface ActionListener
    • itemStateChanged

      public void itemStateChanged(ItemEvent event)
      Responds to changes in the "Exclusive" box
      Specified by:
      itemStateChanged in interface ItemListener
    • insertUpdate

      public void insertUpdate(DocumentEvent event)
      Responds to changes in the "Name :" text field.
      Specified by:
      insertUpdate in interface DocumentListener
    • removeUpdate

      public void removeUpdate(DocumentEvent event)
      Responds to changes in the "Name :" text field.
      Specified by:
      removeUpdate in interface DocumentListener
    • changedUpdate

      public void changedUpdate(DocumentEvent event)
      Responds to changes in the "Name :" text field.
      Specified by:
      changedUpdate in interface DocumentListener
    • isDirty

      public boolean isDirty()
      Indicates whether the panel's information has changed.
      Returns:
      boolean value indicating whether the information in this panel has changed
    • setGroupSet

      public void setGroupSet(com.nt.udc.admin.GroupSet gs)
      Sets the GroupSet that this panel should display.
      Parameters:
      gs - GroupSet to display
    • updateData

      public void updateData()
      Updates the current GroupSet's information with the information contained in nameField and exclusiveBox.
    • addGUIComponents

      protected void addGUIComponents()
      Lays out the panel.