Package fr.ifremer.isisfish.ui.simulator
Class RuleChooserHandler
java.lang.Object
fr.ifremer.isisfish.ui.simulator.RuleChooserHandler
Handler for
class
.- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Get new instance for selected rules names and add it torulesList
list.protected void
protected void
Display parameters table form single selected list.void
protected void
protected void
void
preRemoveRule
(int ruleIndex) Called by RuleChooser component before rule deletion.protected void
preRemoveRule
(FactorGroup factorGroup, int ruleIndex) Recursive rename and delete rule factor path.void
Remove selected rules for selected rules list.protected void
Setup drag and drop support on selected list.
-
Field Details
-
ruleChooser
-
availableRuleListener
-
-
Constructor Details
-
RuleChooserHandler
-
-
Method Details
-
initAvailableRules
-
initSelectedRules
-
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 torulesList
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
Recursive rename and delete rule factor path.- Parameters:
factorGroup
- factorGroupruleIndex
- rule index to to delete
-