Class ModelNodeTable<T extends ModelNode>

    • Method Detail

      • attach

        public void attach()
        Description copied from class: DataTable
        Initialized the Api instance using the Options given at constructor argument. Make sure to call this method before using any of the API methods. It's safe to call the methods multiple times (the initialization will happen only once).
        Specified by:
        attach in interface Attachable
        Overrides:
        attach in class DataTable<T extends ModelNode>
      • select

        public void select​(T data,
                           Function<T,​String> identifier)
        Description copied from class: DataTable
        Selects the row with the specified data.
        Specified by:
        select in interface Table<T extends ModelNode>
        Overrides:
        select in class DataTable<T extends ModelNode>
        Parameters:
        data - the data
        identifier - a function which must return an unique identifier for a given row.
      • update

        public void update​(Iterable<T> data,
                           RefreshMode mode,
                           Function<T,​String> identifier)
        Description copied from class: DataTable
        Replaces the existing data with the new one. If necessary, restores the current selection based on the specified function.
        Specified by:
        update in interface Table<T extends ModelNode>
        Overrides:
        update in class DataTable<T extends ModelNode>
        Parameters:
        data - the new data
        identifier - a function which must return an unique identifier for a given row. Used to restore the selection after replacing the data.