Class DropDownMultiSelectionTextField<T>

Type Parameters:
T - the type of data stored in the drop down
All Implemented Interfaces:
GComponent, ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants

public class DropDownMultiSelectionTextField<T> extends DropDownSelectionTextField<T>
Extension of the DropDownSelectionTextField that allows multiple items to be selected.

Note that multiple selection introduces some display complications that are not an issue with single selection. Namely:

  • how do you display multiple selected items in the preview pane
  • how do you display those same items in the drop down text field
The solution here is to:
  • let the preview panel operate normally; it will simply display the preview text for whatever was last selected
  • display all selected items in the drop down text field as a comma-delimited list
See Also: