com.netgrif.application.engine.petrinet.domain.dataset.TextField.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.petrinet.domain.dataset
import org.springframework.data.annotation.Transient
import org.springframework.data.mongodb.core.mapping.Document
@Document
class TextField extends Field {
public static final String SIMPLE_SUBTYPE = "simple"
public static final String AREA_SUBTYPE = "area"
private String subType
@Transient
private Integer maxLength
@Transient
private String formatting
TextField() {
super()
}
@Override
FieldType getType() {
return FieldType.TEXT
}
TextField(String subtype) {
this()
this.subType = subtype != null ? subtype : SIMPLE_SUBTYPE
}
String getSubType() {
return subType
}
Integer getMaxLength() {
return maxLength
}
String getFormatting() {
return formatting
}
void setSubType(String subType) {
this.subType = subType
}
void setMaxLength(Integer maxLength) {
this.maxLength = maxLength
}
void setFormatting(String formatting) {
this.formatting = formatting
}
@Override
Field clone() {
TextField clone = new TextField()
super.clone(clone)
clone.subType = this.subType
return clone
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy