Class PCollectionsGroupDialog

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

public class PCollectionsGroupDialog extends JDialog implements ActionListener, FocusListener
Builds the Group owner dialog
See Also:
  • Field Details

  • Constructor Details

    • PCollectionsGroupDialog

      public PCollectionsGroupDialog(Frame frame, String title, boolean modal, POwnershipPanel parent, int mode, Poid groupPoid)
      Constructs an PCollectionGroupDialog 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
    • PCollectionsGroupDialog

      public PCollectionsGroupDialog(POwnershipPanel parent, Frame frame, int mode, Poid groupPoid)
      Constructs an PCollectionGroupDialog 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
    • PCollectionsGroupDialog

      public PCollectionsGroupDialog(int mode, Poid groupPoid)
      Constructs an PCollectionGroupDialog 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
    • 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