public abstract class AbstractField<T extends AbstractFieldDef> extends java.lang.Object implements Field
| Constructor and Description |
|---|
AbstractField(Form owner,
T def,
SelectExpression expression) |
AbstractField(Form owner,
T def,
SelectExpression expression,
com.technia.tvc.core.gui.table.ColumnSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(FieldVisitor visitor) |
com.technia.tvc.core.gui.table.Column |
asColumn() |
boolean |
edit(FormInput input,
UpdateResult result) |
java.lang.String |
getCrossSectionDependsOn() |
java.lang.String |
getCrossSectionDependsOnValue() |
DataType |
getDataType() |
java.lang.String |
getDefaultFunctionName() |
java.lang.String |
getDependsOn() |
java.lang.String |
getDependsOnValue() |
java.lang.String |
getDescription() |
T |
getFieldDef() |
java.lang.String |
getFieldOptions() |
FieldType |
getFieldType() |
java.lang.String |
getId() |
java.lang.String |
getLabel() |
java.lang.String |
getLabel(java.util.Locale locale) |
Form |
getOwner() |
java.lang.String |
getTemplate() |
ValidationRules |
getValidationRules() |
com.technia.tvc.core.gui.table.Cell |
getValue() |
protected void |
handleFieldEditError(UpdateResult result,
com.technia.tvc.core.TVCException e) |
boolean |
isMergeDBValue() |
void |
setValue(com.technia.tvc.core.gui.table.Cell value) |
void |
toJSON(com.technia.tvc.core.util.json.JSONWriter writer) |
protected void |
writeOther(com.technia.tvc.core.util.json.JSONWriter writer) |
public AbstractField(Form owner, T def, SelectExpression expression)
public AbstractField(Form owner, T def, SelectExpression expression, com.technia.tvc.core.gui.table.ColumnSettings settings)
public boolean edit(FormInput input, UpdateResult result)
protected void handleFieldEditError(UpdateResult result, com.technia.tvc.core.TVCException e)
public java.lang.String getLabel(java.util.Locale locale)
public T getFieldDef()
public com.technia.tvc.core.gui.table.Column asColumn()
public void accept(FieldVisitor visitor)
public com.technia.tvc.core.gui.table.Cell getValue()
public void setValue(com.technia.tvc.core.gui.table.Cell value)
public java.lang.String getDependsOn()
public java.lang.String getCrossSectionDependsOn()
public java.lang.String getCrossSectionDependsOnValue()
public boolean isMergeDBValue()
public java.lang.String getDependsOnValue()
public java.lang.String getDescription()
public java.lang.String getLabel()
public java.lang.String getTemplate()
public java.lang.String getDefaultFunctionName()
public FieldType getFieldType()
public DataType getDataType()
public ValidationRules getValidationRules()
public java.lang.String getFieldOptions()
public void toJSON(com.technia.tvc.core.util.json.JSONWriter writer)
toJSON in interface com.technia.tvc.core.util.json.JSONWriteableprotected void writeOther(com.technia.tvc.core.util.json.JSONWriter writer)