Interface CheckListModel<T>

All Superinterfaces:
javax.swing.ListModel
All Known Subinterfaces:
FilterableCheckListModel<T>
All Known Implementing Classes:
ActionCheckListModel, DefaultCheckListModel, DefaultFilterableCheckListModel, FilterableActionCheckListModel

public interface CheckListModel<T>
extends javax.swing.ListModel
  • Method Summary

    Modifier and Type Method Description
    java.util.Collection<T> getCheckedItems()
    Returns a collections of checked items
    int getOriginalSize()
    Returns the number of items before the filter was applied
    boolean isCheckedIndex​(int index)
    Returns the check state of the element at specified position
    void setCheckedIndex​(int index, boolean value)
    Sets the check state of the element at specified position
    void setCheckedItems​(java.util.Collection<T> items)
    Sets checked items

    Methods inherited from interface javax.swing.ListModel

    addListDataListener, getElementAt, getSize, removeListDataListener
  • Method Details

    • isCheckedIndex

      boolean isCheckedIndex​(int index)
      Returns the check state of the element at specified position
      Parameters:
      index - element index
      Returns:
      true if element at specified position is checked
      Throws:
      java.lang.IndexOutOfBoundsException - if index is out of range
    • setCheckedIndex

      void setCheckedIndex​(int index, boolean value)
      Sets the check state of the element at specified position
      Parameters:
      index - element index
      value -
      Throws:
      java.lang.IndexOutOfBoundsException - if index is out of range
    • getCheckedItems

      java.util.Collection<T> getCheckedItems()
      Returns a collections of checked items
      Returns:
    • setCheckedItems

      void setCheckedItems​(java.util.Collection<T> items)
      Sets checked items
      Parameters:
      items -
    • getOriginalSize

      int getOriginalSize()
      Returns the number of items before the filter was applied
      Returns: