RulesMenuUI.jaxx 2.72 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
<!--
  #%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%
  -->
23
<JPanel decorator='help' implements='fr.ifremer.reefdb.ui.swing.util.ReefDbUI&lt;RulesMenuUIModel, RulesMenuUIHandler&gt;'>
24
	<import>
25
26
27
		fr.ifremer.reefdb.ui.swing.ReefDbHelpBroker
		fr.ifremer.reefdb.ui.swing.ReefDbUIContext
		fr.ifremer.reefdb.ui.swing.util.ReefDbUI
PECQUOT's avatar
PECQUOT committed
28
29
		fr.ifremer.quadrige3.ui.swing.common.ApplicationUI
		fr.ifremer.quadrige3.ui.swing.common.ApplicationUIUtil
30
31
		fr.ifremer.reefdb.dto.configuration.control.RuleListDTO
		fr.ifremer.reefdb.dto.configuration.programStrategy.ProgramDTO
32

33
34
35
36
37
		java.awt.FlowLayout
		javax.swing.Box
		javax.swing.BoxLayout
		java.awt.BorderLayout
		javax.swing.SwingConstants
PECQUOT's avatar
PECQUOT committed
38

39
40
41
42
		fr.ifremer.quadrige3.ui.swing.common.component.bean.ExtendedComboBox

		static org.nuiton.i18n.I18n.*
	</import>
PECQUOT's avatar
PECQUOT committed
43

44
	<RulesMenuUIModel id='model' initializer='getContextValue(RulesMenuUIModel.class)'/>
45

46
	<ReefDbHelpBroker id='broker' constructorParams='"reefdb.home.help"'/>
47

48
	<script><![CDATA[
PECQUOT's avatar
PECQUOT committed
49
50
		public RulesMenuUI(ApplicationUI parentUI) {
		    ApplicationUIUtil.setParentUI(this, parentUI);
51
52
53
		}
	]]></script>

54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
	<JPanel id="menuPanel" layout='{new BoxLayout(menuPanel, BoxLayout.PAGE_AXIS)}'>

		<Table id="selectionPanel" fill="both">
			<row>
				<cell>
					<JPanel layout='{new BorderLayout()}'>
						<JLabel id='ruleListLabel' constraints='BorderLayout.PAGE_START'/>
						<ExtendedComboBox id='ruleListComboBox' constructorParams='this' constraints='BorderLayout.CENTER' genericType='RuleListDTO'/>
					</JPanel>
				</cell>
			</row>
			<row>
				<cell>
					<JPanel layout='{new BorderLayout()}'>
						<JLabel id='programLabel' constraints='BorderLayout.PAGE_START'/>
						<ExtendedComboBox id='programComboBox' constructorParams='this' constraints='BorderLayout.CENTER' genericType='ProgramDTO'/>
					</JPanel>
				</cell>
			</row>
		</Table>

		<JPanel id='selectionButtonsPanel' layout='{new FlowLayout()}'>
			<JButton id='clearButton' alignmentX='{Component.CENTER_ALIGNMENT}'/>
			<JButton id='searchButton' alignmentX='{Component.CENTER_ALIGNMENT}'/>
		</JPanel>

	</JPanel>
</JPanel>