- java.lang.Object
-
- swim.store.ValueDataView<V>
-
- All Implemented Interfaces:
ValueData<V>
,DataContext
,ValueDataContext
public class ValueDataView<V> extends Object implements ValueData<V>, ValueDataContext
-
-
Field Summary
Fields Modifier and Type Field Description protected ValueDataBinding
dataBinding
protected Form<V>
valueForm
-
Constructor Summary
Constructors Constructor Description ValueDataView(ValueDataBinding dataBinding, Form<V> valueForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ValueDataBinding
dataBinding()
void
didChange()
void
didCommit()
void
didSet(Value newValue, Value oldValue)
V
get()
boolean
isResident()
ValueDataView<V>
isResident(boolean isResident)
boolean
isTransient()
ValueDataView<V>
isTransient(boolean isTransient)
Value
name()
V
set(V newValueObject)
<V2> ValueDataView<V2>
valueClass(Class<V2> valueClass)
Form<V>
valueForm()
<V2> ValueDataView<V2>
valueForm(Form<V2> valueForm)
-
-
-
Field Detail
-
dataBinding
protected final ValueDataBinding dataBinding
-
-
Constructor Detail
-
ValueDataView
public ValueDataView(ValueDataBinding dataBinding, Form<V> valueForm)
-
-
Method Detail
-
dataBinding
public ValueDataBinding dataBinding()
-
valueForm
public <V2> ValueDataView<V2> valueForm(Form<V2> valueForm)
-
valueClass
public <V2> ValueDataView<V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClass
in interfaceValueData<V>
-
isResident
public boolean isResident()
- Specified by:
isResident
in interfaceValueData<V>
-
isResident
public ValueDataView<V> isResident(boolean isResident)
- Specified by:
isResident
in interfaceValueData<V>
-
isTransient
public boolean isTransient()
- Specified by:
isTransient
in interfaceValueData<V>
-
isTransient
public ValueDataView<V> isTransient(boolean isTransient)
- Specified by:
isTransient
in interfaceValueData<V>
-
didChange
public void didChange()
- Specified by:
didChange
in interfaceDataContext
-
didCommit
public void didCommit()
- Specified by:
didCommit
in interfaceDataContext
-
didSet
public void didSet(Value newValue, Value oldValue)
- Specified by:
didSet
in interfaceValueDataContext
-
-