Class PGroupDialog

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

public class PGroupDialog extends JDialog implements ActionListener
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

    • PGroupDialog

      public PGroupDialog(String sharingType, Frame frame, String title, boolean modal, POwnershipPanel parent, int mode, Poid groupPoid)
      Constructs an PGroupDialog with the specified sharing type key and mode.
      Parameters:
      sharingType - String the sharing type
      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
    • PGroupDialog

      public PGroupDialog(String sharingType, POwnershipPanel parent, Frame frame, int mode, Poid groupPoid)
      Constructs an PGroupDialog with the specified sharing type key and mode.
      Parameters:
      sharingType - String the sharing type
      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
    • PGroupDialog

      public PGroupDialog(String sharingType, int mode, Poid groupPoid)
      Constructs an PGroupDialog with the specified sharing type key and mode.
      Parameters:
      sharingType - String the sharing type
      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
    • setModifiedData

      public void setModifiedData(ArrayList list)
      This method will be called from the PSharingAvailableDialog when ok action performed on that to inform sharing(s) (discount/sponsors) are modified.
      Parameters:
      list - ArrayList finalized sharings through PSharingAvailableDialog.
    • 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