Class SurveyFileVM
java.lang.Object
org.openforis.collect.designer.viewmodel.BaseVM
org.openforis.collect.designer.viewmodel.SurveyBaseVM
org.openforis.collect.designer.viewmodel.SurveyObjectBaseVM<SurveyFile>
org.openforis.collect.designer.viewmodel.SurveyFileVM
- 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_COMMANDFields 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_COMMANDFields inherited from class org.openforis.collect.designer.viewmodel.BaseVM
COLLECT_EARTH_PROJECT_FILE_CREATOR_LOADER, userGroupManager, userManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidclose()voidvoidcommitChanges(org.zkoss.bind.Binder binder) protected FormObject<SurveyFile> protected SurveyFileprotected voidvoidvoiddeleteUploadedFile(String filename) voiddownloadExampleFile(String fileType) voidvoidvoidfileUploaded(org.zkoss.zk.ui.event.UploadEvent event, org.zkoss.bind.Binder binder) getForm()protected List<SurveyFile> voidinit(org.zkoss.bind.Binder binder, SurveyFile surveyFile, Boolean newItem) booleanbooleanprotected voidmoveSelectedItemInSurvey(int indexTo) voidvoidvoidvoidtypeChanged(org.zkoss.bind.Binder binder) voiduploadedFileNamesSelected(Set<org.zkoss.zul.Listitem> filenameItems) Methods inherited from class org.openforis.collect.designer.viewmodel.SurveyObjectBaseVM
applyChanges, currentLanguageChanged, 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, validateAll, validateFormMethods 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, versionsUpdatedMethods 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
-
Constructor Details
-
SurveyFileVM
public SurveyFileVM()
-
-
Method Details
-
init
-
createFormObject
- Specified by:
createFormObjectin classSurveyObjectBaseVM<SurveyFile>
-
getItemsInternal
- Specified by:
getItemsInternalin classSurveyObjectBaseVM<SurveyFile>
-
createItemInstance
- Specified by:
createItemInstancein classSurveyObjectBaseVM<SurveyFile>
-
addNewItemToSurvey
protected void addNewItemToSurvey()- Specified by:
addNewItemToSurveyin classSurveyObjectBaseVM<SurveyFile>
-
deleteItemFromSurvey
- Specified by:
deleteItemFromSurveyin classSurveyObjectBaseVM<SurveyFile>
-
moveSelectedItemInSurvey
protected void moveSelectedItemInSurvey(int indexTo) - Specified by:
moveSelectedItemInSurveyin classSurveyObjectBaseVM<SurveyFile>
-
close
public void close() -
commitChanges
public void commitChanges(org.zkoss.bind.Binder binder) - Overrides:
commitChangesin classSurveyObjectBaseVM<SurveyFile>
-
fileUploaded
public void fileUploaded(org.zkoss.zk.ui.event.UploadEvent event, org.zkoss.bind.Binder binder) -
typeChanged
public void typeChanged(org.zkoss.bind.Binder binder) -
downloadExampleFile
- Throws:
IOException
-
downloadUploadedFile
- Throws:
IOException
-
uploadedFileNamesSelected
-
deleteUploadedFile
-
deleteSelectedUploadedFiles
public void deleteSelectedUploadedFiles() -
downloadFile
public void downloadFile() -
openRandomGridGenerationParametersPopUp
public void openRandomGridGenerationParametersPopUp() -
surveyFileRandomGridGenerationComplete
public void surveyFileRandomGridGenerationComplete() -
closeRandomGridGenerationPopUp
public void closeRandomGridGenerationPopUp() -
getEditedItemFilename
-
getUploadedFileName
-
getUploadedFileNames
-
getSelectedUploadedFileNames
-
isMultipleFilesUploaded
public boolean isMultipleFilesUploaded() -
getForm
-
setForm
-
getSurveyManager
-
isRandomGridGenerationAllowed
public boolean isRandomGridGenerationAllowed()
-