Class PGroupUnitPanel

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

public class PGroupUnitPanel extends JPanel implements FocusListener, ItemListener, ActionListener
This Panel will contain the group owner info. The user can customize this Panel to add additional information. This has the capability to hide the Bill Unit and Payment method info if following properties set to false.
See Also:
  • Constructor Details

    • PGroupUnitPanel

      public PGroupUnitPanel(String sharingType, PGroupDialog parent)
      Constructs an PGroupUnitPanel with the specified sharing type key.
      Parameters:
      sharingType - String the sharing type key
      parent - PGroupDialog the dialog who owns the current panel
  • Method Details

    • setCustomizedPanel

      protected final void setCustomizedPanel(JPanel panel)
      This method is useful to customize this panel. User can add his own panel panel to end of this panel.
      Parameters:
      panel - JPanel the customizable panel to be appended at the end of this panel.
    • 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
    • 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
    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      Invoked when an action occurs.
      Specified by:
      actionPerformed in interface ActionListener