Class SamplingPointDataVM
- java.lang.Object
-
- org.openforis.collect.designer.viewmodel.BaseVM
-
- org.openforis.collect.designer.viewmodel.SurveyBaseVM
-
- org.openforis.collect.designer.viewmodel.SamplingPointDataVM
-
public class SamplingPointDataVM extends SurveyBaseVM
-
-
Nested Class Summary
-
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 StringCLOSE_SAMPLING_POINT_DATA_IMPORT_POPUP_COMMANDstatic StringSAMPLING_POINT_DATA_UPDATED_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 SamplingPointDataVM()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeAttributeEditableStatus(AttributeFormObject attribute)voidcloseSamplingPointDataImportPopUp()voidconfirmAttributeUpdate(AttributeFormObject attribute)voiddeleteAllItems()static voiddispatchSamplingPointDataImportPopUpCloseCommand()voidexportToCsv()voidexportToExcel()List<AttributeFormObject>getAttributes()StringgetAttributeValue(AttributeFormObject attribute, SamplingDesignItem item)List<SamplingDesignItem>getItems()intgetItemsPage()intgetItemsPageSize()intgetItemsTotal()voidinit()booleanisSamplingPointDataEmpty()static voidnotifySamplingPointDataUpdated()voidopenImportPopUp()voidsamplingPointDataUpdated()voidupdateItemsPaging(int newPageIndex)-
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, 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
-
SAMPLING_POINT_DATA_UPDATED_COMMAND
public static final String SAMPLING_POINT_DATA_UPDATED_COMMAND
- See Also:
- Constant Field Values
-
CLOSE_SAMPLING_POINT_DATA_IMPORT_POPUP_COMMAND
public static final String CLOSE_SAMPLING_POINT_DATA_IMPORT_POPUP_COMMAND
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init()
- Overrides:
initin classSurveyBaseVM
-
getAttributes
public List<AttributeFormObject> getAttributes()
-
changeAttributeEditableStatus
public void changeAttributeEditableStatus(AttributeFormObject attribute)
-
updateItemsPaging
public void updateItemsPaging(int newPageIndex)
-
getAttributeValue
public String getAttributeValue(AttributeFormObject attribute, SamplingDesignItem item)
-
openImportPopUp
public void openImportPopUp()
-
closeSamplingPointDataImportPopUp
public void closeSamplingPointDataImportPopUp()
-
samplingPointDataUpdated
public void samplingPointDataUpdated()
-
exportToCsv
public void exportToCsv() throws IOException- Throws:
IOException
-
exportToExcel
public void exportToExcel() throws IOException- Throws:
IOException
-
deleteAllItems
public void deleteAllItems()
-
confirmAttributeUpdate
public void confirmAttributeUpdate(AttributeFormObject attribute)
-
getItems
public List<SamplingDesignItem> getItems()
-
getItemsTotal
public int getItemsTotal()
-
getItemsPage
public int getItemsPage()
-
getItemsPageSize
public int getItemsPageSize()
-
isSamplingPointDataEmpty
public boolean isSamplingPointDataEmpty()
-
notifySamplingPointDataUpdated
public static void notifySamplingPointDataUpdated()
-
dispatchSamplingPointDataImportPopUpCloseCommand
public static void dispatchSamplingPointDataImportPopUpCloseCommand()
-
-