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 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 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
<!--
  #%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%
  -->
<Table fill="horizontal" decorator='help' implements='fr.ifremer.reefdb.ui.swing.util.ReefDbUI&lt;RulesMenuUIModel, RulesMenuUIHandler&gt;'>
	<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

		fr.ifremer.reefdb.ui.swing.util.component.bean.ExtendedComboBox
	
		static org.nuiton.i18n.I18n.*
	</import>
	
	<!--getContextValue est une méthode interne JAXX-->
	<RulesMenuUIModel id='model' initializer='getContextValue(RulesMenuUIModel.class)'/>
	          
	<ReefDbHelpBroker id='broker' constructorParams='"reefdb.home.help"'/>
	  
	<script><![CDATA[
		//Le parent est très utile pour intervenir sur les frères
		public RulesMenuUI(ReefDbUI parentUI) {
		    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'/>
							<ExtendedComboBox 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>
PECQUOT's avatar
 
PECQUOT committed
87
</Table>