Class SIMPanel

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

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

    • SIMPanel

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

      public SIMPanel(boolean showBorder)
      Creates a SIM card 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 SIM and IMSI with a space every 4 digits.
      Specified by:
      setModelHandle in interface PComponent
      Overrides:
      setModelHandle in class PTelcoDevicesBase
      Parameters:
      pm - The model handle this panel is going to display.
      Throws:
      RemoteException
    • formatID

      public String formatID(String input)
      Separates the input string with spaces every 4 digits.
      Overrides:
      formatID in class PTelcoDevicesBase
      Parameters:
      input - the string to be formated
      Returns:
      the formated string.
    • 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
    • addNotify

      public void addNotify()
      Set the font on the section header to be bold.
      Overrides:
      addNotify in class JComponent
    • resetToDefault

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

      public void setCustomData(PIACustomizablePanel cPanel)
      Add custom field in SIM Panel