|
|||||||||
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.JavaInteger
public class JavaInteger
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.simantics.databoard.accessor.Accessor |
---|
Accessor.Listener |
Constructor Summary | |
---|---|
JavaInteger(Accessor parent,
IntegerBinding binding,
java.lang.Object object,
AccessorParams params)
|
Method Summary | ||
---|---|---|
IntegerBinding |
getBinding()
|
|
|
getComponent(ChildReference reference)
Open an accessor to a child. |
|
int |
getValue()
|
|
void |
setValue(Binding binding,
java.lang.Object newValue)
Set a complete new value to the data container. |
|
void |
setValue(int newValue)
|
|
IntegerType |
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 JavaInteger(Accessor parent, IntegerBinding binding, java.lang.Object object, AccessorParams params)
Method Detail |
---|
public IntegerBinding getBinding()
getBinding
in class JavaObject
public IntegerType type()
Accessor
type
in interface Accessor
type
in interface IntegerAccessor
type
in class JavaObject
public int getValue() throws AccessorException
getValue
in interface IntegerAccessor
AccessorException
public void setValue(int newValue) throws AccessorException
setValue
in interface IntegerAccessor
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 |