RulesMenuUI.jaxx 2.84 KB
Newer Older
PECQUOT's avatar
   
PECQUOT committed
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%
  -->
PECQUOT's avatar
   
PECQUOT committed
23
<Table fill="horizontal" decorator='help' implements='fr.ifremer.reefdb.ui.swing.util.ReefDbUI&lt;RulesMenuUIModel, RulesMenuUIHandler&gt;'>
PECQUOT's avatar
   
PECQUOT committed
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
	<import>
	    fr.ifremer.reefdb.ui.swing.ReefDbHelpBroker
	    fr.ifremer.reefdb.ui.swing.ReefDbUIContext
	    fr.ifremer.reefdb.ui.swing.util.ReefDbUI
	    fr.ifremer.reefdb.ui.swing.util.ReefDbUIUtil
		
		fr.ifremer.reefdb.dto.configuration.control.RuleListDTO
	
	    java.awt.FlowLayout
	    javax.swing.Box
	    javax.swing.BoxLayout
		java.awt.BorderLayout
    	javax.swing.SwingConstants
    
		jaxx.runtime.swing.editor.bean.BeanFilterableComboBox
	
		static org.nuiton.i18n.I18n.*
		static org.nuiton.i18n.I18n.t;
	</import>
	
	<!--getContextValue est une méthode interne JAXX-->
PECQUOT's avatar
   
PECQUOT committed
45
	<RulesMenuUIModel id='model' initializer='getContextValue(RulesMenuUIModel.class)'/>
PECQUOT's avatar
   
PECQUOT committed
46
47
48
49
50
	          
	<ReefDbHelpBroker id='broker' constructorParams='"reefdb.home.help"'/>
	  
	<script><![CDATA[
		//Le parent est très utile pour intervenir sur les frères
PECQUOT's avatar
   
PECQUOT committed
51
		public RulesMenuUI(ReefDbUI parentUI) {
PECQUOT's avatar
   
PECQUOT committed
52
53
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
82
83
84
85
86
87
88
		    ReefDbUIUtil.setParentUI(this, parentUI);
		}
	]]></script>

	<row>
		<cell weightx="1" weighty="0" fill="both">
			<Table id="menuPanel" fill="both">
				<row>
					<cell>
						<JPanel id='listeReglesPanel' layout='{new BorderLayout()}'>
							<JLabel id='listeReglesLabel' constraints='BorderLayout.PAGE_START'/>
							<BeanFilterableComboBox id='listeReglesCombo' constructorParams='this' constraints='BorderLayout.CENTER' genericType='RuleListDTO'/>
						</JPanel>
					</cell>
				</row>
				<row>
					<cell>
			     		<JSeparator constructorParams='SwingConstants.HORIZONTAL'/>
					</cell>
				</row>
				<row>
					<cell>
						<JPanel id='selectionButtonsPanel' layout='{new FlowLayout()}'>
							<JButton id='effacerBouton' alignmentX='{Component.CENTER_ALIGNMENT}'/>
					  		<JButton id='rechercherBouton' alignmentX='{Component.CENTER_ALIGNMENT}'/>
					  	</JPanel>
					</cell>
				</row>
			</Table>
		</cell>
	</row>
	<row>
		<cell weightx="1" weighty="1" fill="both">
			<JLabel/>
		</cell>
	</row>
</Table>