public class ManagementTableModel extends AbstractTableModel
Modifier and Type | Class and Description |
---|---|
static class |
ManagementTableModel.AbstractCustomTableCellRenderer |
Modifier and Type | Field and Description |
---|---|
protected AdminUI |
_adminUI |
protected int |
_columnCount |
protected int |
_displayedColumnCount |
protected int[] |
_displayedColumnIndex |
protected boolean[] |
_displayedColumns |
protected String[] |
_flags |
protected String[] |
_headers |
protected Object[] |
_infoArray |
protected Method[] |
_methods |
protected TableCellRenderer[] |
_renderers |
protected int |
_totalWidth |
protected int[] |
_widths |
protected static Object[] |
NO_ARG_LIST |
protected static Class[] |
NO_ARG_TEMPLATE |
listenerList
Constructor and Description |
---|
ManagementTableModel(Class clazz,
String className,
AdminUI ui)
Construct a TableModel to display one of the management info array
structures such as BufferInfo[].
|
Modifier and Type | Method and Description |
---|---|
protected TableCellRenderer |
constructRenderer(String rendererName,
Class infoClass,
String columnSpec) |
void |
formatColumns(JTable table,
String flags) |
Class |
getColumnClass(int col) |
int |
getColumnCount() |
Object[] |
getInfoArray() |
int |
getRowCount() |
Object |
getValueAt(int row,
int col) |
void |
setInfoArray(Object[] array) |
protected void |
setup(Class clazz,
String[] columnSpecs) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
protected static final Class[] NO_ARG_TEMPLATE
protected static final Object[] NO_ARG_LIST
protected AdminUI _adminUI
protected int _columnCount
protected int _displayedColumnCount
protected boolean[] _displayedColumns
protected int[] _displayedColumnIndex
protected String[] _flags
protected Method[] _methods
protected int[] _widths
protected String[] _headers
protected TableCellRenderer[] _renderers
protected int _totalWidth
protected Object[] _infoArray
public ManagementTableModel(Class clazz, String className, AdminUI ui) throws NoSuchMethodException
ResourceBundle
associated with this class.
The property name is constructed from the last "." piece of the name of
the supplied class and the column index as follows:
property Name ::=
classNameTail.column.columnIndex
For example, the specification for the first column of the
Management.BufferInfo
class is
BufferInfo.column.0
The value associated with this property has the following
structure:
property Value ::=
accessorMethodName:width:flags:header
For example
getRightSiblingAddress:10:A:Right Pointer
where the accessorMethodName is simply a method
name in the supplied class (the method must take no arguments), the
width is a percentage of the total table width, and
justification is L, C or R.clazz
- NoSuchMethodException
protected void setup(Class clazz, String[] columnSpecs) throws NoSuchMethodException
NoSuchMethodException
public void setInfoArray(Object[] array)
public Object[] getInfoArray()
public int getColumnCount()
public int getRowCount()
public Object getValueAt(int row, int col)
public Class getColumnClass(int col)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
protected TableCellRenderer constructRenderer(String rendererName, Class infoClass, String columnSpec)
Copyright © 2025 Open Identity Platform Community. All rights reserved.