Class ListMultipleSelection<T>

Type Parameters:
T - type of items that will be listed.

public final class ListMultipleSelection<T> extends ListSelection<T>
List with items of type T : one or more items can be selected.

Cytoscape Backwards Compatibility (Final Class): This class is final and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.

Module: work-api

To use this in your app, include the following dependency in your POM:

  • Constructor Details

    • ListMultipleSelection

      public ListMultipleSelection(T... values)
      Creates a new ListMultipleSelection object.

       example :
       ListMultipleSelection lms = new ListMultipleSelection("1","2","3","4");

      values - An arbitrary number of values of type T items that can be selected.
    • ListMultipleSelection

      public ListMultipleSelection(List<T> values)
      Creates a new ListMultipleSelection object.

      example :
              java.util.List list = new java.util.ArrayList();
              ListMultipleSelection lss = new ListMultipleSelection(list);

      values - The list of values of type T that can be selected. The list may be empty.
  • Method Details

    • getSelectedValues

      public List<T> getSelectedValues()
      Get the items that are currently selected.
      a list of selected items.
    • setSelectedValues

      public void setSelectedValues(List<T> vals)
      Set the T items as selected in the ListMultipleSelection object.
      vals - the selected items.