public class FormularTemplate extends EntityStrukturTemplate
It traverses the Entity-Relationship model (EntityI/AttributeI) and constructs a layout containing Tabs, Views, and Form Elements (Text fields, ComboBoxes, Trees, etc.).
It handles:
| Constructor and Description |
|---|
FormularTemplate()
Default constructor.
|
FormularTemplate(SQLCoreDataStoreI store,
electric.xml.Document doc,
long elterDefault,
java.lang.StringBuilder sbLivelist)
Constructor for testing.
|
FormularTemplate(SQLCoreDataStoreI store,
EntityI entity,
long idElter)
Constructor for initialization with a specific Id.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendAttributeByType(java.lang.StringBuilder sv,
java.lang.StringBuilder rv,
EntityI entity,
EntityI mainEntity,
AttributeI backAttributeToParent,
java.util.Map<java.lang.String,java.lang.Integer> attributeCountByName,
boolean renderTabs,
boolean scrollable,
boolean filterOutBOAttrs,
boolean showHiddenAttrs,
java.lang.Boolean filterToVirtual,
boolean sort,
int remainingRecursionDepth)
Processes a list of attributes for a specific entity and appends the corresponding XML Elements
to either the scalar view buffer (sv) or the relation view buffer (rv).
|
void |
appendFormElementForSimpleAttribute(java.lang.StringBuilder sv,
AttributeI attr,
boolean needsVisibleIf)
Appends the appropriate XML element for a simple (scalar) attribute.
|
java.lang.StringBuilder |
appendPopupDetailView(java.lang.StringBuilder sv,
AttributeI relationAttr,
int remainingRecursionDepth)
Creates a Popup component and optionally a nested DetailView for n:1 relations.
|
java.lang.StringBuilder |
appendViewElementsForEntity(java.lang.StringBuilder sb,
EntityI mainEntity,
AttributeI backAttributeToParent,
boolean renderTabs,
boolean scrollable,
boolean filterOutBOAttrs,
boolean showHiddenAttrs,
java.lang.Boolean filterToVirtual,
boolean sort,
int remainingRecursionDepth)
Core method: Fills a View with Elements representing the attributes of the given entity.
|
java.lang.String |
createStandardParameter(EntityI entity)
Generates the standard XML for the Entity.
|
java.lang.String |
getBOTName()
Returns the Business Object Type name.
|
boolean |
isPolymorphic() |
void |
setPolymorphic(boolean $19) |
appendFTableWithColumnsForEntity, appendFTableWithColumnsForEntity, appendOpenRelationFTableWithColumnsForEntity, createColumnsForEntity, filterAttrs, getBotyp, getDefaultName, getGruppen, getGruppen, getParameter, getPrioritaet, setBotyp, setGruppen, setGruppen, setParameter, setPrioritaetgetDateiname, getElter, getTid, isIstAutomatik, setDateiname, setElter, setIstAutomatik, setTidgetBeschreibung, getName, setBeschreibung, setNamepublic FormularTemplate()
public FormularTemplate(SQLCoreDataStoreI store, EntityI entity, long idElter)
public FormularTemplate(SQLCoreDataStoreI store, electric.xml.Document doc, long elterDefault, java.lang.StringBuilder sbLivelist) throws CoredataGenerationException, java.sql.SQLException
CoredataGenerationExceptionjava.sql.SQLExceptionpublic java.lang.String getBOTName()
BOTemplategetBOTName in class BOTemplatepublic java.lang.String createStandardParameter(EntityI entity)
This creates a TabbedView with three main tabs:
It also determines the recursion depth for nested forms.
createStandardParameter in class EntityStrukturTemplateentity - The root entity for which to generate the form.public java.lang.StringBuilder appendViewElementsForEntity(java.lang.StringBuilder sb,
EntityI mainEntity,
AttributeI backAttributeToParent,
boolean renderTabs,
boolean scrollable,
boolean filterOutBOAttrs,
boolean showHiddenAttrs,
java.lang.Boolean filterToVirtual,
boolean sort,
int remainingRecursionDepth)
This method handles the distinction between scalar fields (appended to 'sv') and relations (appended to 'rv'), aggregating them based on the Entity hierarchy.
sb - A StringBuilder which is filled with the current content of the structure element.mainEntity - The main entity of which the attributes are to be fetched.backAttributeToParent - The attribute linking back to the parent (to avoid cyclic rendering).renderTabs - Whether to embed the elements inside a Tab of a TabbedView.scrollable - Whether the generated Tab should be scrollable.filterOutBOAttrs - Whether the attributes of the generic "BO" entity should be filtered out.showHiddenAttrs - Whether attributes marked as hidden are shown.filterToVirtual - Boolean filter: true=virtual only, false=stored only, null=all.sort - Whether to sort attributes by name or preserve Schema order.
The latter option places attributes of the super-entity above the ones of the sub-entity.remainingRecursionDepth - Remaining recursion depth. If <= 0, generation stops.public void appendAttributeByType(java.lang.StringBuilder sv,
java.lang.StringBuilder rv,
EntityI entity,
EntityI mainEntity,
AttributeI backAttributeToParent,
java.util.Map<java.lang.String,java.lang.Integer> attributeCountByName,
boolean renderTabs,
boolean scrollable,
boolean filterOutBOAttrs,
boolean showHiddenAttrs,
java.lang.Boolean filterToVirtual,
boolean sort,
int remainingRecursionDepth)
sv - StringBuilder for Scalar values (Text fields, Checkboxes, etc).rv - StringBuilder for Relations (Tables, Trees, Tabs).entity - The current entity being processed.mainEntity - The root entity.backAttributeToParent - Attribute pointing back to parent.attributeCountByName - Map of attribute counts for name collision detection.renderTabs - Whether we are rendering tabs.scrollable - Scroll setting.filterOutBOAttrs - BO Filter setting.showHiddenAttrs - Hidden property setting.filterToVirtual - Virtual attribute setting.sort - Sort setting.remainingRecursionDepth - Remaining recursion depth. If <= 0, generation stops.public void appendFormElementForSimpleAttribute(java.lang.StringBuilder sv,
AttributeI attr,
boolean needsVisibleIf)
sv - Target StringBuilder.attr - The attribute definition.needsVisibleIf - Whether to wrap in visibility logic.public java.lang.StringBuilder appendPopupDetailView(java.lang.StringBuilder sv,
AttributeI relationAttr,
int remainingRecursionDepth)
sv - Target StringBuilder.relationAttr - The relation attribute.remainingRecursionDepth - Remaining recursion depth. If <= 0, generation stops.public boolean isPolymorphic()
public void setPolymorphic(boolean $19)
Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.