|
CESE 1.4.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
com.simulogic.cese.properties.PropertyTableModel
public class PropertyTableModel
Table model used to obtain property names and values. This model encapsulates an array of PropertyDescriptors.
Field Summary | |
---|---|
static int |
COL_CLAMP
Index of clamp column |
static int |
COL_NAME
Index of name column |
static int |
COL_VALUE
Index of value column |
static int |
SORT_DEF
|
static int |
SORT_NAME
|
static int |
SORT_TYPE
|
static int |
VIEW_ALL
|
static int |
VIEW_BOUND
|
static int |
VIEW_CONSTRAINED
|
static int |
VIEW_EXPERT
|
static int |
VIEW_HIDDEN
|
static int |
VIEW_PREFERRED
|
static int |
VIEW_READ_ONLY
|
static int |
VIEW_STANDARD
|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
PropertyTableModel()
Default constructor |
Method Summary | |
---|---|
void |
addChanges()
Adds changes to model property descriptors |
void |
clearChanges()
Clears changes in model property descriptors |
java.lang.String |
exportParametersASCII()
Exports parameters to ASCII |
void |
filterTable(int view)
Filters the table to display only properties with specific attributes. |
java.util.Vector |
getClampedPropertyDescriptors()
Returns the Vector of PropertyDescriptors that are clamped |
java.lang.Class |
getColumnClass(int column)
Returns the Java type for the given column. |
int |
getColumnCount()
Get column count (3: name, value, clamp) |
ModelPropertyDescriptor |
getModelPropertyDescriptor(int row)
Returns the ModelPropertyDescriptor for the row |
java.beans.PropertyEditor |
getPropertyEditor(int row)
Returns a new instance of the property editor for a given class. |
java.lang.Class |
getPropertyType(int row)
Returns the Java type info for the property at the given row |
int |
getRowCount()
Get row count (total number of properties shown) |
java.lang.Object |
getValueAt(int row,
int column)
Get text value for cell of table |
boolean |
isCellEditable(int row,
int col)
Check if given cell is editable |
void |
setClampedPropertyDescriptors(java.util.Vector names)
Sets clamped PropertyDescriptors based on the Vector of variable names |
void |
setModelInfo(ModelInfo info)
Set the table model to represent the properties of the model. |
void |
setValueAt(java.lang.Object value,
int row,
int column)
Set the value of the Values column. |
void |
sortTable(int sort)
Sorts the table according to the sort type. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int COL_NAME
public static final int COL_VALUE
public static final int COL_CLAMP
public static final int VIEW_ALL
public static final int VIEW_STANDARD
public static final int VIEW_EXPERT
public static final int VIEW_READ_ONLY
public static final int VIEW_BOUND
public static final int VIEW_CONSTRAINED
public static final int VIEW_HIDDEN
public static final int VIEW_PREFERRED
public static final int SORT_DEF
public static final int SORT_NAME
public static final int SORT_TYPE
Constructor Detail |
---|
public PropertyTableModel()
Method Detail |
---|
public void setModelInfo(ModelInfo info)
info
- model infopublic int getRowCount()
public int getColumnCount()
public boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
row
- table rowcol
- table columnpublic java.lang.Object getValueAt(int row, int column)
row
- table rowcolumn
- table columnpublic void setValueAt(java.lang.Object value, int row, int column)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public java.lang.Class getColumnClass(int column)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public java.lang.Class getPropertyType(int row)
row
- table row
public ModelPropertyDescriptor getModelPropertyDescriptor(int row)
row
- table row
public java.util.Vector getClampedPropertyDescriptors()
public void clearChanges()
public void addChanges()
public void setClampedPropertyDescriptors(java.util.Vector names)
names
- variable namespublic java.beans.PropertyEditor getPropertyEditor(int row)
row
- table row
public void sortTable(int sort)
sort
- sort typepublic void filterTable(int view)
view
- The properties to display.public java.lang.String exportParametersASCII()
|
CESE 1.4.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |