Class NUMPanel

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

public class NUMPanel extends PTelcoDevicesBase
This is the extended device support panel for gsm number device (/device/num).
See Also:
  • Constructor Details

    • NUMPanel

      public NUMPanel()
      Creates a Number panel.
    • NUMPanel

      public NUMPanel(boolean showBorder)
      Creates a Number details panel with or without border.
      Parameters:
      showBorder - show panel border if true, hide if false
  • Method Details

    • setModelHandle

      public void setModelHandle(PModelHandle pm) throws RemoteException
      Formats number according to the rule defined by Number Administrator.
      Specified by:
      setModelHandle in interface PComponent
      Overrides:
      setModelHandle in class PTelcoDevicesBase
      Parameters:
      pm - The model handle this panel is going to display.
      Throws:
      RemoteException
    • resetToDefault

      public void resetToDefault()
      Change the header when set to default
      Specified by:
      resetToDefault in interface PComponentAttribute
      Overrides:
      resetToDefault in class PTelcoDevicesBase
    • setError

      public void setError(boolean isError)
      Special handling of UI when error is set
      Specified by:
      setError in interface PComponentAttribute
      Overrides:
      setError in class PIACustomizablePanel
      Parameters:
      isError - if true, puts the component in ERROR state
    • setClean

      public void setClean()
      Special handling of UI when error is cleaned
      Specified by:
      setClean in interface PComponentAttribute
      Overrides:
      setClean in class PIACustomizablePanel
    • setDefault

      public void setDefault()
      Special handling of UI when the device currently displayed is specified as the default service.
      Specified by:
      setDefault in interface PComponentAttribute
      Overrides:
      setDefault in class PTelcoDevicesBase
    • setDescriptionFocus

      public void setDescriptionFocus()
      After a number is selected, we set the focus to the description text field.
    • conatinsPrimaryNumber

      public boolean conatinsPrimaryNumber()
      Returns true if number is selected as primary number, else false.
    • setPrimaryNumber

      public void setPrimaryNumber(boolean value)
      Returns true if number is selected as primary number, else false.
    • enableDescriptionEditing

      public void enableDescriptionEditing(boolean enable)
      Enables or disables the description field editing.
      Parameters:
      enable - true to enable or false to disable
    • formatID

      public String formatID(String input)
      Formats the telephone number. If there is an error during the formating, the original string is returned.
      Overrides:
      formatID in class PTelcoDevicesBase
      Parameters:
      input - the number as a string to be formated
      Returns:
      the formated number as a string.
    • addNotify

      public void addNotify()
      put your documentation comment here
      Overrides:
      addNotify in class JComponent
    • setCustomData

      public void setCustomData(PIACustomizablePanel panel)
      Add custom details panel