|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simantics.databoard.accessor.java.JavaObject
org.simantics.databoard.accessor.java.JavaDouble
public class JavaDouble
Accessor to a Java Object that contains a Double Type.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.simantics.databoard.accessor.Accessor |
---|
Accessor.Listener |
Constructor Summary | |
---|---|
JavaDouble(Accessor parent,
DoubleBinding binding,
java.lang.Object object,
AccessorParams params)
|
Method Summary | ||
---|---|---|
|
getAccessor(AccessorReference reference)
Get an accessor to a sub-container. |
|
DoubleBinding |
getBinding()
|
|
double |
getValue()
|
|
void |
setValue(Binding binding,
java.lang.Object newValue)
Set a complete new value to the data container. |
|
void |
setValue(double newValue)
|
|
DoubleType |
type()
Get structural represtentation of the accessor presented in databoard's type system. |
Methods inherited from class org.simantics.databoard.accessor.java.JavaObject |
---|
addListener, apply, createAccessor, createSubAccessor, getEmitter, getObject, getParams, getReadLock, getValue, getWriteLock, notifyValueChanged, removeListener, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.simantics.databoard.accessor.Accessor |
---|
addListener, apply, getValue, removeListener |
Constructor Detail |
---|
public JavaDouble(Accessor parent, DoubleBinding binding, java.lang.Object object, AccessorParams params)
Method Detail |
---|
public DoubleBinding getBinding()
getBinding
in class JavaObject
public DoubleType type()
Accessor
type
in interface Accessor
type
in interface DoubleAccessor
type
in class JavaObject
public double getValue() throws AccessorException
getValue
in interface DoubleAccessor
AccessorException
public void setValue(double newValue) throws AccessorException
setValue
in interface DoubleAccessor
AccessorException
public void setValue(Binding binding, java.lang.Object newValue) throws AccessorException
Accessor
InvalidatedEvent
. Writing the current value again may not emit an event. This is implementation specific.
Write is durable, once a the method returns successfully the value has been stored in the implmentation.
setValue
in interface Accessor
AccessorException
public <T extends Accessor> T getAccessor(AccessorReference reference) throws AccessorConstructionException
Accessor
InvalidatedEvent is thrown from the accessor if it is unlinked from the parent hierarchy.
getAccessor
in interface Accessor
reference
- component reference or null
to return _this_ accessor
AccessorConstructionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |