public class TaskTableModel extends SortableTableModel implements Comparator<TaskEntry>
listenerList| Constructor and Description |
|---|
TaskTableModel()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(TaskEntry desc1,
TaskEntry desc2) |
void |
forceDataStructureChange()
Updates the table model contents, sorts its contents depending on the
sort options set by the user and updates the column structure.
|
void |
forceResort()
Updates the table model contents and sorts its contents depending on the
sort options set by the user.
|
TaskEntry |
get(int row)
Gets the TaskDescriptor in a given row.
|
LinkedHashSet<LocalizableMessage> |
getAllAttributes()
Returns the set of attributes ordered.
|
Class<?> |
getColumnClass(int column) |
int |
getColumnCount()
Returns the column count.
|
String |
getColumnName(int col) |
LinkedHashSet<LocalizableMessage> |
getDisplayedAttributes()
Returns the set of attributes ordered.
|
int |
getRowCount()
Returns the row count.
|
int |
getSortColumn()
Returns the column index used to sort.
|
Object |
getValueAt(int row,
int column) |
boolean |
isSortAscending()
Returns whether the sort is ascending or descending.
|
void |
setAttributes(LinkedHashSet<LocalizableMessage> attributes)
Sets the operations displayed by this table model.
|
void |
setData(Set<TaskEntry> newData)
Sets the data for this table model.
|
void |
setSortAscending(boolean sortAscending)
Sets whether to sort ascending of descending.
|
void |
setSortColumn(int sortColumn)
Sets the column index used to sort.
|
getHeader, getHeaderaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic TaskTableModel()
public void setData(Set<TaskEntry> newData)
newData - the data for this table model.public void forceResort()
forceResort in class SortableTableModelpublic void forceDataStructureChange()
public void setAttributes(LinkedHashSet<LocalizableMessage> attributes)
attributes - the attributes displayed by this table model.public Class<?> getColumnClass(int column)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Object getValueAt(int row, int column)
getValueAt in interface TableModelpublic int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic TaskEntry get(int row)
row - the row.public LinkedHashSet<LocalizableMessage> getDisplayedAttributes()
public LinkedHashSet<LocalizableMessage> getAllAttributes()
public int compare(TaskEntry desc1, TaskEntry desc2)
compare in interface Comparator<TaskEntry>public boolean isSortAscending()
isSortAscending in class SortableTableModeltrue if the sort is ascending and false
otherwise.public void setSortAscending(boolean sortAscending)
setSortAscending in class SortableTableModelsortAscending - whether to sort ascending or descending.public int getSortColumn()
getSortColumn in class SortableTableModelpublic void setSortColumn(int sortColumn)
setSortColumn in class SortableTableModelsortColumn - column index used to sort..Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.