|
|||||||||
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(Accessor parent,
ByteBinding binding,
java.lang.Object object,
AccessorParams params)
|
Method Summary | ||
---|---|---|
ByteBinding |
getBinding()
|
|
|
getComponent(ChildReference reference)
Open an accessor to a child. |
|
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. |
Methods inherited from class org.simantics.databoard.accessor.java.JavaObject |
---|
addListener, apply, createAccessor, createSubAccessor, getObject, getParams, getReadLock, getValue, 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, getValue, removeListener |
Constructor Detail |
---|
public JavaByte(Accessor parent, ByteBinding binding, java.lang.Object object, AccessorParams params)
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
If the new value removes old map entries, array entries, optional value, or
changes union or variant value type, it will disengage any existing
sub-accessors and send 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 getComponent(ChildReference reference) throws AccessorConstructionException
Accessor
InvalidatedEvent is thrown from the accessor if it is unlinked from the parent hierarchy.
getComponent
in interface Accessor
reference
- component reference path or null
to return _this_ accessor
AccessorConstructionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |