public class UnitsVM extends SurveyObjectBaseVM<Unit>
SurveyBaseVM.CanLeaveFormCompleteConfirmHandler, SurveyBaseVM.CanLeaveFormConfirmHandler, SurveyBaseVM.SurveyTypeAPPLY_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 |
|---|
UnitsVM() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNewItemToSurvey() |
void |
apply(org.zkoss.bind.Binder binder) |
void |
applyChanges(org.zkoss.bind.Binder binder) |
protected void |
closeErrorsInNodesPopUp() |
protected SurveyObjectFormObject<Unit> |
createFormObject() |
protected Unit |
createItemInstance() |
protected void |
deleteItemFromSurvey(Unit item) |
void |
deleteUnit(Unit item) |
protected void |
dispatchUnitsUpdatedCommand() |
void |
doAfterCompose(org.zkoss.zk.ui.Component view) |
List<String> |
getAvailableDimensions() |
static String |
getDimensionLabel(Unit.Dimension dimension) |
protected List<Unit> |
getItemsInternal() |
protected List<NodeDefinition> |
getReferences(Unit item) |
void |
init() |
protected void |
moveSelectedItemInSurvey(int indexTo) |
protected void |
performDeleteItem(Unit item) |
commitChanges, currentLanguageChanged, deleteItem, dispatchApplyChangesCommand, dispatchValidateCommand, getConfirmDeleteMessageKey, getEditedItem, getFormObject, getItems, getNameTextbox, getSelectedItem, getSelectedItemIndex, isChanged, isCommitChangesOnApply, isEditingItem, isMoveSelectedItemDownDisabled, isMoveSelectedItemUpDisabled, isNewItem, moveSelectedItem, moveSelectedItem, moveSelectedItemDown, moveSelectedItemUp, newItem, performItemSelection, performNewItemCreation, resetEditedItem, selectionChanged, setCommitChangesOnApply, setEditedItem, setFocusOnNameTextbox, setSelectedItem, suggestInternalName, suggestLabel, undoLastChanges, validate, validateAll, validateFormcheckCanLeaveForm, 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, 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, setFormFieldValuepublic static String getDimensionLabel(Unit.Dimension dimension)
public void init()
init in class SurveyBaseVMpublic void doAfterCompose(org.zkoss.zk.ui.Component view)
doAfterCompose in class SurveyObjectBaseVM<Unit>protected List<Unit> getItemsInternal()
getItemsInternal in class SurveyObjectBaseVM<Unit>protected Unit createItemInstance()
createItemInstance in class SurveyObjectBaseVM<Unit>protected void addNewItemToSurvey()
addNewItemToSurvey in class SurveyObjectBaseVM<Unit>protected void deleteItemFromSurvey(Unit item)
deleteItemFromSurvey in class SurveyObjectBaseVM<Unit>protected void moveSelectedItemInSurvey(int indexTo)
moveSelectedItemInSurvey in class SurveyObjectBaseVM<Unit>protected SurveyObjectFormObject<Unit> createFormObject()
createFormObject in class SurveyObjectBaseVM<Unit>public void applyChanges(org.zkoss.bind.Binder binder)
applyChanges in class SurveyObjectBaseVM<Unit>protected void dispatchUnitsUpdatedCommand()
public void deleteUnit(Unit item)
protected void performDeleteItem(Unit item)
performDeleteItem in class SurveyObjectBaseVM<Unit>protected void closeErrorsInNodesPopUp()
protected List<NodeDefinition> getReferences(Unit item)
public void apply(org.zkoss.bind.Binder binder)
Copyright © 2020 Open Foris. All rights reserved.