| org.jfree.ui.SortableTableModel org.jfree.ui.about.SystemPropertiesTableModel
SystemPropertiesTableModel | public class SystemPropertiesTableModel extends SortableTableModel (Code) | | A sortable table model containing the system properties.
author: David Gilbert |
Inner Class :protected static class SystemProperty | |
Inner Class :protected static class SystemPropertyComparator implements Comparator | |
Constructor Summary | |
public | SystemPropertiesTableModel() Creates a new table model using the properties of the current Java Virtual Machine. |
Method Summary | |
public int | getColumnCount() Returns the number of columns in the table model. | public String | getColumnName(int column) Returns the name of the specified column.
Parameters: column - the column index. | public int | getRowCount() Returns the number of rows in the table model (that is, the number of system properties). | public Object | getValueAt(int row, int column) Returns the value at the specified row and column. | public boolean | isSortable(int column) Returns true for the first column, and false otherwise - sorting is only allowed on the
first column.
Parameters: column - the column index. | public void | sortByColumn(int column, boolean ascending) Sorts on the specified column. |
SystemPropertiesTableModel | public SystemPropertiesTableModel()(Code) | | Creates a new table model using the properties of the current Java Virtual Machine.
|
getColumnCount | public int getColumnCount()(Code) | | Returns the number of columns in the table model. In this case, there are two columns: one
for the property name, and one for the property value.
the column count (always 2 in this case). |
getColumnName | public String getColumnName(int column)(Code) | | Returns the name of the specified column.
Parameters: column - the column index. the column name. |
getRowCount | public int getRowCount()(Code) | | Returns the number of rows in the table model (that is, the number of system properties).
the row count. |
getValueAt | public Object getValueAt(int row, int column)(Code) | | Returns the value at the specified row and column. This method supports the TableModel
interface.
Parameters: row - the row index. Parameters: column - the column index. the value. |
isSortable | public boolean isSortable(int column)(Code) | | Returns true for the first column, and false otherwise - sorting is only allowed on the
first column.
Parameters: column - the column index. true for column 0, and false for all other columns. |
sortByColumn | public void sortByColumn(int column, boolean ascending)(Code) | | Sorts on the specified column.
Parameters: column - the column index. Parameters: ascending - a flag that controls the sort order. |
|
|