Package adalid.core
Class DisplayField
- java.lang.Object
-
- adalid.core.AbstractArtifact
-
- adalid.core.DisplayField
-
- All Implemented Interfaces:
Wrappable,Artifact,Comparable<DisplayField>
public abstract class DisplayField extends AbstractArtifact implements Comparable<DisplayField>
- Author:
- Jorge Campins
-
-
Field Summary
-
Fields inherited from class adalid.core.AbstractArtifact
ENGLISH, NBSP, PORTUGUESE, SPANISH
-
-
Constructor Summary
Constructors Constructor Description DisplayField(Display display, EntityCollection collection)DisplayField(Display display, Property property)DisplayField(Display display, QueryTable queryTable, Property property, DisplayField parentField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DisplayField o)protected StringfieldsToString(int n, String key, boolean verbose, boolean fields, boolean maps)ArtifactgetArtifact()List<DisplayField>getChildren()DataArtifactgetDataArtifact()DisplaygetDisplay()EntityCollectiongetEntityCollection()DisplayFieldgetForeignCodeField()DisplayFieldgetForeignNameField()ParametergetParameter()DisplayFieldgetParent()PropertygetProperty()StepgetStep()intgetStepFieldIndex()intgetTabFieldIndex(Tab tab)Map<Tab,Integer>getTabs()booleanisDataArtifact()booleanisEntityCollection()booleanisForeignCode()booleanisForeignName()booleanisInTab(Tab tab)booleanisParameter()booleanisProperty()protected StringmapsToString(int n, String key, boolean verbose, boolean fields, boolean maps)voidsetForeignCode(boolean indicator)voidsetForeignName(boolean indicator)-
Methods inherited from class adalid.core.AbstractArtifact
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttributes, annotate, checkName, classToString, clearAttributes, coalesce, copyLocalizedStrings, defaultLocale, depth, fa, finalise, getAlias, getAttribute, getAttribute, getAttributes, getAttributesArray, getAttributesArray, getAttributesKeySetByRegex, getBooleanAttribute, getBooleanAttribute, getClassPath, getDeclaringArtifact, getDeclaringEntity, getDeclaringEntityRoot, getDeclaringField, getDeclaringFieldEntityRoot, getDeclaringFieldIndex, getDeclaringFieldNamedClassSimpleName, getDeclaringFieldPersistentEntityRoot, getDeclaringFieldPersistentEntityTableRoot, getDeclaringOperation, getDeclaringPersistentEntity, getDeclaringPersistentEntityRoot, getDefaultCollectionLabel, getDefaultCollectionShortLabel, getDefaultDescription, getDefaultLabel, getDefaultLocale, getDefaultShortDescription, getDefaultShortLabel, getDefaultSymbol, getDefaultTooltip, getDefaultWrapperClass, getFullName, getIntegerAttribute, getIntegerAttribute, getIntegerAttribute, getIntegerAttribute, getKeyValuePairAttribute, getKeyValuePairAttribute, getKeyValuePairAttribute, getKeyValuePairAttribute, getLocalizedCollectionLabel, getLocalizedCollectionShortLabel, getLocalizedDescription, getLocalizedLabel, getLocalizedShortDescription, getLocalizedShortLabel, getLocalizedSymbol, getLocalizedTooltip, getName, getPartialName, getPathList, getPathString, getSqlName, getStringAttribute, getStringAttribute, getStringAttribute, getStringAttribute, getTrace, getValidFieldAnnotations, getValidTypeAnnotations, getValueString, getValueString, getWrapper, hashCodeHexString, isAnnotated, isClassInPath, isDeclared, isExpression, isFinalised, isFontAwesomeClass, isInherited, isInheritedFromAbstract, isInheritedFromConcrete, isLocalizedSymbolDefined, isNotDeclared, isNotInherited, isNotInheritedFromAbstract, isNotInheritedFromConcrete, isOperation, isValidEmbeddedDocument, isValidFieldAnnotation, isValidHelpFileName, isValidHelpFileType, isValidJavaClassName, isValidSnippetFileName, isValidTypeAnnotation, localeReadingKey, localeWritingKey, put, repeat, round, setAlias, setDefaultCollectionLabel, setDefaultCollectionShortLabel, setDefaultDescription, setDefaultLabel, setDefaultShortDescription, setDefaultShortLabel, setDefaultSymbol, setDefaultTooltip, setLocalizedCollectionLabel, setLocalizedCollectionShortLabel, setLocalizedDescription, setLocalizedLabel, setLocalizedShortDescription, setLocalizedShortLabel, setLocalizedSymbol, setLocalizedTooltip, setSqlName, setStaticAttributes, settler, setTrace, specified, specified, specified, specified, specified, specified, toString, toString, toString, toString, toString, verifyExpression, verifyExpression, verifyExpression, verifyExpression, verifyExpression, verifyExpression, verifyNames
-
-
-
-
Constructor Detail
-
DisplayField
public DisplayField(Display display, EntityCollection collection)
-
DisplayField
public DisplayField(Display display, QueryTable queryTable, Property property, DisplayField parentField)
-
-
Method Detail
-
getDisplay
public Display getDisplay()
- Returns:
- the display
-
getArtifact
public Artifact getArtifact()
- Returns:
- the linked artifact
-
getDataArtifact
public DataArtifact getDataArtifact()
- Returns:
- the linked data artifact
-
isDataArtifact
public boolean isDataArtifact()
- Returns:
- true if data artifact is not null
-
getParameter
public Parameter getParameter()
- Returns:
- the linked parameter
-
isParameter
public boolean isParameter()
- Returns:
- true if data artifact is a parameter
-
getProperty
public Property getProperty()
- Returns:
- the linked property
-
isProperty
public boolean isProperty()
- Returns:
- true if data artifact is a property
-
getEntityCollection
public EntityCollection getEntityCollection()
- Returns:
- the entity collection
-
isEntityCollection
public boolean isEntityCollection()
- Returns:
- true if entity collection is not null
-
getParent
public DisplayField getParent()
- Returns:
- the parent field
-
getStep
public Step getStep()
- Returns:
- the step
-
getStepFieldIndex
public int getStepFieldIndex()
- Returns:
- the step field index
-
isInTab
public boolean isInTab(Tab tab)
- Parameters:
tab- the tab to search- Returns:
- true if the tab contains this field
-
getTabFieldIndex
public int getTabFieldIndex(Tab tab)
- Parameters:
tab- the tab to search- Returns:
- the tab field index
-
isForeignCode
public boolean isForeignCode()
- Returns:
- the foreign code indicator
-
setForeignCode
public void setForeignCode(boolean indicator)
- Parameters:
indicator- the foreign code indicator to set
-
getForeignCodeField
public DisplayField getForeignCodeField()
-
isForeignName
public boolean isForeignName()
- Returns:
- the foreign name indicator
-
setForeignName
public void setForeignName(boolean indicator)
- Parameters:
indicator- the foreign name indicator to set
-
getForeignNameField
public DisplayField getForeignNameField()
-
getChildren
public List<DisplayField> getChildren()
- Returns:
- the children
-
compareTo
public int compareTo(DisplayField o)
- Specified by:
compareToin interfaceComparable<DisplayField>
-
fieldsToString
protected String fieldsToString(int n, String key, boolean verbose, boolean fields, boolean maps)
- Overrides:
fieldsToStringin classAbstractArtifact
-
mapsToString
protected String mapsToString(int n, String key, boolean verbose, boolean fields, boolean maps)
- Overrides:
mapsToStringin classAbstractArtifact
-
-