Class TaskTableModel

    • Constructor Detail

      • TaskTableModel

        public TaskTableModel()
        Default constructor.
    • Method Detail

      • setData

        public void setData​(Set<TaskEntry> newData)
        Sets the data for this table model.
        Parameters:
        newData - the data for this table model.
      • forceResort

        public void forceResort()
        Updates the table model contents and sorts its contents depending on the sort options set by the user.
        Specified by:
        forceResort in class SortableTableModel
      • forceDataStructureChange

        public void forceDataStructureChange()
        Updates the table model contents, sorts its contents depending on the sort options set by the user and updates the column structure.
      • setAttributes

        public void setAttributes​(Set<org.forgerock.i18n.LocalizableMessage> attributes)
        Sets the operations displayed by this table model.
        Parameters:
        attributes - the attributes displayed by this table model.
      • getRowCount

        public int getRowCount()
        Returns the row count.
        Specified by:
        getRowCount in interface TableModel
        Returns:
        the row count.
      • getColumnCount

        public int getColumnCount()
        Returns the column count.
        Specified by:
        getColumnCount in interface TableModel
        Returns:
        the column count.
      • get

        public TaskEntry get​(int row)
        Gets the TaskDescriptor in a given row.
        Parameters:
        row - the row.
        Returns:
        the TaskDescriptor in a given row.
      • getDisplayedAttributes

        public Set<org.forgerock.i18n.LocalizableMessage> getDisplayedAttributes()
        Returns the set of attributes ordered.
        Returns:
        the set of attributes ordered.
      • getAllAttributes

        public LinkedHashSet<org.forgerock.i18n.LocalizableMessage> getAllAttributes()
        Returns the set of attributes ordered.
        Returns:
        the set of attributes ordered.
      • isSortAscending

        public boolean isSortAscending()
        Description copied from class: SortableTableModel
        Returns whether the sort is ascending or descending.
        Specified by:
        isSortAscending in class SortableTableModel
        Returns:
        true if the sort is ascending and false otherwise.
      • setSortAscending

        public void setSortAscending​(boolean sortAscending)
        Description copied from class: SortableTableModel
        Sets whether to sort ascending of descending.
        Specified by:
        setSortAscending in class SortableTableModel
        Parameters:
        sortAscending - whether to sort ascending or descending.
      • setSortColumn

        public void setSortColumn​(int sortColumn)
        Description copied from class: SortableTableModel
        Sets the column index used to sort.
        Specified by:
        setSortColumn in class SortableTableModel
        Parameters:
        sortColumn - column index used to sort..