|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RecordAccessor
Accessor to a Record.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.simantics.databoard.accessor.Accessor |
---|
Accessor.Listener |
Method Summary | ||
---|---|---|
int |
count()
Get the number of fields in the record |
|
|
getFieldAccessor(int index)
Get an accessor to a field. |
|
|
getFieldAccessor(java.lang.String fieldName)
Get an accessor to a field. |
|
java.lang.Object |
getFieldValue(int index,
Binding fieldBinding)
Get field value |
|
void |
setFieldValue(int index,
Binding fieldBinding,
java.lang.Object value)
Set field value. |
|
RecordType |
type()
Get structural represtentation of the accessor presented in databoard's type system. |
Methods inherited from interface org.simantics.databoard.accessor.Accessor |
---|
addListener, apply, getComponent, getValue, getValue, removeListener, setValue |
Method Detail |
---|
int count() throws AccessorException
AccessorException
<T extends Accessor> T getFieldAccessor(int index) throws AccessorConstructionException
setFieldValue(int, Binding, Object)
.
index
-
AccessorConstructionException
<T extends Accessor> T getFieldAccessor(java.lang.String fieldName) throws AccessorConstructionException
setFieldValue(int, Binding, Object)
.
fieldName
-
AccessorConstructionException
java.lang.Object getFieldValue(int index, Binding fieldBinding) throws AccessorException
index
-
AccessorException
void setFieldValue(int index, Binding fieldBinding, java.lang.Object value) throws AccessorException
index
- field indexfieldBinding
- value
-
AccessorException
RecordType type()
Accessor
type
in interface Accessor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |