Class AbstractFieldInfo
java.lang.Object
ch.tocco.nice2.netui.api.bind.entity.AbstractFieldInfo
- Direct Known Subclasses:
IteratorContainerFieldInfo
,RangeFieldInfo
,SelectionFieldInfo
,ValueFieldInfo
One field represents a form field plus the bound data uri and value.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
How to show the gui component.static enum
When to return the data value from the client to the server. -
Constructor Summary
ConstructorDescriptionAbstractFieldInfo
(String componentId, URI fieldOrRelationUri, long version, AbstractFieldInfo.ReturnValue returnValue, AbstractFieldInfo.DisplayType displayType) -
Method Summary
Modifier and TypeMethodDescriptionlong
void
toConception
(String oldPk, String entityName) Changes the primary key in the field uri to conception "~".
-
Constructor Details
-
AbstractFieldInfo
public AbstractFieldInfo(String componentId, URI fieldOrRelationUri, long version, AbstractFieldInfo.ReturnValue returnValue, AbstractFieldInfo.DisplayType displayType) - Parameters:
componentId
- The name/id of the gui component.fieldOrRelationUri
- The uri of the entity field or relation.version
- The current version the entity (fieldOrRelationUri) has (not the value).returnValue
- Under what circumstances the value must be sent back to the server.displayType
- If and how the user can see and edit the value.
-
-
Method Details
-
toConception
Changes the primary key in the field uri to conception "~".- Parameters:
oldPk
- The expected pk in the field uri.entityName
- The name of the entity- Throws:
RuntimeException
- If the expected oldPk does not occur exactly once.URISyntaxException
- Really shouldn't happen.
-
getComponentId
-
getFieldUri
-
getVersion
public long getVersion() -
getReturnValue
-
getDisplayType
-