public class LinkedFromChildren extends Property<LinkedFromChildren>
LinkedToParent
UniqueIdentified
Modifier and Type | Class and Description |
---|---|
class |
LinkedFromChildren.ChildrenTable
the table showing all children on the parent object
|
Property.PropertyElementDisplayDefinition
FIELDDIPLSAY_TITLE_MOD, FIELDDISPLAY_BOTTOMNOTES, FIELDDISPLAY_NONE, FIELDDISPLAY_NORMAL, FIELDDISPLAY_NORMAL_MOD, FIELDDISPLAY_TITLE, parent
Constructor and Description |
---|
LinkedFromChildren(java.lang.String name,
DataObjectDefinition childobjectforlink,
LinkedToParent<?> originobjectproperty)
creates a linked from children property with default display
|
LinkedFromChildren(java.lang.String name,
DataObjectDefinition childobjectforlink,
LinkedToParent<?> originobjectproperty,
java.lang.String linedisplayforgrid,
java.lang.String columndisplayforgrid,
java.lang.String secondarycolumndisplayforgrid,
java.lang.String[] cellfieldsforgrid)
creates a linked from children property with grid display
|
LinkedFromChildren(java.lang.String name,
DataObjectDefinition childobjectforlink,
LinkedToParent<?> originobjectproperty,
WidgetDisplayPriority linkedfromchildrenwidgetdisplaypriority)
creates a linked from children property with specified display priority for
the child table
|
LinkedFromChildren(java.lang.String name,
DataObjectDefinition childobjectforlink,
LinkedToParent<?> originobjectproperty,
WidgetDisplayPriority linkedfromchildrenwidgetdisplaypriority,
java.lang.String linedisplayforgrid,
java.lang.String columndisplayforgrid,
java.lang.String secondarycolumndisplayforgrid,
java.lang.String[] cellfieldsforgrid)
creates a linked from children property with grid display with specific
display priority
|
Modifier and Type | Method and Description |
---|---|
void |
addActionOnSelectedChildId(DynamicActionDefinition action)
adds an action button on the parent object page to launch an action on the
selected child object in the children table
|
void |
controlAfterParentDefinition()
to be implemented if controls have to be performed after parent is added.
|
Widget |
generateChildrenTableWidget()
provides the widget showing the children table to allow to give it a
different priority
|
DataObjectDefinition |
getChildObject() |
java.util.ArrayList<DataObjectDefinition> |
getExternalObjectDependence() |
java.lang.String |
getJavaType() |
LinkedToParent<?> |
getOriginObjectProperty() |
java.lang.String[] |
getPropertyDeepCopyStatement()
Returns the required deepcopy statement for the property, sends back null if
nothing is required.
|
java.lang.String[] |
getPropertyExtractMethod()
This method should return non null value only if
setCreationDataInputForUpdate() is set
|
java.lang.String[] |
getPropertyInitMethod()
this method uses the context data for creation and the data-input for
standard creation.
|
LinkedToParent<?> |
getRelatedLinkedToParent() |
void |
setFinalSettings()
an abstract method to be implemented by properties for finalizations to be
performed after all data objects have been created.
|
protected void |
setSpecificTitleForChildrenTable(java.lang.String specifictitleforchildrentable)
sets a specific label for the children table widget on the parent
|
void |
writeDependentClass(SourceGenerator sg,
Module module)
only send here classes that are NOT data objects.
|
addBusinessRule, addChoiceCategoryHelper, addContextForDataCreation, addDataAccessMethod, addDataInput, addDependentProperty, addDisplayProfileForProperty, addElement, addElement, addElementasSearchElement, addExternalObjectProperty, addFieldOverrides, addMethodAdditionalProcessing, addObjectToAuthorityMapper, addPropertyGenerics, addStringHelper, generatePropertyHelperToFile, getBusinessRule, getBusinessRuleByName, getBusinessRuleNumber, getChoiceCategoryByKey, getChoiceCategoryKeyNumber, getChoiceCategoryNumber, getContextDataForCreation, getContextDataForCreationSize, getDataAccessMethod, getDataAccessMethod, getDataAccessMethodnumber, getDataInputForCreation, getDataInputSize, getDataObjectConstructorAttributes, getDataObjectFieldName, getDependentProperties, getDisplayDefinitionForElement, getDisplayProfileForProperty, getDisplayProfileForPropertyNumber, getExternalObject, getExternalObjectProperty, getExternalObjectPropertySize, getFieldOverridesat, getFieldOverridesNumber, getInstancename, getJavaClassType, getMethodAdditionalProcessing, getMethodAdditionalProcessingnumber, getParent, getPropertyclassname, getPropertyGenerics, getPropertyGenericsSize, getPropertyGenericsString, getPropertyHelperName, hasDynamicDefinitionHelper, hasInterface, hasStaticQuery, hideDataInputForCreation, isDatainputatbottom, isDataInputHiddenForCreation, isDataInputUsedForUpdate, isLegacy, isPropertyHelperTransient, setAsLegacy, setDatainputatbottom, setDataInputForUpdate, setDynamicDefinitionHelper, setExtraAttributes, writeAdditionalDefinition
AddElementWithSearch, addIndex, getDisplayname, getElements, getIndex, getSearchWidgetList, getTooltip
changeName, cleanName, equals, getName
public LinkedFromChildren(java.lang.String name, DataObjectDefinition childobjectforlink, LinkedToParent<?> originobjectproperty, WidgetDisplayPriority linkedfromchildrenwidgetdisplaypriority)
name
- unique name amongst linked
from children property of this
objectchildobjectforlink
- definition of the child objectoriginobjectproperty
- LinkedToParent property on the
child objectlinkedfromchildrenwidgetdisplaypriority
- specific widget display
priority for the child table
widgetpublic LinkedFromChildren(java.lang.String name, DataObjectDefinition childobjectforlink, LinkedToParent<?> originobjectproperty)
name
- unique name amongst linked from children property
of this objectchildobjectforlink
- definition of the child objectoriginobjectproperty
- LinkedToParent property on the child objectpublic LinkedFromChildren(java.lang.String name, DataObjectDefinition childobjectforlink, LinkedToParent<?> originobjectproperty, WidgetDisplayPriority linkedfromchildrenwidgetdisplaypriority, java.lang.String linedisplayforgrid, java.lang.String columndisplayforgrid, java.lang.String secondarycolumndisplayforgrid, java.lang.String[] cellfieldsforgrid)
name
- unique name amongst linked
from children property of this
objectchildobjectforlink
- definition of the child objectoriginobjectproperty
- LinkedToParent property on the
child objectlinkedfromchildrenwidgetdisplaypriority
- widget display prioritylinedisplayforgrid
- the column used for line
displaycolumndisplayforgrid
- the column used for column
displaysecondarycolumndisplayforgrid
- the column used for secondary
column display (leave it null
if not used)cellfieldsforgrid
- the name of the fields to show
as content in the gridpublic LinkedFromChildren(java.lang.String name, DataObjectDefinition childobjectforlink, LinkedToParent<?> originobjectproperty, java.lang.String linedisplayforgrid, java.lang.String columndisplayforgrid, java.lang.String secondarycolumndisplayforgrid, java.lang.String[] cellfieldsforgrid)
name
- unique name amongst linked from children
property of this objectchildobjectforlink
- definition of the child objectoriginobjectproperty
- LinkedToParent property on the child
objectlinedisplayforgrid
- the column used for line displaycolumndisplayforgrid
- the column used for column displaysecondarycolumndisplayforgrid
- the column used for secondary column
display (leave it null if not used)cellfieldsforgrid
- the name of the fields to show as
content in the gridpublic LinkedToParent<?> getRelatedLinkedToParent()
public Widget generateChildrenTableWidget()
public void controlAfterParentDefinition()
Property
controlAfterParentDefinition
in class Property<LinkedFromChildren>
public LinkedToParent<?> getOriginObjectProperty()
public DataObjectDefinition getChildObject()
protected void setSpecificTitleForChildrenTable(java.lang.String specifictitleforchildrentable)
specifictitleforchildrentable
- specific titlepublic void addActionOnSelectedChildId(DynamicActionDefinition action)
action
- an action with a unique input argument being the object id of
the childpublic java.lang.String[] getPropertyInitMethod()
Property
getPropertyInitMethod
in class Property<LinkedFromChildren>
public java.lang.String[] getPropertyExtractMethod()
Property
getPropertyExtractMethod
in class Property<LinkedFromChildren>
public void setFinalSettings()
Property
setFinalSettings
in class Property<LinkedFromChildren>
public java.lang.String[] getPropertyDeepCopyStatement()
Property
getPropertyDeepCopyStatement
in class Property<LinkedFromChildren>
public java.lang.String getJavaType()
getJavaType
in class ObjectElement
public void writeDependentClass(SourceGenerator sg, Module module) throws java.io.IOException
ObjectElement
writeDependentClass
in class ObjectElement
java.io.IOException
public java.util.ArrayList<DataObjectDefinition> getExternalObjectDependence()
getExternalObjectDependence
in class Property<LinkedFromChildren>