Class SurveyMainInfoVM
- java.lang.Object
-
- org.openforis.collect.designer.viewmodel.BaseVM
-
- org.openforis.collect.designer.viewmodel.SurveyBaseVM
-
- org.openforis.collect.designer.viewmodel.SurveyObjectBaseVM<CollectSurvey>
-
- org.openforis.collect.designer.viewmodel.SurveyMainInfoVM
-
public class SurveyMainInfoVM extends SurveyObjectBaseVM<CollectSurvey>
- Author:
- S. Ricci
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openforis.collect.designer.viewmodel.SurveyBaseVM
SurveyBaseVM.CanLeaveFormCompleteConfirmHandler, SurveyBaseVM.CanLeaveFormConfirmHandler, SurveyBaseVM.SurveyType
-
-
Field Summary
-
Fields inherited from class org.openforis.collect.designer.viewmodel.SurveyObjectBaseVM
APPLY_CHANGES_COMMAND, changed, COMMIT_CHANGES_COMMAND, commitChangesOnApply, editedItem, formObject, newItem, selectedItem, VALIDATE_COMMAND
-
Fields inherited from class org.openforis.collect.designer.viewmodel.SurveyBaseVM
currentLanguageCode, 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_COMMAND
-
Fields inherited from class org.openforis.collect.designer.viewmodel.BaseVM
COLLECT_EARTH_PROJECT_FILE_CREATOR_LOADER, jobManager, userGroupManager, userManager
-
-
Constructor Summary
Constructors Constructor Description SurveyMainInfoVM()
-
Method Summary
-
Methods inherited from class org.openforis.collect.designer.viewmodel.SurveyObjectBaseVM
applyChanges, commitChanges, currentLanguageChanged, deleteItem, dispatchApplyChangesCommand, dispatchValidateCommand, doAfterCompose, getConfirmDeleteMessageKey, getEditedItem, getFormObject, getItems, getNameTextbox, getSelectedItem, getSelectedItemIndex, isChanged, isCommitChangesOnApply, isEditingItem, isMoveSelectedItemDownDisabled, isMoveSelectedItemUpDisabled, isNewItem, moveSelectedItem, moveSelectedItem, moveSelectedItemDown, moveSelectedItemUp, newItem, performDeleteItem, performNewItemCreation, resetEditedItem, selectionChanged, setCommitChangesOnApply, setEditedItem, setFocusOnNameTextbox, setSelectedItem, suggestInternalName, suggestLabel, undoLastChanges, validate, validateAll, validateForm
-
Methods inherited from class org.openforis.collect.designer.viewmodel.SurveyBaseVM
checkCanLeaveForm, 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, getUnitLabel, getUnitLabelFromName, getUnitLabelFromPrecision, getUnitNames, getUnits, getVersionLabel, init, initSurvey, isCollectEarthSurvey, isCurrentEditedSurvey, isCurrentFormBlocking, isCurrentFormValid, isDefaultLanguage, isSingleRootEntityDefined, isSurveyChanged, isSurveyPublished, isSurveyRelatedToPublishedSurvey, isSurveyStored, sortByName, surveyChanged, surveySaved, tabSetsUpdated, taxonomiesUpdated, undoLastChanges, unitsUpdated, versionsUpdated
-
Methods inherited from class org.openforis.collect.designer.viewmodel.BaseVM
closePopUp, getComponentsPath, getDefaultPublicUserGroupItem, getFormFieldValue, getFormFieldValue, getInitParameter, getLoggedUser, getLoggedUsername, getSession, getSessionStatus, getUserGroupsModel, initUserGroupsModel, joinList, joinValues, notifyChange, openPopUp, openPopUp, prettyDateFormat, setFormFieldValue, setFormFieldValue
-
-
-
-
Method Detail
-
init
public void init(org.zkoss.bind.Binder binder)
-
performItemSelection
protected void performItemSelection(CollectSurvey item)
- Overrides:
performItemSelectionin classSurveyObjectBaseVM<CollectSurvey>
-
createItemInstance
protected CollectSurvey createItemInstance()
- Specified by:
createItemInstancein classSurveyObjectBaseVM<CollectSurvey>
-
createFormObject
protected FormObject<CollectSurvey> createFormObject()
- Specified by:
createFormObjectin classSurveyObjectBaseVM<CollectSurvey>
-
getItemsInternal
protected List<CollectSurvey> getItemsInternal()
- Specified by:
getItemsInternalin classSurveyObjectBaseVM<CollectSurvey>
-
addNewItemToSurvey
protected void addNewItemToSurvey()
- Specified by:
addNewItemToSurveyin classSurveyObjectBaseVM<CollectSurvey>
-
deleteItemFromSurvey
protected void deleteItemFromSurvey(CollectSurvey item)
- Specified by:
deleteItemFromSurveyin classSurveyObjectBaseVM<CollectSurvey>
-
moveSelectedItemInSurvey
protected void moveSelectedItemInSurvey(int indexTo)
- Specified by:
moveSelectedItemInSurveyin classSurveyObjectBaseVM<CollectSurvey>
-
getSurveyManager
public SurveyManager getSurveyManager()
-
getEditedSurveyPublishedId
public Integer getEditedSurveyPublishedId()
-
getSurveyFileTypeLabel
public String getSurveyFileTypeLabel(SurveyFile surveyFile)
-
getSurveyFileName
public String getSurveyFileName(SurveyFile surveyFile)
-
getSurveyFiles
public List<SurveyFile> getSurveyFiles()
-
addSurveyFile
public void addSurveyFile()
-
editSelectedSurveyFile
public void editSelectedSurveyFile()
-
downloadSelectedSurveyFile
public void downloadSelectedSurveyFile()
-
applyChangesToEditedSurveyFile
public void applyChangesToEditedSurveyFile(org.zkoss.bind.Binder binder)
-
closeSurveyFileEditPopUp
public void closeSurveyFileEditPopUp(org.zkoss.bind.Binder binder)
-
deleteSelectedSurveyFiles
public void deleteSelectedSurveyFiles()
-
surveyFileRandomGridGenerationComplete
public void surveyFileRandomGridGenerationComplete(org.zkoss.bind.Binder binder)
-
isSingleSurveyFileSelected
public boolean isSingleSurveyFileSelected()
-
getSelectedSurveyFiles
public Set<SurveyFile> getSelectedSurveyFiles()
-
setSelectedSurveyFiles
public void setSelectedSurveyFiles(Set<SurveyFile> selectedSurveyFiles)
-
-