public abstract class PropertyComponent extends Object
| Modifier and Type | Field and Description |
|---|---|
protected WeakReference<Object> |
beanRef |
protected Func2<String,Object,Object> |
convertor |
protected boolean |
convertorResolved |
protected CloseableSet |
listeners |
protected WeakReference<PropertyDescriptor> |
property |
| Constructor and Description |
|---|
PropertyComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
Object |
getBean()
Возвращает прослушиваемый бин
|
abstract Component |
getComponent()
Компонент отображающий значение свойства
|
Func2<String,Object,Object> |
getConvertor()
Конвертор значения в текстовое представление
|
Grid |
getGrid() |
PropertyDescriptor |
getPropertyDescriptor()
Возвращает прослушиваемое свойство
|
Status |
getStatus() |
boolean |
isRunning()
Возвращает состояние прослушки свойства
|
void |
start(Object bean,
PropertyDescriptor pDesc)
Начинает прослушку изменения свойства указанного компонента
|
void |
stop()
Останавливает прослушку свойства
|
abstract void |
update(Object value)
Обновляет ui компонент согласно значению свойства
|
protected WeakReference<Object> beanRef
protected WeakReference<PropertyDescriptor> property
protected final CloseableSet listeners
protected volatile boolean convertorResolved
protected void finalize()
throws Throwable
public Object getBean()
public PropertyDescriptor getPropertyDescriptor()
public Func2<String,Object,Object> getConvertor()
public void start(Object bean, PropertyDescriptor pDesc)
bean - бинpDesc - свойствоpublic void stop()
public boolean isRunning()
public abstract void update(Object value)
value - значениеpublic abstract Component getComponent()
public Status getStatus()
public Grid getGrid()
Copyright © 2018. All rights reserved.