|
|||||||||
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.JavaByte
public class JavaByte
Accessor to a Java Object that contains a Byte Type.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.simantics.databoard.accessor.Accessor |
---|
Accessor.Listener |
Constructor Summary | |
---|---|
JavaByte(JavaObject parent,
ByteBinding binding,
java.lang.Object object)
|
Method Summary | ||
---|---|---|
|
getAccessor(AccessorReference reference)
Get an accessor to a sub-container. |
|
ByteBinding |
getBinding()
|
|
byte |
getValue()
|
|
void |
setValue(Binding binding,
java.lang.Object newValue)
Set a complete new value to the data container. |
|
void |
setValue(byte newValue)
|
|
ByteType |
type()
Get structural represtentation of the accessor presented in databoard's type system format. |
Methods inherited from class org.simantics.databoard.accessor.java.JavaObject |
---|
addListener, apply, createAccessor, getObject, getValue, 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 JavaByte(JavaObject parent, ByteBinding binding, java.lang.Object object)
Method Detail |
---|
public ByteBinding getBinding()
getBinding
in class JavaObject
public ByteType type()
Accessor
type
in interface Accessor
type
in interface ByteAccessor
type
in class JavaObject
public byte getValue() throws AccessorException
getValue
in interface ByteAccessor
AccessorException
public void setValue(byte newValue) throws AccessorException
setValue
in interface ByteAccessor
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 |