public class LeftForLink<E extends DataObjectDefinition,F extends DataObjectDefinition> extends Property<LeftForLink<E,F>>
LinkObject
UniqueIdentified
Modifier and Type | Class and Description |
---|---|
class |
LeftForLink.LinkFromLeftTableWidget
the widget showing the links as a table on the left object
|
Property.PropertyElementDisplayDefinition
FIELDDIPLSAY_TITLE_MOD, FIELDDISPLAY_BOTTOMNOTES, FIELDDISPLAY_NONE, FIELDDISPLAY_NORMAL, FIELDDISPLAY_NORMAL_MOD, FIELDDISPLAY_TITLE, parent
Constructor and Description |
---|
LeftForLink(E linkdataobject,
F rightobjectforlink,
LinkObject<E,F> linkobject,
WidgetDisplayPriority linkfromleftpriority)
creates a left for link property (note: this is called by the framework, and
should not be called directly by the user of the designer)
|
Modifier and Type | Method and Description |
---|---|
void |
addActionOnObjectId(DynamicActionDefinition action)
adds an action on the left object of a link (checks if it makes sense and is
used.
|
void |
addActionOnSelectedLinkId(DynamicActionDefinition action)
* this method will add an action on the id of the link object in the link
table
|
void |
addActionOnSelectedRightObjectId(DynamicActionDefinition action)
this method will add an action on the id of the right object in the link
table
|
void |
addPopupOnObjectId(PageDefinition popuppage)
shows a popup page on the right object of the link
|
void |
controlAfterParentDefinition()
to be implemented if controls have to be performed after parent is added.
|
Widget |
generateLinkFromLeftTableWidget() |
java.util.ArrayList<DataObjectDefinition> |
getExternalObjectDependence() |
java.lang.String |
getJavaType() |
DataObjectDefinition |
getLinkObjectDefinition() |
LinkObject<E,F> |
getLinkObjectProperty() |
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.
|
F |
getRightObjectForLink() |
void |
setFinalSettings()
an abstract method to be implemented by properties for finalizations to be
performed after all data objects have been created.
|
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 LeftForLink(E linkdataobject, F rightobjectforlink, LinkObject<E,F> linkobject, WidgetDisplayPriority linkfromleftpriority)
linkdataobject
- the data object holding the linkrightobjectforlink
- the right object for the linklinkobject
- the link property on the data object holding the
linklinkfromleftpriority
- widget display priority for the left for link
widget on the objectpublic Widget generateLinkFromLeftTableWidget()
public void controlAfterParentDefinition()
Property
controlAfterParentDefinition
in class Property<LeftForLink<E extends DataObjectDefinition,F extends DataObjectDefinition>>
public F getRightObjectForLink()
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 DataObjectDefinition getLinkObjectDefinition()
public LinkObject<E,F> getLinkObjectProperty()
public java.util.ArrayList<DataObjectDefinition> getExternalObjectDependence()
getExternalObjectDependence
in class Property<LeftForLink<E extends DataObjectDefinition,F extends DataObjectDefinition>>
public void addActionOnObjectId(DynamicActionDefinition action)
action
- action to be addedpublic void addPopupOnObjectId(PageDefinition popuppage)
popuppage
- a page to showpublic void addActionOnSelectedLinkId(DynamicActionDefinition action)
action
- action the action to add (should have as only input data object
id of the link objectpublic void addActionOnSelectedRightObjectId(DynamicActionDefinition action)
action
- the action to add (should have as only input data object id of
the right objectpublic java.lang.String[] getPropertyInitMethod()
Property
getPropertyInitMethod
in class Property<LeftForLink<E extends DataObjectDefinition,F extends DataObjectDefinition>>
public java.lang.String[] getPropertyExtractMethod()
Property
getPropertyExtractMethod
in class Property<LeftForLink<E extends DataObjectDefinition,F extends DataObjectDefinition>>
public void setFinalSettings()
Property
setFinalSettings
in class Property<LeftForLink<E extends DataObjectDefinition,F extends DataObjectDefinition>>
public java.lang.String[] getPropertyDeepCopyStatement()
Property
getPropertyDeepCopyStatement
in class Property<LeftForLink<E extends DataObjectDefinition,F extends DataObjectDefinition>>