public static final class JPropertiesTable.PropertiesTableModel<T> extends AbstractTableModel implements PropertyChangeListener
listenerList
Constructor and Description |
---|
PropertiesTableModel(T propertyObject) |
Modifier and Type | Method and Description |
---|---|
JPropertiesTable.PropertyDescriptor |
addProperty(String caption,
String name,
boolean editable,
JPropertiesTable.PropertyFormatter formatter) |
JPropertiesTable.PropertyDescriptor |
addProperty(String caption,
String name,
Object[] options) |
JPropertiesTable.PropertyDescriptor |
addPropertyShadow(String caption,
String name,
boolean editable) |
void |
attach() |
int |
getColumnCount() |
JPropertiesTable.PropertyDescriptor |
getPropertyDescriptorAt(int row) |
int |
getRowCount() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
propertyChange(PropertyChangeEvent evt) |
void |
release() |
void |
setPropertyObject(T propertyObject) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
public PropertiesTableModel(T propertyObject)
public void attach()
public void setPropertyObject(T propertyObject)
public JPropertiesTable.PropertyDescriptor addProperty(String caption, String name, boolean editable, JPropertiesTable.PropertyFormatter formatter)
public JPropertiesTable.PropertyDescriptor addProperty(String caption, String name, Object[] options)
public int getRowCount()
getRowCount
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public JPropertiesTable.PropertyDescriptor getPropertyDescriptorAt(int row)
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public void release()
public JPropertiesTable.PropertyDescriptor addPropertyShadow(String caption, String name, boolean editable)
Copyright © 2019. All Rights Reserved.