Class RuleChooserHandler

java.lang.Object
fr.ifremer.isisfish.ui.simulator.RuleChooserHandler

public class RuleChooserHandler extends Object
Handler for class.
Version:
$Revision$ Last update : $Date$ By : $Author$
Author:
chatellier
  • Field Details

  • Constructor Details

    • RuleChooserHandler

      public RuleChooserHandler(RuleChooser ruleChooser)
  • Method Details

    • initAvailableRules

      protected void initAvailableRules(StorageChangeEvent evt)
    • initSelectedRules

      protected void initSelectedRules(PropertyChangeEvent evt)
    • afterInit

      protected void afterInit()
    • setupSelectedListDnD

      protected void setupSelectedListDnD()
      Setup drag and drop support on selected list.
    • addSelectedRules

      public void addSelectedRules()
      Get new instance for selected rules names and add it to rulesList list.
    • removeSelectedRules

      public void removeSelectedRules()
      Remove selected rules for selected rules list.
    • duplicateSelectedRules

      public void duplicateSelectedRules()
    • displayRuleParameters

      protected void displayRuleParameters()
      Display parameters table form single selected list.
    • preRemoveRule

      public void preRemoveRule(int ruleIndex)
      Called by RuleChooser component before rule deletion. Used to remove factor associated to rule to delete. Factor path reference rule with factor path containing rule index in rule list : for example :
       parameters.rule.2.parameter.tacPoids
       
      Must also rename all next indices.
      Parameters:
      ruleIndex - rule index to to delete
    • preRemoveRule

      protected void preRemoveRule(FactorGroup factorGroup, int ruleIndex)
      Recursive rename and delete rule factor path.
      Parameters:
      factorGroup - factorGroup
      ruleIndex - rule index to to delete