Package com.im.df.api.support
Interface DFNewTypeWellKnownOptions.NewCTField
-
- All Superinterfaces:
DFNewTypeOptions
,DFNewTypeWellKnownOptions.FieldOptions
,DFNewTypeWellKnownOptions.NewDBField
,DFNewTypeWellKnownOptions.SingleDFItem
- Enclosing interface:
- DFNewTypeWellKnownOptions
public static interface DFNewTypeWellKnownOptions.NewCTField extends DFNewTypeWellKnownOptions.NewDBField
Options for creating a new DFField with DFFieldChemicalTermsCapability
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROP_FORMULA
static java.lang.String
PROP_GENERIC_TYPE
-
Fields inherited from interface com.im.df.api.support.DFNewTypeOptions
PROP_ERROR_MESSAGE, PROP_VALID
-
Fields inherited from interface com.im.df.api.support.DFNewTypeWellKnownOptions.SingleDFItem
PROP_DESCRIPTION, PROP_NEW_DFITEM_NAME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getFormula()
com.im.commons.db.ddl.GenericColumnType
getGenericType()
java.util.List<com.im.commons.db.ddl.GenericColumnType>
getSupportedGenericTypes()
void
setFormula(java.lang.String formula)
Set the formula for chemical terms field.void
setFormulaSync(java.lang.String formula)
Sets the formula synchronously.void
setGenericType(com.im.commons.db.ddl.GenericColumnType type)
void
setGenericTypeSync(com.im.commons.db.ddl.GenericColumnType type)
Sets generic type of new field and waits for its validation.-
Methods inherited from interface com.im.df.api.support.DFNewTypeOptions
addPropertyChangeListener, getErrorMessage, isValid, removePropertyChangeListener
-
Methods inherited from interface com.im.df.api.support.DFNewTypeWellKnownOptions.FieldOptions
createInsertOptions, getConvertor
-
Methods inherited from interface com.im.df.api.support.DFNewTypeWellKnownOptions.NewDBField
getColumns, getDefaultValue, getRequired, isDisctinctValues, setColumnBaseName, setDefaultValue, setDisctinctValues, setRequired
-
Methods inherited from interface com.im.df.api.support.DFNewTypeWellKnownOptions.SingleDFItem
getDescription, getNewDFItemName, setDescription, setNewDFItemName, setNewDFItemNameSafe
-
-
-
-
Field Detail
-
PROP_FORMULA
static final java.lang.String PROP_FORMULA
- See Also:
- Constant Field Values
-
PROP_GENERIC_TYPE
static final java.lang.String PROP_GENERIC_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFormula
java.lang.String getFormula()
-
setFormula
void setFormula(java.lang.String formula)
Set the formula for chemical terms field. The validation may run in background and the validation result isn't guaranteed to be known at the time this method returns.- Parameters:
formula
- chemical terms expression
-
setFormulaSync
void setFormulaSync(java.lang.String formula)
Sets the formula synchronously. After this method returns,DFNewTypeOptions.isValid()
andDFNewTypeOptions.getErrorMessage()
will return correct values. If you create new field programatically, this method is probably more useful to you thansetFormula
.- Parameters:
formula
- chemical terms expression
-
getSupportedGenericTypes
java.util.List<com.im.commons.db.ddl.GenericColumnType> getSupportedGenericTypes()
-
setGenericType
void setGenericType(com.im.commons.db.ddl.GenericColumnType type)
-
setGenericTypeSync
void setGenericTypeSync(com.im.commons.db.ddl.GenericColumnType type)
Sets generic type of new field and waits for its validation. Should be set to the return type of formula.- Parameters:
type
-- See Also:
setFormulaSync(java.lang.String)
-
getGenericType
com.im.commons.db.ddl.GenericColumnType getGenericType()
-
-