public abstract class NodeDefinitionVM<T extends NodeDefinition> extends SurveyObjectBaseVM<T>
SurveyBaseVM.CanLeaveFormCompleteConfirmHandler, SurveyBaseVM.CanLeaveFormConfirmHandler, SurveyBaseVM.SurveyType| Modifier and Type | Field and Description |
|---|---|
protected static String |
FORM_CONTAINER_ID |
protected static String |
MULTIPLE_FIELD_NAME |
protected EntityDefinition |
parentEntity |
protected org.zkoss.bind.Form |
tempFormObject |
APPLY_CHANGES_COMMAND, changed, COMMIT_CHANGES_COMMAND, commitChangesOnApply, editedItem, formObject, newItem, selectedItem, VALIDATE_COMMANDcurrentLanguageCode, DATE_FORMAT, fieldLabelKeyPrefixes, NODE_CONVERTED_GLOBAL_COMMAND, SCHEMA_CHANGED_GLOBAL_COMMAND, schemaUpdater, survey, SURVEY_CHANGED_GLOBAL_COMMAND, SURVEY_SAVED_GLOBAL_COMMAND, UNDO_LAST_CHANGES_GLOBAL_COMMAND, VALIDATE_ALL_GLOBAL_COMMAND, VERSIONS_UPDATED_GLOBAL_COMMANDCOLLECT_EARTH_PROJECT_FILE_CREATOR_LOADER, jobManager, userGroupManager, userManager| Constructor and Description |
|---|
NodeDefinitionVM() |
applyChanges, createFormObject, deleteItem, dispatchApplyChangesCommand, dispatchValidateCommand, doAfterCompose, getConfirmDeleteMessageKey, getEditedItem, getFormObject, getItems, getNameTextbox, getSelectedItem, getSelectedItemIndex, isChanged, isCommitChangesOnApply, isEditingItem, isMoveSelectedItemDownDisabled, isMoveSelectedItemUpDisabled, isNewItem, moveSelectedItem, moveSelectedItem, moveSelectedItemDown, moveSelectedItemUp, newItem, performDeleteItem, performItemSelection, performNewItemCreation, resetEditedItem, selectionChanged, setCommitChangesOnApply, setEditedItem, setFocusOnNameTextbox, setSelectedItem, suggestInternalName, suggestLabel, undoLastChanges, validate, validateAllcheckCanLeaveForm, checkCanLeaveForm, checkCanLeaveForm, codeListsUpdated, createBasicModuleParameters, currentFormValidated, dispatchCurrentFormValidatedCommand, dispatchCurrentFormValidatedCommand, dispatchCurrentFormValidatedCommand, dispatchCurrentFormValidatedCommand, dispatchNodeConvertedCommand, dispatchSchemaChangedCommand, dispatchSurveyChangedCommand, dispatchTaxonomiesUpdatedCommand, dispatchValidateAllCommand, getCodeLists, getCurrentLanguageCode, getDateFormat, getDefaultLanguageCode, getEditableRecordStepNames, getExpressionValidator, getFormVersionIdsWithEmptyOption, getFormVersions, getFormVersionsWithEmptyOption, getRootEntities, getRootVM, getSurvey, getSurveyId, getTaxonomyNames, getUnitLabel, getUnitLabelFromPrecision, getUnits, getVersionLabel, init, initSurvey, isCollectEarthSurvey, isCurrentEditedSurvey, isCurrentFormBlocking, isCurrentFormValid, isDefaultLanguage, isSingleRootEntityDefined, isSurveyChanged, isSurveyPublished, isSurveyRelatedToPublishedSurvey, isSurveyStored, sortByName, surveyChanged, surveySaved, tabSetsUpdated, taxonomiesUpdated, undoLastChanges, unitsUpdated, versionsUpdatedclosePopUp, getComponentsPath, getDefaultPublicUserGroupItem, getFormFieldValue, getFormFieldValue, getInitParameter, getLoggedUser, getLoggedUsername, getSession, getSessionStatus, getUserGroupsModel, initUserGroupsModel, joinList, joinValues, notifyChange, openPopUp, openPopUp, prettyDateFormat, setFormFieldValue, setFormFieldValueprotected static final String FORM_CONTAINER_ID
protected static final String MULTIPLE_FIELD_NAME
protected org.zkoss.bind.Form tempFormObject
protected EntityDefinition parentEntity
protected void initInternal(EntityDefinition parentEntity, T nodeDefn, Boolean newItem)
protected T createItemInstance()
createItemInstance in class SurveyObjectBaseVM<T extends NodeDefinition>protected void addNewItemToSurvey()
addNewItemToSurvey in class SurveyObjectBaseVM<T extends NodeDefinition>protected void moveSelectedItemInSurvey(int indexTo)
moveSelectedItemInSurvey in class SurveyObjectBaseVM<T extends NodeDefinition>public void currentLanguageChanged()
currentLanguageChanged in class SurveyObjectBaseVM<T extends NodeDefinition>public void commitChanges(org.zkoss.bind.Binder binder)
commitChanges in class SurveyObjectBaseVM<T extends NodeDefinition>public void nameChanged(org.zkoss.bind.Binder binder,
String name)
public void singleInstanceLabelChange(org.zkoss.bind.Binder binder,
String value)
public void multipleChanged(org.zkoss.bind.Binder binder,
Boolean multiple)
protected String getInstanceLabel(NodeDefinition nodeDefn)
protected List<T> getItemsInternal()
getItemsInternal in class SurveyObjectBaseVM<T extends NodeDefinition>protected void deleteItemFromSurvey(T item)
deleteItemFromSurvey in class SurveyObjectBaseVM<T extends NodeDefinition>public void tabSetChanged(org.zkoss.bind.Binder binder,
UITabSet tabSet)
public void tabChanged(org.zkoss.bind.Binder binder,
UITab tab)
public void closeVersioningManagerPopUp(org.zkoss.bind.Binder binder)
protected void validateForm(org.zkoss.bind.Binder binder)
validateForm in class SurveyObjectBaseVM<T extends NodeDefinition>public org.zkoss.bind.Form getTempFormObject()
protected <V> V getTempFormObjectFieldValue(String field)
public String getNodeType()
public String getAttributeType()
public String getAttributeTypeLabel()
public boolean isRootEntity()
public boolean isParentEntityRoot()
public boolean isAttribute()
public boolean isInsideTableEntity()
public boolean isMultipleFieldEditingDisabled()
public boolean isRequiredApplied()
public boolean isPredefinedCollectEarthAttribute()
protected List<Map<String,String>> getDependentNodeInfos(String type, List<NodeDefinition> nodes)
protected boolean checkNodeAttached()
Copyright © 2021 Open Foris. All rights reserved.