Class CheckBoxJList

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ListSelectionListener, Scrollable

public class CheckBoxJList extends JList implements ListSelectionListener

This class is based on CheckBoxJList: from SWING HACKS ISBN: 0-596-00907-0 By Joshua Marinacci, Chris Adamson

Customized by Keiichiro Ono

See Also:

Module: swing-util-api

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

<dependency>
    <groupId>org.cytoscape</groupId>
    <artifactId>swing-util-api</artifactId>
</dependency>
  • Field Details

    • LIST_UPDATED

      public static final String LIST_UPDATED
      The name of the property change that indicates that the list has been updated.
      See Also:
  • Constructor Details

    • CheckBoxJList

      public CheckBoxJList()
      Creates a new CheckBoxJList object.
  • Method Details

    • processClick

      protected void processClick()
    • setSelectedItems

      public void setSelectedItems(List<String> selected)
      Sets the specified items as selected.
      Parameters:
      selected - the items to be selected.
    • valueChanged

      public void valueChanged(ListSelectionEvent lse)
      Specified by:
      valueChanged in interface ListSelectionListener