Class DefaultCheckListModel<T>

    • Field Detail

      • data

        protected final List<T> data
      • checks

        protected final Set<T> checks
    • Constructor Detail

      • DefaultCheckListModel

        public DefaultCheckListModel​(Collection<? extends T> data)
      • DefaultCheckListModel

        public DefaultCheckListModel​(T... data)
    • Method Detail

      • getOriginalSize

        public int getOriginalSize()
        Description copied from interface: CheckListModel
        Returns the number of items before the filter was applied
        Specified by:
        getOriginalSize in interface CheckListModel<T>
        Returns:
      • data

        protected List<T> data()
      • isCheckedIndex

        public boolean isCheckedIndex​(int index)
        Description copied from interface: CheckListModel
        Returns the check state of the element at specified position
        Specified by:
        isCheckedIndex in interface CheckListModel<T>
        Parameters:
        index - element index
        Returns:
        true if element at specified position is checked
      • setCheckedIndex

        public void setCheckedIndex​(int index,
                                    boolean value)
        Description copied from interface: CheckListModel
        Sets the check state of the element at specified position
        Specified by:
        setCheckedIndex in interface CheckListModel<T>
        Parameters:
        index - element index