Class PProfileGroupDialog

All Implemented Interfaces:
ActionListener, FocusListener, ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class PProfileGroupDialog extends JDialog implements ActionListener, ItemListener, FocusListener
This dialog is used for creating, editing and viewing a group. The context passed to the constructor determines in which mode (creating, editing or viewing) this dialog is to be opened.
See Also:
  • Field Details

  • Constructor Details

    • PProfileGroupDialog

      public PProfileGroupDialog(Frame frame, String title, boolean modal, POwnershipPanel parent, int mode, Poid groupPoid)
      Constructs an PProfileGroupDialog with the specified sharing type key and mode.
      Parameters:
      frame - Frame the CustomerCenter frame
      title - String the dialog title
      modal - boolean weather the dialog is modal or not
      parent - POwnershipPanel the panel from where this dialog instantiated
      mode - int the dialog mode in which it is going to view
      groupPoid - Poid the group for which this dialog opens
    • PProfileGroupDialog

      public PProfileGroupDialog(POwnershipPanel parent, Frame frame, int mode, Poid groupPoid)
      Constructs an PProfileGroupDialog with the specified sharing type key and mode.
      Parameters:
      parent - POwnershipPanel the panel that instantiated this dialog
      frame - Frame the Customer Center frame
      mode - int the mode in which this dialog is going to construct
      groupPoid - Poid the group for which this dialog is going to give functionality
    • PProfileGroupDialog

      public PProfileGroupDialog(int mode, Poid groupPoid)
      Constructs an PProfileGroupDialog with the specified sharing type key and mode.
      Parameters:
      mode - int the mode in which this dialog is going to construct
      groupPoid - Poid the group for which this dialog is going to provide functionality
  • Method Details

    • getTitle

      public String getTitle()
      Gets the title of the dialog. The title is displayed in the dialog's border.
      Overrides:
      getTitle in class Dialog
      Returns:
      the title of this dialog window. The title may be null.
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Invoked when an action occurs.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e - ActionEvent
    • getGroupData

      public PGroupData getGroupData()
      Returns PGroupData instance of the current group.
      Returns:
      PGroupData
    • isModeCreation

      public boolean isModeCreation()
      Returns true if the dialog is in creation mode otherwise false.
      Returns:
      boolean
    • isModeEditing

      public boolean isModeEditing()
      Returns true if the dialog is in editing mode otherwise false.
      Returns:
      boolean
    • isModeView

      public boolean isModeView()
      Returns true if the dialog is in view mode otherwise false.
      Returns:
      boolean
    • itemStateChanged

      public void itemStateChanged(ItemEvent ie)
      Invoked when an item has been selected or deselected by the user. The code written for this method performs the operations that need to occur when an item is selected (or deselected).
      Specified by:
      itemStateChanged in interface ItemListener
    • focusLost

      public void focusLost(FocusEvent e)
      Invoked when a component loses the keyboard focus.
      Specified by:
      focusLost in interface FocusListener
    • focusGained

      public void focusGained(FocusEvent e)
      Invoked when a component gains the keyboard focus. do nothing.
      Specified by:
      focusGained in interface FocusListener