ObservationUI.jaxx 3.77 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!--
  #%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 <http://www.gnu.org/licenses/>.
  #L%
-->
<JPanel layout="{new BorderLayout()}" decorator='help' implements='fr.ifremer.reefdb.ui.swing.util.ReefDbUI&lt;ObservationUIModel, ObservationUIHandler&gt;'>
  <import>
    fr.ifremer.reefdb.dto.configuration.programStrategy.ProgramDTO

    fr.ifremer.reefdb.ui.swing.ReefDbHelpBroker
    fr.ifremer.reefdb.ui.swing.ReefDbUIContext
    fr.ifremer.reefdb.ui.swing.util.ReefDbUI
PECQUOT's avatar
PECQUOT committed
30
    fr.ifremer.reefdb.ui.swing.content.ReefDbMainUI
31
32
    fr.ifremer.quadrige3.ui.swing.ApplicationUI
    fr.ifremer.quadrige3.ui.swing.ApplicationUIUtil
33
    fr.ifremer.quadrige3.ui.swing.plaf.ComponentBlockingLayerUI
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

    fr.ifremer.reefdb.ui.swing.content.observation.survey.SurveyDetailsTabUI
    fr.ifremer.reefdb.ui.swing.content.observation.survey.measurement.SurveyMeasurementsTabUI
    fr.ifremer.reefdb.ui.swing.content.observation.operation.measurement.OperationMeasurementsTabUI
    fr.ifremer.reefdb.ui.swing.content.observation.photo.PhotosTabUI

    java.awt.BorderLayout
    java.awt.FlowLayout
    java.awt.Font
    java.awt.Color

    javax.swing.Box
    javax.swing.BoxLayout
    javax.swing.SwingConstants
    javax.swing.border.EmptyBorder

    static org.nuiton.i18n.I18n.*
  </import>

  <!--getContextValue est une méthode interne JAXX-->
  <ObservationUIModel id='model' initializer='getContextValue(ObservationUIModel.class)'/>

  <ReefDbHelpBroker id='broker' constructorParams='"reefdb.home.help"'/>
57
  <ComponentBlockingLayerUI id='surveyBlockLayer'/>
58
59
60
61
62
63

  <script><![CDATA[

    private int tabIndex;

		//Le parent est très utile pour intervenir sur les frères
PECQUOT's avatar
PECQUOT committed
64
65
		public ObservationUI(ReefDbMainUI parentUI, int tabIndex) {
		    ApplicationUIUtil.setParentUI(this, parentUI);
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
		    setTabIndex(tabIndex);
		}

		public int getTabIndex() {
		  return this.tabIndex;
		}

    public void setTabIndex(Integer tabIndex) {
        this.tabIndex = tabIndex;
    }

	]]></script>

  <JPanel id="labelPanel" constraints="BorderLayout.PAGE_START" layout='{new BoxLayout(labelPanel, BoxLayout.LINE_AXIS)}' border="{new EmptyBorder(10,0,10,0)}">
    <JLabel id="observationLabel" border="{new EmptyBorder(0,5,0,5)}"/>
    <JLabel id="observationDescriptionLabel"/>
  </JPanel>

  <JTabbedPane id='observationTabbedPane' constraints='BorderLayout.CENTER' decorator='boxed'>
    <tab>
      <SurveyDetailsTabUI id='surveyDetailsTabUI' constructorParams='this'/>
    </tab>
    <tab>
      <SurveyMeasurementsTabUI id='surveyMeasurementsTabUI' constructorParams='this'/>
    </tab>
    <tab>
      <OperationMeasurementsTabUI id='operationMeasurementsTabUI' constructorParams='this'/>
    </tab>
    <tab>
      <PhotosTabUI id='photosTabUI' constructorParams='this'/>
    </tab>
  </JTabbedPane>

  <JPanel layout='{new BorderLayout()}' constraints='BorderLayout.PAGE_END'>
    <JPanel layout='{new GridLayout(1,0)}' constraints='BorderLayout.CENTER'>
      <JButton id='closeButton' alignmentX='{Component.CENTER_ALIGNMENT}'/>
      <JButton id='saveButton' alignmentX='{Component.CENTER_ALIGNMENT}'/>
      <JButton id='nextButton' alignmentX='{Component.CENTER_ALIGNMENT}'/>
    </JPanel>
  </JPanel>

</JPanel>