Class SchemaObjectSelectorPopUpVM
- java.lang.Object
-
- org.openforis.collect.designer.viewmodel.BaseVM
-
- org.openforis.collect.designer.viewmodel.SurveyBaseVM
-
- org.openforis.collect.designer.viewmodel.SchemaObjectSelectorPopUpVM
-
public class SchemaObjectSelectorPopUpVM extends SurveyBaseVM
- Author:
- S. Ricci
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchemaObjectSelectorPopUpVM.NodeSelectedEvent-
Nested classes/interfaces inherited from class org.openforis.collect.designer.viewmodel.SurveyBaseVM
SurveyBaseVM.CanLeaveFormCompleteConfirmHandler, SurveyBaseVM.CanLeaveFormConfirmHandler, SurveyBaseVM.SurveyType
-
-
Field Summary
Fields Modifier and Type Field Description static StringNODE_SELECTED_EVENT_NAME-
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 SchemaObjectSelectorPopUpVM()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(SurveyObject selectedSurveyObject, org.zkoss.zk.ui.Component view)SchemaTreeModelgetTreeModel()voidinit(boolean includeSurveys, EntityDefinition rootEntity, ModelVersion version, Predicate<SurveyObject> includedNodePredicate, boolean includeRootEntity, boolean includeEmtptyNodes, Predicate<SurveyObject> disabledNodePredicate, Predicate<SurveyObject> selectableNodePredicate, SurveyObject selection, boolean allowEmptySelection)voidnodeSelected(SurveyObject surveyObject)static org.zkoss.zul.WindowopenPopup(String title, boolean includeSurveys, EntityDefinition rootEntity, ModelVersion version, Predicate<SurveyObject> includedNodePredicate, boolean includeRootEntity, boolean includeEmptyNodes, Predicate<SurveyObject> disabledNodePredicate, Predicate<SurveyObject> selectableNodePredicate, SurveyObject selection, boolean allowEmptySelection)-
Methods inherited from class org.openforis.collect.designer.viewmodel.SurveyBaseVM
checkCanLeaveForm, checkCanLeaveForm, checkCanLeaveForm, codeListsUpdated, createBasicModuleParameters, currentFormValidated, currentLanguageChanged, 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, 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
-
-
-
-
Field Detail
-
NODE_SELECTED_EVENT_NAME
public static final String NODE_SELECTED_EVENT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(boolean includeSurveys, EntityDefinition rootEntity, ModelVersion version, Predicate<SurveyObject> includedNodePredicate, boolean includeRootEntity, boolean includeEmtptyNodes, Predicate<SurveyObject> disabledNodePredicate, Predicate<SurveyObject> selectableNodePredicate, SurveyObject selection, boolean allowEmptySelection)
-
openPopup
public static org.zkoss.zul.Window openPopup(String title, boolean includeSurveys, EntityDefinition rootEntity, ModelVersion version, Predicate<SurveyObject> includedNodePredicate, boolean includeRootEntity, boolean includeEmptyNodes, Predicate<SurveyObject> disabledNodePredicate, Predicate<SurveyObject> selectableNodePredicate, SurveyObject selection, boolean allowEmptySelection)
-
apply
public void apply(SurveyObject selectedSurveyObject, org.zkoss.zk.ui.Component view)
-
nodeSelected
public void nodeSelected(SurveyObject surveyObject)
-
getTreeModel
public SchemaTreeModel getTreeModel()
-
-