|
VLab Common 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.psnc.vlab.util.gui.model.info.ModelProperties
public class ModelProperties
ModelProperties class - used to store model properties like column
names, editable columns, column types
| Constructor Summary | |
|---|---|
ModelProperties()
|
|
| Method Summary | |
|---|---|
void |
decorateColums(javax.swing.JTable table)
Decorated JTable Columns |
java.lang.Integer |
getColumnIndex(ColumnInfo type)
Get index for the given column type |
java.lang.String[] |
getColumnNames()
Get list of column names |
ColumnInfo[] |
getColumns()
Get value of field: columns |
ColumnInfo |
getColumnType(int columnIndex)
Get Column for the given column index |
java.lang.Class<?>[] |
getColumnTypes()
Get list of columns types |
boolean[] |
getEditable()
Get value of field: editable |
ColumnInfo[] |
getSortOrder()
Get value of field: sortOrder |
boolean |
isEditable(int columnIndex)
Tells whether the given column can be edited |
boolean |
isSelected()
Get value of field: selected |
void |
setColumns(ColumnInfo[] columns)
Set value of field: columns |
void |
setEditable(boolean[] editable)
Set value of field: editable |
void |
setSelected(boolean selected)
Set value of field: selected |
void |
setSortOrder(ColumnInfo[] sortOrder)
Set value of field: sortOrder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelProperties()
| Method Detail |
|---|
public boolean isEditable(int columnIndex)
columnIndex - column index
true if column is editable, false
otherwisepublic void decorateColums(javax.swing.JTable table)
table - public java.lang.Integer getColumnIndex(ColumnInfo type)
type - column type
public ColumnInfo getColumnType(int columnIndex)
columnIndex - column index
public java.lang.String[] getColumnNames()
public java.lang.Class<?>[] getColumnTypes()
public ColumnInfo[] getColumns()
public void setColumns(ColumnInfo[] columns)
columns - the columns to setpublic boolean[] getEditable()
public void setEditable(boolean[] editable)
editable - the editable to setpublic ColumnInfo[] getSortOrder()
public void setSortOrder(ColumnInfo[] sortOrder)
sortOrder - the sortOrder to setpublic boolean isSelected()
public void setSelected(boolean selected)
selected - the selected to set
|
VLab Common 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||