Class PDeviceComboBox

All Implemented Interfaces:
PAppComponent, PAppFieldComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PFieldBean, PLightComponent, PViewDataChangeListener, ActionListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, Remote, EventListener, Accessible, ListDataListener

public class PDeviceComboBox extends PIAStringEnum
Used by the search panel to display device types. JBuilder won't recognize it if it's declared in the search panel, and it has to be a PIA component (versus a straight Swing component) so the base search panel will collect data from it.

Each device type has a display name and its corresponding storable class name. Display names should be localized.

This is package-private, so it will show up as a red-bean if used in JBuilder.

See Also:
  • Constructor Details

    • PDeviceComboBox

      public PDeviceComboBox()
      Creates a device type combobox.
  • Method Details

    • addType

      public void addType(String displayName, String deviceName)
      Adds a new device type to the combobox.
      Parameters:
      displayName - display name for the device type.
      deviceName - the real device type.
    • setGeneric

      public void setGeneric(String genericString)
      Sets the generic search type for all types.
      Parameters:
      genericString - generic type.
    • getDeviceTypeForSelection

      public String getDeviceTypeForSelection()
      Returns:
      The device type associated with the selected item
    • collectData

      public void collectData(PCollectDataEvent event)
      Overrides to customize data collection
      Specified by:
      collectData in interface PCollectDataListener
      Overrides:
      collectData in class PIAStringEnum
      Parameters:
      event - data collection event.