Class PSIMPanel

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

public class PSIMPanel extends PIAExtendedDevicesBase
This is the extended device support panel for SIM device (/device/sim).
See Also:
  • Constructor Details

    • PSIMPanel

      public PSIMPanel()
      Createa a SIM panel with border.
    • PSIMPanel

      public PSIMPanel(boolean showBorder)
      Creates a SIM card 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)
      Separates the input string with spaces every 4 digits.
      Parameters:
      input - the string to be formated
      Returns:
      the formated string.
    • addNotify

      public void addNotify()
      Overrides:
      addNotify in class JComponent
    • setModelHandle

      public void setModelHandle(PModelHandle pm) throws RemoteException
      Formats SIM and IMSI with a space every 4 digits.
      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 SIM card 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