public final class ImportFieldElement extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable, REpiceaUIObject
Modifier and Type | Class and Description |
---|---|
static class |
ImportFieldElement.FieldType |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
description |
protected java.lang.Enum<?> |
fieldID |
ImportFieldElement.FieldType |
fieldTypeClass |
java.lang.String |
helpDescription |
boolean |
isOptional |
java.lang.String |
propertyName |
Constructor and Description |
---|
ImportFieldElement(LevelProviderEnum fieldID,
int fieldIndex,
ImportFieldElement.FieldType fieldTypeClass)
Short constructor for JUnit test
|
ImportFieldElement(LevelProviderEnum fieldID,
java.lang.String description,
java.lang.String propertyName,
boolean isOptional,
java.lang.String helpDescription,
ImportFieldElement.FieldType fieldType)
General constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Enum |
getFieldID()
This method returns the Enum variable who serves as ID for the field.
|
java.lang.String |
getFieldName() |
ImportFieldElement.FieldType |
getFieldType()
This method returns the type of field which can be a String, a Double or an Integer.
|
int |
getMatchingFieldIndex() |
repicea.io.tools.ImportFieldElementPanel |
getUI()
This method returns the GUI interface of the class that implements this interface.
|
boolean |
isVisible()
This method returns true if the GUI is visible.
|
void |
setFieldMatch(FormatField formatField)
This method sets the name and the match index of the ImportFieldElement instance.
|
public java.lang.String description
public java.lang.String propertyName
public boolean isOptional
public java.lang.String helpDescription
public ImportFieldElement.FieldType fieldTypeClass
protected java.lang.Enum<?> fieldID
public ImportFieldElement(LevelProviderEnum fieldID, java.lang.String description, java.lang.String propertyName, boolean isOptional, java.lang.String helpDescription, ImportFieldElement.FieldType fieldType)
fieldID
- the field id enum variable which implements the LevelProviderEnumdescription
- a String that describes the fieldpropertyName
- the property name for savingisOptional
- a boolean that specifies whether the field is optionalhelpDescription
- a String that helps the user (may appear in a popup windowfieldType
- an FieldType enumpublic ImportFieldElement(LevelProviderEnum fieldID, int fieldIndex, ImportFieldElement.FieldType fieldTypeClass)
fieldID
- the field id enum variablefieldIndex
- the matching field index in the dbf filefieldTypeClass
- an FieldType enumpublic void setFieldMatch(FormatField formatField)
formatField
- a FormatField instancepublic repicea.io.tools.ImportFieldElementPanel getUI()
REpiceaUIObject
getUI
in interface REpiceaUIObject
public java.lang.String getFieldName()
public int getMatchingFieldIndex()
public java.lang.Enum getFieldID()
public ImportFieldElement.FieldType getFieldType()
public boolean isVisible()
REpiceaUIObject
isVisible
in interface REpiceaUIObject