Class NotesDialog.NoteTableModel

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<Note> data  
      private java.util.function.Predicate<Note> filter  
      private java.util.List<Note> filteredData  
      • Fields inherited from class javax.swing.AbstractListModel

        listenerList
    • Constructor Summary

      Constructors 
      Constructor Description
      NoteTableModel()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearData()
      Clear the note data
      Note getElementAt​(int index)  
      int getSize()  
      void setData​(java.util.Collection<Note> noteList)
      Set the note data
      void setFilter​(java.util.function.Predicate<Note> filter)  
      • Methods inherited from class javax.swing.AbstractListModel

        addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • data

        private final transient java.util.List<Note> data
      • filter

        private transient java.util.function.Predicate<Note> filter
    • Method Detail

      • setFilter

        public void setFilter​(java.util.function.Predicate<Note> filter)
      • setData

        public void setData​(java.util.Collection<Note> noteList)
        Set the note data
        Parameters:
        noteList - The notes to show
      • clearData

        public void clearData()
        Clear the note data