Class AbstractCheckListItem<T>

    • Field Detail

      • myId

        @NotNull
        protected final String myId
      • myParentId

        @Nullable
        protected final String myParentId
      • myName

        @NotNull
        protected final String myName
      • myNote

        @NotNull
        protected final String myNote
      • myInitiallyChecked

        protected final boolean myInitiallyChecked
      • myEditable

        protected final boolean myEditable
    • Constructor Detail

      • AbstractCheckListItem

        public AbstractCheckListItem​(@NotNull
                                     String id,
                                     @Nullable
                                     String parentId,
                                     @NotNull
                                     String name,
                                     @NotNull
                                     String note,
                                     boolean initiallyChecked,
                                     boolean editable)
    • Method Detail

      • getParentId

        @Nullable
        public String getParentId()
        Description copied from interface: CheckListItemInfo
        Returns parent's unique item identifier or null if there is no parent.
        Specified by:
        getParentId in interface CheckListItemInfo
        Returns:
        see above
      • getNote

        @NotNull
        public String getNote()
        Description copied from interface: CheckListItemInfo
        Returns some note to be displayed greyed near the item name or null to not display note.
        Specified by:
        getNote in interface CheckListItemInfo
        Returns:
        see above
      • isEditable

        public boolean isEditable()
        Description copied from interface: CheckListItemInfo
        Returns true if item can be edited, false otherwise.
        Specified by:
        isEditable in interface CheckListItemInfo
        Returns:
        see above
      • collectPhrasesForFilter

        @NotNull
        protected abstract Collection<String> collectPhrasesForFilter()
        Fires when user attempts to filter the list for the very first time. Expected a bunch of phrases Checklist will search user words in.
        Returns:
        collection of strings. Must be non-null (but may be empty).
      • getWarningObject

        @Nullable
        public T getWarningObject()
      • setWarningObject

        public void setWarningObject​(@Nullable
                                     T warningObject)
      • hasWarningObject

        public boolean hasWarningObject()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object