public static class PropertySheet.EditProperties extends Object
| Modifier and Type | Field and Description |
|---|---|
protected PropertySheet.Edit |
edit |
| Constructor and Description |
|---|
EditProperties(PropertySheet.Edit edit) |
| Modifier and Type | Method and Description |
|---|---|
PropertySheet.Edit |
add(Property prop)
Добавить свойство
|
<T> PropertySheet.Edit |
add(String name,
Class<T> type,
xyz.cofe.collection.Func0<T> r)
Добавить/создать read-only свойство
|
<T> PropertySheet.Edit |
add(String name,
Class<T> type,
xyz.cofe.collection.Func0<T> r,
xyz.cofe.collection.Func1<Object,T> w)
Добавить/создать read-write свойство
|
PropertySheet.Edit |
addAsProperty(Object value,
String name)
Добавить объект как свойство
|
PropertySheet.PropBuilder |
create(String name)
Создать/добавить свойство
|
PropertySheet.Edit |
exclude(Object bean,
String... properties)
Добавить свойства указанного объекта, за исключением указанных
|
PropertySheet.Edit |
include(Object bean,
String... properties)
Добавить свойства указанного объекта
|
protected PropertySheet.Edit edit
public EditProperties(PropertySheet.Edit edit)
public PropertySheet.Edit add(Property prop)
prop - свойствоpublic PropertySheet.Edit addAsProperty(Object value, String name)
name - Имя свойстваvalue - Значениеpublic PropertySheet.Edit include(Object bean, String... properties)
bean - объектproperties - свойстваpublic PropertySheet.Edit exclude(Object bean, String... properties)
bean - объектproperties - свойства которые не включать в наборpublic <T> PropertySheet.Edit add(String name, Class<T> type, xyz.cofe.collection.Func0<T> r)
T - Тип свойстваname - Имя свойстваtype - типr - функция чтения свойстваpublic <T> PropertySheet.Edit add(String name, Class<T> type, xyz.cofe.collection.Func0<T> r, xyz.cofe.collection.Func1<Object,T> w)
T - Тип свойстваname - Имя свойстваtype - типr - функция чтения свойстваw - функция записи свойстваpublic PropertySheet.PropBuilder create(String name)
name - имя свойстваCopyright © 2019. All rights reserved.