org.openpermis.editor.policy.gui.checklist
Class CheckListModel<T>
java.lang.Object
javax.swing.table.AbstractTableModel
org.openpermis.editor.policy.gui.checklist.CheckListModel<T>
- Type Parameters:
T
- type of the items in the check list model.
- All Implemented Interfaces:
- Serializable, TableModel
public class CheckListModel<T>
- extends AbstractTableModel
Creates a model that manages a pool of items and a selection list from the pool.
- See Also:
- Serialized Form
- Since:
- 0.1.0
Constructor Summary |
CheckListModel(org.jdesktop.observablecollections.ObservableList<T> pool,
org.jdesktop.observablecollections.ObservableList<T> selection)
Creates a new check list model. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckListModel
public CheckListModel(org.jdesktop.observablecollections.ObservableList<T> pool,
org.jdesktop.observablecollections.ObservableList<T> selection)
- Creates a new check list model.
- Parameters:
pool
- the poolof available items that can be chosen.selection
- the currently selected items from the pool.- Since:
- 0.1.0
configureListeners
public void configureListeners()
- Adds listeners to synchronize the list with the table model.
- Since:
- 0.1.0
unconfigureListeners
public void unconfigureListeners()
- Removes the listeners to synchronize the list with the table model added in
configureListeners()
.
- Since:
- 0.1.0
isCellEditable
public boolean isCellEditable(int rowIndex,
int columnIndex)
- Specified by:
isCellEditable
in interface TableModel
- Overrides:
isCellEditable
in class AbstractTableModel
- Since:
- 0.1.0
getColumnClass
public Class<?> getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interface TableModel
- Overrides:
getColumnClass
in class AbstractTableModel
- Since:
- 0.1.0
getColumnName
public String getColumnName(int columnIndex)
- Specified by:
getColumnName
in interface TableModel
- Overrides:
getColumnName
in class AbstractTableModel
- Since:
- 0.1.0
getColumnCount
public int getColumnCount()
- Since:
- 0.1.0
getRowCount
public int getRowCount()
- Since:
- 0.1.0
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
- Since:
- 0.1.0
setValueAt
public void setValueAt(Object value,
int rowIndex,
int columnIndex)
- Specified by:
setValueAt
in interface TableModel
- Overrides:
setValueAt
in class AbstractTableModel
- Since:
- 0.1.0
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:33
Copyright (c) 2002-2007 Ergon Informatik AG