public static class StyleTable.StyleTableModel
extends javax.swing.table.AbstractTableModel
TableModel for the StyleTable.| Constructor and Description |
|---|
StyleTable.StyleTableModel() |
StyleTable.StyleTableModel(java.util.Map choices)
Construct a
StyleTableModel and initialize it with the contents
of the specified Map. |
| Modifier and Type | Method and Description |
|---|---|
void |
addStyleChoice(java.lang.String label,
java.lang.String property)
Add the specified style choice to this
StyleTableModel. |
int |
getColumnCount() |
java.lang.String |
getColumnName(int index) |
int |
getRowCount() |
java.lang.Object |
getValueAt(int row,
int col) |
void |
load() |
void |
save()
Save the contents of this
StyleTableModel to Jext properties. |
void |
setValueAt(java.lang.Object value,
int row,
int col) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListenerpublic StyleTable.StyleTableModel()
public StyleTable.StyleTableModel(java.util.Map choices)
StyleTableModel and initialize it with the contents
of the specified Map.choices - the Map containing the initial choices for this
StyleTableModel. This should be a map of
String to String, so it would be
sensible to use a Properties object, but this
is not enforced beyond that the String forms of
the keys and values in the Map will be used.
Each map entry will be added to the
StyleTableModel as if by
addStyleChoice(String, String).addStyleChoice(String, String)public int getColumnCount()
TableModel#getColumnCount()public int getRowCount()
TableModel#getRowCount()public java.lang.Object getValueAt(int row,
int col)
TableModel#getValueAt(int, int)public void setValueAt(java.lang.Object value,
int row,
int col)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelTableModel#setValueAt(Object, int, int)public java.lang.String getColumnName(int index)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelTableModel#getColumnName(int)public void save()
StyleTableModel to Jext properties.public void load()
public void addStyleChoice(java.lang.String label,
java.lang.String property)
StyleTableModel.label - String property name for the description.property - String property name for the style.Copyright ? 2002 Romain Guy.