public class PropertiesTableModel extends AbstractTableModel
PropertiesTableModel.listenerList| Constructor and Description |
|---|
PropertiesTableModel()
Instantiates a new
PropertiesTableModel. |
PropertiesTableModel(Properties properties)
Instantiates a new
PropertiesTableModel. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Properties properties)
Adds the given Properties.
|
void |
add(String key,
String value)
Adds the row from the given key and value.
|
void |
clear()
Removes all data from this table model.
|
String |
get(int row)
Gets the value from the given index.
|
String |
get(String key)
Gets the Object from the given key.
|
Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int columnIndex) |
Properties |
getData()
Gets the data.
|
int |
getRowCount() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
String |
remove(String key)
Removes the Object from the given key.
|
void |
setData(Properties properties)
Sets the new properties.
|
protected void |
setProperties(Properties properties)
Sets the properties.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtpublic PropertiesTableModel()
PropertiesTableModel.public PropertiesTableModel(Properties properties)
PropertiesTableModel.properties - the properties to set.public void add(Properties properties)
properties - the properties to add.public void add(String key, String value)
key - the keyvalue - the valuepublic void clear()
public String get(int row)
row - The index from the row to get.public String get(String key)
key - the keypublic Class<?> getColumnClass(int columnIndex)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic int getColumnCount()
public String getColumnName(int columnIndex)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Properties getData()
public int getRowCount()
public Object getValueAt(int rowIndex, int columnIndex)
public String remove(String key)
key - the keypublic void setData(Properties properties)
properties - the new propertiesprotected void setProperties(Properties properties)
properties - the new propertiesCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.