/* * #%L * Reef DB :: UI * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2014 - 2015 Ifremer * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * #L% */ ExtendedComboBox { showReset: true; filterable: true; bean: {model}; showDecorator: false; } JDatePicker { _selectOnFocus: {true}; } JLocalDatePicker { _selectOnFocus: {true}; } NumberEditor { autoPopup: {handler.getConfig().isAutoPopupNumberEditor()}; showPopupButton: {handler.getConfig().isShowNumberEditorButton()}; bean: {model}; showReset: true; _selectOnFocus: {true}; } #surveyDetailsBlockLayer { blockingColor: {handler.getConfig().getColorBlockingLayer()}; block:{model.isLoading()}; } #surveyDetailsTabUI { _panelType: {ReefDbUI.EDITION_PANEL_TYPE}; } #timeEditor { timeInSecond: {model.getTime()}; enabled: {model.isEditable()}; } #observersPanel { border: {BorderFactory.createTitledBorder(t("reefdb.survey.observers.title"))}; } #observersDoubleList { bean: {model}; property: "selectedObservers"; filterable: true; showDecorator: false; enabled: {model.isEditable()}; } #observersList { enabled: false; } /* LOCATION COORDINATES */ #locationCoordinatePanel { border: {BorderFactory.createTitledBorder(t("reefdb.survey.locationCoordinates.title"))}; } #latitudeLabel { text: "reefdb.property.latitude"; } #latitudeMinLabel { text: "reefdb.property.min"; labelFor: {locationMinLatitudeEditor}; } #locationMinLatitudeEditor { property: locationMinLatitude; numberValue: {model.getLocationMinLatitude()}; coordinateType: {CoordinateType.LATITUDE_MIN}; enabled: false; showReset: false; showPopupButton: false; } #latitudeMaxLabel { text: "reefdb.property.max"; labelFor: {locationMaxLatitudeEditor}; } #locationMaxLatitudeEditor { property: locationMaxLatitude; numberValue: {model.getLocationMaxLatitude()}; coordinateType: {CoordinateType.LATITUDE_MAX}; enabled: false; showReset: false; showPopupButton: false; } #longitudeLabel { text: "reefdb.property.longitude"; } #longitudeMinLabel { text: "reefdb.property.min"; labelFor: {locationMinLongitudeEditor}; } #locationMinLongitudeEditor { property: locationMinLongitude; numberValue: {model.getLocationMinLongitude()}; coordinateType: {CoordinateType.LONGITUDE_MIN}; enabled: false; showReset: false; showPopupButton: false; } #longitudeMaxLabel { text: "reefdb.property.max"; labelFor: {locationMaxLongitudeEditor}; } #locationMaxLongitudeEditor { property: locationMaxLongitude; numberValue: {model.getLocationMaxLongitude()}; coordinateType: {CoordinateType.LONGITUDE_MAX}; enabled: false; showReset: false; showPopupButton: false; } /* SURVEY COORDINATES */ #surveyCoordinatePanel { border: {BorderFactory.createTitledBorder(t("reefdb.survey.coordinates.title"))}; } #surveyLatitudeLabel { text: "reefdb.survey.coordinates.latitude"; labelFor: {surveyLatitudeEditor}; } #surveyLatitudeEditor { property: latitude; numberValue: {model.getLatitude()}; coordinateType: {CoordinateType.LATITUDE_MIN}; enabled: {model.isEditable()}; } #surveyLongitudeLabel { text: "reefdb.survey.coordinates.longitude"; labelFor: {surveyLongitudeEditor}; } #surveyLongitudeEditor { property: longitude; numberValue: {model.getLongitude()}; coordinateType: {CoordinateType.LONGITUDE_MIN}; enabled: {model.isEditable()}; } #positionnementTable { border: {BorderFactory.createTitledBorder(t("reefdb.survey.positioning.title"))}; } #cycleDeVie { border: {BorderFactory.createTitledBorder(t("reefdb.survey.lifeCycle.title"))}; } #campaignLabel { text: "reefdb.property.campaign"; labelFor: {campaignCombo}; } #programLabel { text: "reefdb.property.program"; labelFor: {programCombo}; } #locationLabel { text: "reefdb.property.location"; labelFor: {locationCombo}; } #selectionDateLabel { text: "reefdb.property.date"; labelFor: {dateEditor}; } #selectionProfondeurLabel { text: "reefdb.property.depth"; labelFor: {profondeurEditor}; } #profondeurEditor { property: depth; selectedItem: {model.getDepth()}; enabled: {model.isEditable()}; } #profondeurPreciseLabel { text: "reefdb.property.depth.precise"; labelFor: {profondeurPreciseEditor}; } #profondeurPreciseEditor { property: preciseDepth; numberValue: {model.getPreciseDepth()}; numberType: {Double.class}; numberPattern: {DECIMAL1_PATTERN}; enabled: {model.isEditable()}; } #mnemoniqueLabel { text: "reefdb.property.mnemonic"; labelFor: {mnemoniqueEditor}; } #mnemoniqueEditor { text: {model.getName()}; enabled: {model.isEditable()}; } #commentaireGeneralLabel { text: "reefdb.property.comment"; labelFor: {commentaireGeneral}; } /* #commentScrollPane { _onlyVerticalScrollable: true; } */ #commentaireGeneral { text: {model.getComment()}; enabled: {model.isEditable()}; } #libellePositionnementLabel { text: "reefdb.property.name"; labelFor: {selectionPositionnementCombo}; } #selectionPositionnementCombo { property: positioning; selectedItem: {model.getPositioning()}; enabled: {model.isEditable() && model.getLatitude() != null && model.getLongitude() != null}; } #precisionPositionnementLabel { text: "reefdb.property.precision"; labelFor: {selectionPrecisionLabel}; } #commentairePositionnementLabel { text: "reefdb.property.comment"; labelFor: {commentairePositionnement}; } #commentairePositionnement { text: {model.getPositioningComment()}; enabled: {model.isEditable()}; } #saisisseurLabel { text: "reefdb.property.department.recorder"; labelFor: {inputSaisisseur}; } #dateModifObservationLabel { text: "reefdb.property.date.modification"; labelFor: {dateModifEditor}; } #dateModifEditor { date: {model.getUpdateDate()}; } #dateControleObservationLabel { text: "reefdb.property.date.control"; labelFor: {dateControleEditor}; } #dateControleEditor { date: {model.getControlDate()}; } #dateValidationObservationLabel { text: "reefdb.property.date.validation"; labelFor: {dateValidationEditor}; } #dateValidationEditor { date: {model.getValidationDate()}; } #commentaireValidationLabel { text: "reefdb.property.comment.validation"; labelFor: {commentaireValidation}; } #commentaireValidation { text: {model.getValidationComment()} } #locationCombo { property: location; selectedItem: {model.getLocation()}; showActionButton: true; actionIcon: "unfilter"; actionToolTipI18n: "reefdb.common.unfilter"; _validatorLabel: {t("reefdb.property.location")}; enabled: {model.isEditable()}; } #programCombo { property: program; selectedItem: {model.getProgram()}; showActionButton: true; actionIcon: "unfilter"; actionToolTipI18n: "reefdb.common.unfilter"; _validatorLabel: {t("reefdb.property.program")}; enabled: {model.isEditable()}; } #campaignCombo { property: campaign; selectedItem: {model.getCampaign()}; showActionButton: true; actionIcon: "unfilter"; actionToolTipI18n: "reefdb.common.unfilter"; _validatorLabel: {t("reefdb.property.program")}; enabled: {model.isEditable()}; } #dateEditor { localDate: {model.getDate()}; enabled: {model.isEditable()}; }