Class PAvailableServicesPanel

All Implemented Interfaces:
PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ContainerListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class PAvailableServicesPanel extends PIACustomizablePanel
This panel class will show all the available services in the system. This panel is used while adding new services and also at the time of modification of associated with the global CSG.
Author:
Madhu BS
See Also:
  • Field Details

  • Constructor Details

    • PAvailableServicesPanel

      public PAvailableServicesPanel(String sharingType, int type)
      Constructor for PAvailableServicePanel
      Parameters:
      sharingType - String indicates the sharing type viz., Charge Sharing, Discount Sharing, etc.
      type - int indicates the mode. The mode has to be either PAvailableServicesPanel.ADD_MEMBERS_MODE or PAvailableServicesPanel.MODIFY_SERVICE_MODE.
  • Method Details

    • recycle

      public void recycle()
      Intializes the component to its original state.
    • save

      public boolean save()
      Calling this method will save the changes made.
      Returns:
      boolean true if the updatation is sucessful else false.
    • setData

      public void setData(Poid groupPoid)
      Calling this method will initializes the services associated with the group.
      Parameters:
      groupPoid - Poid, the poid of the group.
    • isChangesNeedsTobeSaved

      public boolean isChangesNeedsTobeSaved()
      Indicates if there are any unsaved changes exists.
      Returns:
      boolean, true means unsaved changes exists else false.