org.openpermis.editor.policy.gui
Class MultiListTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.openpermis.editor.policy.gui.MultiListTableModel
- All Implemented Interfaces:
- Serializable, TableModel
public class MultiListTableModel
- extends AbstractTableModel
Table model that uses several lists for the column values.
- See Also:
- Serialized Form
- Since:
- 0.9.0
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiListTableModel
public MultiListTableModel(String[] columnNames,
List<?>... columnDataLists)
- Creates a new multi list table model.
- Parameters:
columnNames
- the translated column names to use for the column names.columnDataLists
- the column data lists.- Since:
- 0.9.0
create
public static MultiListTableModel create(org.jdesktop.application.ResourceMap resourceMap,
String columnNamesKey,
List<?>... columnDataLists)
- Creates a multi list table model that is initialized with headers from a resource map.
The column names key is a key that points to a comma separated list of keys for each
column in the order they should be used.
- Parameters:
resourceMap
- the resource map to use for key lookups.columnNamesKey
- key that points to a comma separated list of keys for the columns.columnDataLists
- the column data lists.
- Returns:
- the table model created.
- Since:
- 0.9.0
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnName
in interface TableModel
- Overrides:
getColumnName
in class AbstractTableModel
- Since:
- 0.9.0
getColumnCount
public int getColumnCount()
- Since:
- 0.9.0
getRowCount
public int getRowCount()
- Since:
- 0.9.0
getValueAt
public Object getValueAt(int row,
int column)
- Since:
- 0.9.0
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG