Class SortableTableModel

    • Constructor Detail

      • SortableTableModel

        public SortableTableModel()
    • Method Detail

      • isSortAscending

        public abstract boolean isSortAscending()
        Returns whether the sort is ascending or descending.
        Returns:
        true if the sort is ascending and false otherwise.
      • setSortAscending

        public abstract void setSortAscending​(boolean sortAscending)
        Sets whether to sort ascending of descending.
        Parameters:
        sortAscending - whether to sort ascending or descending.
      • getSortColumn

        public abstract int getSortColumn()
        Returns the column index used to sort.
        Returns:
        the column index used to sort.
      • setSortColumn

        public abstract void setSortColumn​(int sortColumn)
        Sets the column index used to sort.
        Parameters:
        sortColumn - column index used to sort..
      • forceResort

        public abstract void forceResort()
        Updates the table model contents and sorts its contents depending on the sort options set by the user.
      • getHeader

        protected String getHeader​(org.forgerock.i18n.LocalizableMessage msg)
        Returns the header wrapped with the default line width.
        Parameters:
        msg - the header message value (with no HTML formatting).
        Returns:
        the header wrapped with the default line width.
      • getHeader

        protected String getHeader​(org.forgerock.i18n.LocalizableMessage msg,
                                   int wrap)
        Returns the header wrapped with a certain line width.
        Parameters:
        msg - the header message value (with no HTML formatting).
        wrap - the maximum line width before wrapping.
        Returns:
        the header wrapped with the specified line width.