Author: echatellier Date: 2011-10-28 14:18:29 +0200 (Fri, 28 Oct 2011) New Revision: 3500 Url: http://forge.codelutin.com/repositories/revision/isis-fish/3500 Log: Disable all field (except comment) Modified: trunk/src/main/java/fr/ifremer/isisfish/ui/input/PopulationGroupUI.jaxx Modified: trunk/src/main/java/fr/ifremer/isisfish/ui/input/PopulationGroupUI.jaxx =================================================================== --- trunk/src/main/java/fr/ifremer/isisfish/ui/input/PopulationGroupUI.jaxx 2011-10-28 12:18:03 UTC (rev 3499) +++ trunk/src/main/java/fr/ifremer/isisfish/ui/input/PopulationGroupUI.jaxx 2011-10-28 12:18:29 UTC (rev 3500) @@ -133,12 +133,6 @@ if (selectedPopulationGroup != null) { getSaveVerifier().addCurrentEntity(selectedPopulationGroup); setNaturalDeathRateMatrix(); - - // init number editor (not working on bindings) - /*fieldPopulationGroupReproductionRate.init(); - fieldPopulationGroupAge.init(); - fieldPopulationGroupMinLength.init(); - fieldPopulationGroupMaxLength.init();*/ } } ]]> @@ -158,11 +152,9 @@ <cell fill='horizontal' anchor='east'> <JLabel text="isisfish.populationGroup.naturalDeathRate" enabled='{getPopulationGroup() != null}'/> </cell> - <cell columns='2' fill='both' weightx='1.0' weighty='0.5'> + <cell columns='2' fill='both' weightx='1.0' weighty='1'> <org.nuiton.math.matrix.gui.MatrixPanelEditor id='fieldPopulationGroupNaturalDeathRate' - enabled='false' decorator='boxed' _sensitivityBean='{Population.class}' _sensitivityMethod='"NaturalDeathRateMatrix"' /> - <!-- this bindings totally break UI - matrix='{getBean() == null || getPopulationGroup() == null ? null : ((AbstractMatrixND)getBean().getNaturalDeathRateMatrix()).getSubMatrixOnSemantic(0, getPopulationGroup())}' --> + enabled='false' decorator='boxed' /> </cell> </row> <row> @@ -171,8 +163,7 @@ </cell> <cell columns='2' fill='horizontal' weightx='1.0'> <JTextField id="fieldPopulationGroupMeanWeight" text='{String.valueOf(getPopulationGroup().getMeanWeight())}' - editable="false" - enabled='{getPopulationGroup() != null}' decorator='boxed'/> + enabled="false" decorator='boxed'/> </cell> </row> <row> @@ -181,8 +172,7 @@ </cell> <cell columns='2' fill='horizontal' weightx='1.0'> <JTextField id="fieldPopulationGroupMaturityOgive" text='{String.valueOf(getPopulationGroup().getMaturityOgive())}' - editable="false" - enabled='{getPopulationGroup() != null}' decorator='boxed'/> + enabled="false" decorator='boxed'/> </cell> </row> <row> @@ -191,8 +181,7 @@ </cell> <cell columns='2' fill='horizontal' weightx='1.0'> <JTextField id="fieldPopulationGroupReproductionRate" text='{String.valueOf(getPopulationGroup().getReproductionRate())}' - editable="false" - enabled='{getPopulationGroup() != null}' decorator='boxed'/> + enabled="false" decorator='boxed'/> </cell> </row> <row> @@ -201,8 +190,7 @@ </cell> <cell columns='2' fill='horizontal' weightx='1.0'> <JTextField id="fieldPopulationGroupPrice" text='{String.valueOf(getPopulationGroup().getPrice())}' - editable="false" - enabled='{getPopulationGroup() != null}' decorator='boxed'/> + enabled="false" decorator='boxed'/> </cell> </row> <row> @@ -212,9 +200,7 @@ <cell columns='2' fill='horizontal' weightx='1.0'> <!-- non editable age field --> <JTextField id="fieldPopulationGroupAge" text='{String.valueOf(getPopulationGroup().getAge())}' - onKeyReleased='getPopulationGroup().setAge(Double.parseDouble(fieldPopulationGroupAge.getText()))' - enabled='{getPopulationGroup().getPopulation().getSpecies().getAgeGroupType()}' - decorator='boxed' _sensitivityBean='{PopulationGroup.class}' _sensitivityMethod='"Age"'/> + enabled='false' decorator='boxed'/> </cell> </row> <row> @@ -225,22 +211,20 @@ <!-- non editable min length field --> <JTextField id="fieldPopulationGroupMinLength" text='{String.valueOf(getPopulationGroup().getMinLength())}' toolTipText="isisfish.populationGroup.minimumLength" - onKeyReleased='getPopulationGroup().setMinLength(Double.parseDouble(fieldPopulationGroupMinLength.getText()))' - enabled='{!getPopulationGroup().getPopulation().getSpecies().getAgeGroupType()}' decorator='boxed' _sensitivityBean='{PopulationGroup.class}' _sensitivityMethod='"MinLength"'/> + enabled='false' decorator='boxed' /> </cell> <cell fill='both' weightx='0.5'> <!-- non editable max length field --> <JTextField id="fieldPopulationGroupMaxLength" text='{String.valueOf(getPopulationGroup().getMaxLength())}' toolTipText="isisfish.populationGroup.maximumLength" - onKeyReleased='getPopulationGroup().setMaxLength(Double.parseDouble(fieldPopulationGroupMaxLength.getText()))' - enabled='{!getPopulationGroup().getPopulation().getSpecies().getAgeGroupType()}' decorator='boxed' _sensitivityBean='{PopulationGroup.class}' _sensitivityMethod='"MaxLength"'/> + enabled='false' decorator='boxed'/> </cell> </row> <row> <cell fill='horizontal' anchor='east'> <JLabel text="isisfish.populationGroup.comments" enabled='{getPopulationGroup() != null}'/> </cell> - <cell columns='2' fill='both' weightx='1.0' weighty='0.5'> + <cell columns='2' fill='both' weightx='1.0' weighty='3'> <JScrollPane> <!-- jaxx.runtime.SwingUtil.getStringValue() for null values --> <JTextArea id="fieldPopulationGroupComment" text='{jaxx.runtime.SwingUtil.getStringValue(getPopulationGroup().getComment())}'
participants (1)
-
echatellier@users.forge.codelutin.com