Class PNumberPanel

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

public class PNumberPanel extends PIAExtendedDevicesBase
This is the extended device support panel for Number device (/device/num).
See Also:
  • Constructor Details

    • PNumberPanel

      public PNumberPanel()
      Creates a Number panel with border.
    • PNumberPanel

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

    • formatID

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

      public void addNotify()
      Overrides:
      addNotify in class JComponent
    • 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 PIACustomizablePanel
      Parameters:
      pm - the new PModelHandle from which to extract information
      Throws:
      RemoteException - thrown for errors
    • setDescriptionFocus

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

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