|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OptionalAccessor
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.simantics.databoard.accessor.Accessor |
---|
Accessor.Listener |
Method Summary | ||
---|---|---|
|
getComponentAccessor()
Get accessor to the component value or null if there is no component value |
|
java.lang.Object |
getComponentValue(Binding componentBinding)
Return component value if there is a component value. |
|
boolean |
hasValue()
Return true if there is a value assigned |
|
void |
setComponentValue(Binding componentBinding,
java.lang.Object componentValue)
Set a new component value. |
|
void |
setNoValue()
Sets no value. |
|
void |
setValue(Binding componentBinding,
java.lang.Object newComponentValue)
Set a new value. |
|
OptionalType |
type()
Get structural represtentation of the accessor presented in databoard's type system format. |
Methods inherited from interface org.simantics.databoard.accessor.Accessor |
---|
addListener, apply, getAccessor, getValue, removeListener |
Method Detail |
---|
void setValue(Binding componentBinding, java.lang.Object newComponentValue) throws AccessorException
setValue
in interface Accessor
componentBinding
- of component typenewComponentValue
- component value
BindingException
- binding error
java.lang.UnsupportedOperationException
- cannot set a new value
AccessorException
void setNoValue() throws AccessorException
AccessorException
boolean hasValue() throws AccessorException
AccessorException
java.lang.Object getComponentValue(Binding componentBinding) throws AccessorException
componentBinding
- component binding
AccessorException
void setComponentValue(Binding componentBinding, java.lang.Object componentValue) throws AccessorException
componentBinding
- componentValue
-
AccessorException
<T extends Accessor> T getComponentAccessor() throws AccessorConstructionException
null
if there is no component value
null
AccessorConstructionException
OptionalType type()
Accessor
type
in interface Accessor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |