|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.ui.table.ColumnDescriptor
public class ColumnDescriptor
Provides a column descriptor for use with a DescribedTable
.
Encapsulates the column information such as column name, property name, and
class.
Field Summary | |
---|---|
protected static Class |
DEFAULT_COLUMN_CLASS
Default column class. |
protected static String |
DEFAULT_COLUMN_NAME
Default column name. |
protected static boolean |
DEFAULT_EDITABLE
Default editable flag. |
protected static String |
DEFAULT_PROPERTY_NAME
Default property name. |
protected static boolean |
DEFAULT_VISIBLE
Default visible flag. |
Constructor Summary | |
---|---|
ColumnDescriptor()
Construct this object. |
|
ColumnDescriptor(String columnName)
Construct this object. |
|
ColumnDescriptor(String columnName,
String propertyName)
Construct this object. |
|
ColumnDescriptor(String columnName,
String propertyName,
Class columnClass)
Construct this object. |
|
ColumnDescriptor(String columnName,
String propertyName,
Class columnClass,
boolean editable)
Construct this object. |
|
ColumnDescriptor(String columnName,
String propertyName,
Class columnClass,
boolean editable,
boolean visible)
Construct this object. |
Method Summary | |
---|---|
TableCellRenderer |
getCellRenderer()
Return the table cell renderer. |
Class |
getColumnClass()
Return the class of objects in this column. |
String |
getColumnName()
Return the column name. |
List |
getEnumList()
|
String |
getPropertyName()
Return the property name. |
boolean |
isEditable()
Return true if this column is editable. |
boolean |
isEnumerated()
Return true if this column is enumerated. |
boolean |
isVisible()
Return true if this column is visible. |
void |
setCellRenderer(TableCellRenderer cellRenderer)
Set the cell renderer. |
void |
setColumnClass(Class aClass)
Set the column class. |
void |
setColumnName(String columnName)
Set the column name. |
void |
setEditable(boolean editable)
Set the editable flag. |
void |
setEnumList(List enumList)
Set the enumerated list. |
void |
setPropertyName(String propertyName)
Set the property name. |
void |
setVisible(boolean visible)
Set the visible flag. |
String |
toString()
Return a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final String DEFAULT_COLUMN_NAME
protected static final String DEFAULT_PROPERTY_NAME
protected static final Class DEFAULT_COLUMN_CLASS
protected static final boolean DEFAULT_EDITABLE
protected static final boolean DEFAULT_VISIBLE
Constructor Detail |
---|
public ColumnDescriptor()
public ColumnDescriptor(String columnName)
columnName
- The name of the column.public ColumnDescriptor(String columnName, String propertyName)
columnName
- The name of the column.propertyName
- The name of the data property shown in this column.public ColumnDescriptor(String columnName, String propertyName, Class columnClass)
columnName
- The name of the column.propertyName
- The name of the data property shown in this column.columnClass
- The class of objects in the column.public ColumnDescriptor(String columnName, String propertyName, Class columnClass, boolean editable)
columnName
- The name of the column.propertyName
- The name of the data property shown in this column.columnClass
- The class of objects in the column.editable
- Flag indicating if this column is editable.public ColumnDescriptor(String columnName, String propertyName, Class columnClass, boolean editable, boolean visible)
columnName
- The name of the column.propertyName
- The name of the data property shown in this column.columnClass
- The class of objects in the column.editable
- Flag indicating if this column is editable.Method Detail |
---|
public TableCellRenderer getCellRenderer()
public Class getColumnClass()
public String getColumnName()
public List getEnumList()
public String getPropertyName()
public boolean isEditable()
public boolean isEnumerated()
public boolean isVisible()
public void setCellRenderer(TableCellRenderer cellRenderer)
cellRenderer
- Cell renderer.public void setColumnClass(Class aClass)
aClass
- The new column class.public void setColumnName(String columnName)
columnName
- The new column name.public void setEditable(boolean editable)
editable
- The new editable flag.public void setEnumList(List enumList)
enumList
- The new enumerated list.public void setPropertyName(String propertyName)
propertyName
- The new property name.public void setVisible(boolean visible)
visible
- The new visible flag.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |