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:
    Serialized Form

    Module: swing-application-api

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

    <dependency>
        <groupId>org.cytoscape</groupId>
        <artifactId>swing-application-api</artifactId>
    </dependency>
    • Constructor Detail

      • CyColumnSelector

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

      • update

        public void update​(Collection<CyColumn> columns,
                           Collection<String> selectedColumnNames)
        Updates the control to display the given CyColumn objects.
        Parameters:
        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.