Class GSMServicePanel

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

public class GSMServicePanel extends PTelcoServicePanel
This is the Telco GSM panel for /service/telco/GSM objects in the Customer Center. By default, a supplementary services panel, the devices panels, and an extra panel showing the service attributes will be displayed on this panel. The user can write his/her own device panels and the service attributes panel to plug in this panel.
Author:
Javeed
See Also:
  • Constructor Details

    • GSMServicePanel

      public GSMServicePanel()
      Creates a new extended service panel for Telco services. Layout the panel with default components -- a supplementary services panel and a number device panel.
  • Method Details

    • init

      protected void init()
      Protected method to lay out the UI according to the service type. This method is called internally by method PTelcoServicePanel.setType(java.lang.String), to retrieve display attributes and calls method jbInit() to lay out the panel. Overwrite to implement your own initialization logic.
      Overrides:
      init in class PTelcoServicePanel
    • getServicePropertyKey

      protected String getServicePropertyKey()
      Gets the property suffix for this telco service.
      Overrides:
      getServicePropertyKey in class PTelcoServicePanel
      Returns:
      The default implementation returns the part of the of the service name after "/service/telco/". For instance, for "/service/telco/gsm/telepony", return "gsm.telephony".
    • loadDisplayAttributes

      protected void loadDisplayAttributes()
      Load display attributes from property files. The display attributes include whether to show the supplementarty service panel or not, whether to show the extended service attributes or not, and the ordered list of devices to show.
      Overrides:
      loadDisplayAttributes in class PTelcoServicePanel
    • getDeviceSequence

      protected List getDeviceSequence()
      Method to retrieve the order of devices this service panel will display. The default implementation reads the property file to get the device display order and returns it. Overwrite to return the list of devices your custom service panel will display.
      Overrides:
      getDeviceSequence in class PTelcoServicePanel
      Returns:
      A ordered list of devices this service panel will display.
    • localCollectData

      public void localCollectData(PCollectDataEvent event)
      Collects service information changes, as well as updates to the device/service associations.
      Overrides:
      localCollectData in class PTelcoServicePanel
      Parameters:
      event - The collect data event