public class PropertyColumn extends Column implements IsRowEditable
| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyColumn.Event |
static interface |
PropertyColumn.Listener |
static class |
PropertyColumn.PropertyWrited |
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 ClassMap<Func2<TreeTableNodeFormat,Object,Object>> |
valueFormat
valueFormat : ClassMap<Форматирование, Объект, Узел> - функция:
fn ( Объект, Узел ) => Форматирование объекта. |
| Constructor and Description |
|---|
PropertyColumn() |
PropertyColumn(Object sync,
PropertyColumn sample) |
PropertyColumn(String name) |
PropertyColumn(String name,
boolean forceReadonly) |
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 ClassMap<Func2<TreeTableNodeFormat,Object,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 hasListener(PropertyColumn.Listener listener)
public Set<PropertyColumn.Listener> getListeners()
public Closeable addListener(PropertyColumn.Listener listener)
public Closeable addListener(PropertyColumn.Listener listener, boolean weakLink)
public void removeListener(PropertyColumn.Listener listener)
public void fireEvent(PropertyColumn.Event event)
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 ClassMap<Func2<TreeTableNodeFormat,Object,Object>> getValueFormat()
public <T> PropertyColumn addValueFormat(Class<T> cls, Func2<TreeTableNodeFormat,Object,T> reader)
T - тип данных узлаcls - тип данных узлаreader - функция форматирования (bean, значение) => форматpublic <T> PropertyColumn addValueFormat(Class<T> cls, Func1<TreeTableNodeFormat,T> reader)
T - тип данных узлаcls - тип данных узлаreader - функция форматирования (значение) => форматpublic PropertyColumn name(String name)
Columnpublic 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 PropertyColumn classProperty(Class beanClass, Property prop)
public <BEAN,PROP> PropertyColumn classProperty(Class<BEAN> beanClass, String name, Class<PROP> propType, Func1<PROP,BEAN> propReader, Func2<Object,BEAN,PROP> propWrite)
public TableColumn[] getTableColumns()
public boolean isVisible()
public void setVisible(boolean visible)
public TableColumn createTableColumn()
Copyright © 2018. All rights reserved.