Class PDeviceSearchResultsPanelBase

All Implemented Interfaces:
PSearchConsumer, PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ContainerListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible
Direct Known Subclasses:
PDeviceSearchResultsPanelDefault, PTelcoNumberResultsPanel, SIMResultsPanel

public class PDeviceSearchResultsPanelBase extends PIACustomizablePanel implements PSearchConsumer
This is the base class for the results panel in the device search dialog It extends PIACustomizablePanel and contains all the listener methods.
Version:
%date_modified: Thr Feb 26 18:53:38 2003 %
See Also:
  • Field Details

  • Constructor Details

    • PDeviceSearchResultsPanelBase

      public PDeviceSearchResultsPanelBase()
      Creates a default search results panel.
  • Method Details

    • getPreferredSize

      public Dimension getPreferredSize()
      Use this setting to control the preferred size.
      Overrides:
      getPreferredSize in class JComponent
      Parameters:
      return - the default size for this panel
    • addIASelectionListener

      public void addIASelectionListener(PIASelectionListener listener)
      Notify the given listener when the selection changes
      Specified by:
      addIASelectionListener in interface PSearchConsumer
      Parameters:
      listener - The selection listener.
    • removeIASelectionListener

      public void removeIASelectionListener(PIASelectionListener listener)
      Don't notify the given listener when the selection changes
      Specified by:
      removeIASelectionListener in interface PSearchConsumer
      Parameters:
      listener - The selection listener.
    • getSpreadSheet

      public PIASpecSpreadSheet getSpreadSheet()
      Retrieves the results table.
      Specified by:
      getSpreadSheet in interface PSearchConsumer
      Parameters:
      PIASpecSpreadSheet - results table.
    • addStatusListener

      public void addStatusListener(PropertyChangeListener listener)
      Adds a property change listener to the results table.
      Parameters:
      listener - the property change listener to add
    • removeStatusListener

      public void removeStatusListener(PropertyChangeListener listener)
      Removes the property change listener from the results table.
      Parameters:
      listener - the property listener to remove
    • setStatusFormat

      protected void setStatusFormat(int column, ResourceBundle bundle)
      Retrieves the display field format string for the device status.
      Parameters:
      column - - the column number where the status is going to be displayed
      bundle - - the resource bundle to retrieve the values
    • setChoiceStringFormat

      protected void setChoiceStringFormat(int column, String stringDomain, String format, ResourceBundle bundle)
      Retrieves the display field format string for the device .
      Parameters:
      column - - the column number where the string is going to be displayed
      stringDomain -
      format -
      bundle - - the resource bundle to retrieve the values
    • getDeviceType

      protected String getDeviceType()
      Retrieves the locally stored value of the device type that is set earlier
      Returns:
      the device type of the device being searched for.
    • setDeviceType

      protected void setDeviceType(String type)
      Store the device type locally so that it can be retrieved when needed.
      Parameters:
      devType - - String