Class CyColumnSelector

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class CyColumnSelector extends JPanel
An Swing control that allows the user to select a set of CyColumn objects.
See Also:

Module: swing-application-api

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

  • Constructor Details

    • CyColumnSelector

      public CyColumnSelector(IconManager iconManager, CyColumnPresentationManager columnPresentationManager)
      Creates a CyColumnSelector.
      iconManager - IconManager OSGi service, may not be null.
      columnPresentationManager - CyColumnPresentationManager OSGi service, may not be null.
      NullPointerException - If any paramter is null.
  • Method Details

    • update

      public void update(Collection<CyColumn> columns, Collection<String> selectedColumnNames)
      Updates the control to display the given CyColumn objects.
      columns - The CyColumn objects to display for selection.
      selectedColumnNames - Names of columns that should be pre-selected.
    • getSelectedColumnNames

      public Set<String> getSelectedColumnNames()
      Returns the names of the CyColumns that have been selected.