Class AbstractFieldInfo

java.lang.Object
ch.tocco.nice2.netui.api.bind.entity.AbstractFieldInfo
Direct Known Subclasses:
IteratorContainerFieldInfo, RangeFieldInfo, SelectionFieldInfo, ValueFieldInfo

@Deprecated public abstract class AbstractFieldInfo extends Object
Deprecated.
One field represents a form field plus the bound data uri and value.
  • Constructor Details

    • AbstractFieldInfo

      public AbstractFieldInfo(String componentId, URI fieldOrRelationUri, long version, AbstractFieldInfo.ReturnValue returnValue, AbstractFieldInfo.DisplayType displayType)
      Deprecated.
      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

      public void toConception(String oldPk, String entityName) throws URISyntaxException
      Deprecated.
      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

      public String getComponentId()
      Deprecated.
    • getFieldUri

      public URI getFieldUri()
      Deprecated.
    • getVersion

      public long getVersion()
      Deprecated.
    • getReturnValue

      public AbstractFieldInfo.ReturnValue getReturnValue()
      Deprecated.
    • getDisplayType

      public AbstractFieldInfo.DisplayType getDisplayType()
      Deprecated.