public class PropertyColumn extends Column implements IsRowEditable
Column.Cell| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
forceReadOnly |
protected Icon |
nullIcon |
protected TreeTableNodeFormat |
nullValueFormat |
protected PropertyDB |
pdb |
protected String |
propertyName |
protected PropertyTable |
propertyTable |
protected xyz.cofe.collection.map.ClassMap<xyz.cofe.collection.Func1<TreeTableNodeFormat,Object>> |
valueFormat
valueFormat : ClassMap<Форматирование, Объект, Узел> - функция:
fn ( Объект, Узел ) => Форматирование объекта. |
| Constructor and Description |
|---|
PropertyColumn() |
PropertyColumn(Object sync,
PropertyColumn sample) |
PropertyColumn(String name) |
PropertyColumn(String name,
boolean forceReadonly) |
| Modifier and Type | Method and Description |
|---|---|
<T> PropertyColumn |
addValueFormat(Class<T> cls,
xyz.cofe.collection.Func1<TreeTableNodeFormat,T> reader)
Указывает форматирование для указанных типов
|
<BEAN,PROP> |
classProperty(Class<BEAN> beanClass,
String name,
Class<PROP> propType,
xyz.cofe.collection.Func1<PROP,BEAN> propReader,
xyz.cofe.collection.Func2<Object,BEAN,PROP> propWrite) |
PropertyColumn |
classProperty(Class beanClass,
Property prop) |
PropertyColumn |
clone() |
Column |
cloneWith(Object sync) |
TableColumn |
createTableColumn() |
PropertyColumn |
forceReadonly(Boolean forceReadOnly) |
xyz.cofe.collection.map.ClassMap<Property> |
getClassProperties() |
Columns |
getColumns() |
Boolean |
getForceReadOnly() |
int |
getModelIndex() |
protected Icon |
getNullIcon() |
TreeTableNodeFormat |
getNullValueFormat() |
PropertyDB |
getPropertyDB() |
String |
getPropertyName() |
PropertyTable |
getPropertyTable() |
TableColumn[] |
getTableColumns() |
xyz.cofe.collection.map.ClassMap<xyz.cofe.collection.Func1<TreeTableNodeFormat,Object>> |
getValueFormat()
Форматирование ClassMap<Форматирование, Объект, Узел> - функция:
fn ( Объект, Узел ) => Форматирование объекта. |
xyz.cofe.collection.Convertor<Column.Cell,Boolean> |
getWriter()
Запись значения ячейки.
|
boolean |
isRowEditable(Object row) |
boolean |
isVisible() |
PropertyColumn |
name(String name)
Имя колонки
|
PropertyColumn |
propertyDB(PropertyDB newPdb) |
PropertyColumn |
propertyName(String propertyName) |
PropertyColumn |
propertyTable(PropertyTable propertyTable) |
PropertyValue |
read(Object bean) |
void |
setForceReadOnly(Boolean forceReadOnly) |
void |
setName(String name)
Имя колонки
|
protected void |
setNullIcon(Icon ico) |
void |
setNullValueFormat(TreeTableNodeFormat nullValueFormat) |
void |
setPropertyDB(PropertyDB newPdb) |
void |
setPropertyName(String propertyName) |
void |
setPropertyTable(PropertyTable propertyTable) |
void |
setVisible(boolean visible) |
boolean |
write(Object bean,
PropertyValue pvalue) |
addPropertyChangeListener, firePropertyChange, getName, getReader, getReader, getType, propertySupport, reader, removePropertyChangeListener, rowReader, setReader, setType, setWriter, type, writerprotected Boolean forceReadOnly
protected transient volatile PropertyDB pdb
protected PropertyTable propertyTable
protected Icon nullIcon
protected volatile TreeTableNodeFormat nullValueFormat
protected xyz.cofe.collection.map.ClassMap<xyz.cofe.collection.Func1<TreeTableNodeFormat,Object>> valueFormat
protected String propertyName
public PropertyColumn()
public PropertyColumn(String name)
public PropertyColumn(String name, boolean forceReadonly)
public PropertyColumn(Object sync, PropertyColumn sample)
public Boolean getForceReadOnly()
public void setForceReadOnly(Boolean forceReadOnly)
public PropertyColumn forceReadonly(Boolean forceReadOnly)
public PropertyDB getPropertyDB()
public void setPropertyDB(PropertyDB newPdb)
public PropertyColumn propertyDB(PropertyDB newPdb)
public PropertyTable getPropertyTable()
public void setPropertyTable(PropertyTable propertyTable)
public PropertyColumn propertyTable(PropertyTable propertyTable)
public Columns getColumns()
public int getModelIndex()
protected Icon getNullIcon()
protected void setNullIcon(Icon ico)
public TreeTableNodeFormat getNullValueFormat()
public void setNullValueFormat(TreeTableNodeFormat nullValueFormat)
public xyz.cofe.collection.map.ClassMap<xyz.cofe.collection.Func1<TreeTableNodeFormat,Object>> getValueFormat()
public <T> PropertyColumn addValueFormat(Class<T> cls, xyz.cofe.collection.Func1<TreeTableNodeFormat,T> reader)
T - тип данных узлаcls - тип данных узлаreader - функция форматированияpublic PropertyColumn name(String name)
Columnpublic xyz.cofe.collection.Convertor<Column.Cell,Boolean> getWriter()
Columnpublic boolean isRowEditable(Object row)
isRowEditable in interface IsRowEditablepublic PropertyColumn clone()
public String getPropertyName()
public void setPropertyName(String propertyName)
public PropertyColumn propertyName(String propertyName)
public PropertyValue read(Object bean)
public boolean write(Object bean, PropertyValue pvalue)
public xyz.cofe.collection.map.ClassMap<Property> getClassProperties()
public PropertyColumn classProperty(Class beanClass, Property prop)
public <BEAN,PROP> PropertyColumn classProperty(Class<BEAN> beanClass, String name, Class<PROP> propType, xyz.cofe.collection.Func1<PROP,BEAN> propReader, xyz.cofe.collection.Func2<Object,BEAN,PROP> propWrite)
public TableColumn[] getTableColumns()
public boolean isVisible()
public void setVisible(boolean visible)
public TableColumn createTableColumn()
Copyright © 2017. All rights reserved.