public class CodeListsVM extends SurveyObjectBaseVM<CodeList>
SurveyBaseVM.CanLeaveFormCompleteConfirmHandler, SurveyBaseVM.CanLeaveFormConfirmHandler, SurveyBaseVM.SurveyType| Modifier and Type | Field and Description |
|---|---|
static String |
CLOSE_CODE_LIST_IMPORT_POP_UP_COMMAND |
static String |
CLOSE_CODE_LIST_ITEM_POP_UP_COMMAND |
static String |
EDITING_ATTRIBUTE_PARAM |
static String |
SELECTED_CODE_LIST_PARAM |
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 |
|---|
CodeListsVM() |
applyChanges, currentLanguageChanged, deleteItem, dispatchApplyChangesCommand, dispatchValidateCommand, getConfirmDeleteMessageKey, getEditedItem, getFormObject, getItems, getNameTextbox, getSelectedItem, getSelectedItemIndex, isChanged, isCommitChangesOnApply, isEditingItem, isMoveSelectedItemDownDisabled, isMoveSelectedItemUpDisabled, isNewItem, moveSelectedItem, moveSelectedItem, moveSelectedItemDown, moveSelectedItemUp, newItem, performDeleteItem, resetEditedItem, selectionChanged, setCommitChangesOnApply, setFocusOnNameTextbox, setSelectedItem, suggestInternalName, suggestLabel, undoLastChanges, validate, validateAll, validateFormcheckCanLeaveForm, checkCanLeaveForm, checkCanLeaveForm, 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, setFormFieldValuepublic static final String EDITING_ATTRIBUTE_PARAM
public static final String SELECTED_CODE_LIST_PARAM
public static final String CLOSE_CODE_LIST_ITEM_POP_UP_COMMAND
public static final String CLOSE_CODE_LIST_IMPORT_POP_UP_COMMAND
public void doAfterCompose(org.zkoss.zk.ui.Component view)
doAfterCompose in class SurveyObjectBaseVM<CodeList>protected List<CodeList> getItemsInternal()
getItemsInternal in class SurveyObjectBaseVM<CodeList>protected void addNewItemToSurvey()
addNewItemToSurvey in class SurveyObjectBaseVM<CodeList>protected void deleteItemFromSurvey(CodeList item)
deleteItemFromSurvey in class SurveyObjectBaseVM<CodeList>protected FormObject<CodeList> createFormObject()
createFormObject in class SurveyObjectBaseVM<CodeList>public static void dispatchCodeListsUpdatedCommand()
protected void performNewItemCreation(org.zkoss.bind.Binder binder)
performNewItemCreation in class SurveyObjectBaseVM<CodeList>protected CodeList createItemInstance()
createItemInstance in class SurveyObjectBaseVM<CodeList>protected void performItemSelection(CodeList item)
performItemSelection in class SurveyObjectBaseVM<CodeList>protected void moveSelectedItemInSurvey(int indexTo)
moveSelectedItemInSurvey in class SurveyObjectBaseVM<CodeList>public void deleteCodeList(CodeList item)
protected void closeReferencedNodesPopUp()
protected List<NodeDefinition> getReferences(CodeList item)
public void typeChanged(String type)
public void addLevel()
public void removeLevel()
public String getHierarchyLevelNameValidationKey(int levelIdx)
public org.zkoss.bind.Validator getHierarchyLevelNameValidator(int levelIdx)
protected void performRemoveLevel(int levelIndex)
public void addItemInLevel(int levelIndex)
protected CodeListItem createChildItem()
public void deleteCodeListItem(CodeListItem item)
protected boolean isEnumeratingCodeList()
protected void performDeleteCodeListItem(CodeListItem item)
public void moveChildItem(org.zkoss.zk.ui.event.DropEvent event)
public void setEditedItem(CodeList editedItem)
setEditedItem in class SurveyObjectBaseVM<CodeList>public void editCodeListItem(CodeListItem item)
public void batchImportFileUploaded(org.zkoss.zk.ui.event.UploadEvent event)
public void batchExport()
public void codeListsUpdated()
codeListsUpdated in class SurveyBaseVMprotected String generateItemCode(CodeListItem item)
public void openChildItemEditPopUp()
public void listItemSelected(CodeListItem item, int levelIndex)
public boolean isMultipleLevelsPresent()
protected void deselectItemsAfterLevel(int levelIndex)
protected void moveChildItem(CodeListItem item, int toIndex)
protected void reloadSiblingsSortOrder(PersistedCodeListItem item)
item - protected int getLevelIndex(CodeListItem item)
protected List<CodeListItem> getSiblings(CodeListItem item)
protected int getItemIndex(CodeListItem item)
public void closeCodeListItemPopUp(boolean undoChanges,
boolean imageModified,
FileWrapper imageFileWrapper)
public void commitChanges(org.zkoss.bind.Binder binder)
commitChanges in class SurveyObjectBaseVM<CodeList>public void openCodeListImportPopUp()
public void exportCodeListToCsv()
throws IOException
IOExceptionpublic void exportCodeListToExcel()
throws IOException
IOExceptionpublic void closeReferenceDataImportErrorPopUp()
protected boolean canImportCodeList()
protected boolean isCodeListInPublishedSurvey()
public void closeCodeListImportPopUp()
public void closeCodeListsManagerPopUp()
protected void initItemsPerLevel()
public List<CodeListLevel> getListLevels()
public List<CodeListItem> getSelectedItemsPerLevel()
public int getLastSelectedLevelIndex()
public List<List<CodeListItem>> getItemsPerLevel()
public boolean isCodeListItemSelected(CodeListItem item)
public boolean hasChildItems(CodeListItem item)
public String getCodeListItemLabel(CodeListItem item)
public boolean isEditingAttribute()
public boolean hasWarnings(CodeList list)
public void close(org.zkoss.zk.ui.event.Event event)
protected void closeJobStatusPopUp()
Copyright © 2022 Open Foris. All rights reserved.