public class SensitivityInputHandler extends InputHandler
uiInstanceCache| Constructor and Description |
|---|
SensitivityInputHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewFactorGroup(SensitivityTabUI sensitivityTabUI,
boolean continuous)
Add new continuous factor group in factor tree.
|
void |
addTabs(FactorWizardUI factorWizardUI)
Refresh tab for discrete factor numbers.
|
boolean |
canBeContinue(Object value)
Return true if value can be defined in continuous factor.
|
boolean |
canBeFactor(Class type)
Return if type can be defined as a factor.
|
protected void |
deleteSelectedFactors(SensitivityTabUI sensitivityTabUI)
Delete selection factors.
|
void |
exportFactorsToMexico(SensitivityTabUI view)
Export factors list to xml mexico file.
|
protected void |
factorSelected(SensitivityTabUI sensitivityTabUI)
Factor selection, display modification wizard.
|
void |
factorsTreeMouseClicked(SensitivityTabUI sensitivityTabUI,
MouseEvent e)
Mouse click on factors tree.
|
protected Object |
getComponentValue(JComponent component)
Return value in swing component that could be next used into factor
for discrete factor values.
|
ContinuousPanelContainerUI |
getContinuousPanel(Object value,
org.nuiton.topia.persistence.TopiaEntityContextable bean,
String property)
Get copy of component with original entity value as default value.
|
ContinuousPanelContainerUI |
getContinuousPanelWithValue(Factor factor,
ContinuousDomain domain,
org.nuiton.topia.TopiaContext topiaContext)
Get continuous editor for component with given value.
|
protected JComponent |
getEditorWithValue(FactorWizardUI factorWizardUI,
Factor factor,
Domain domain,
Object value)
Get editor for value (discrete).
|
JComponent |
getNewDiscreteComponent(FactorWizardUI factorWizardUI)
Get copy of component with original entity value as default value.
|
protected Class<?> |
getPropertyClass(String factorPath,
org.nuiton.topia.TopiaContext context)
Retourne le type de valeur pointé par le path du facteur.
|
protected Object |
getPropertyValue(Object entity,
String fieldName)
Get value for fieldName in entity.
|
protected JComponent |
getRuleDiscreteComponent(FactorWizardUI factorWizardUI,
Class type)
Get new special
|
void |
initExistingFactor(FactorWizardUI factorWizardUI,
Factor factor)
Reaffiche un facteur existant.
|
void |
initNewFactor(FactorWizardUI factorWizardUI,
org.nuiton.topia.persistence.TopiaEntityContextable bean,
String property)
Un init new se fait toujours sur une entité.
|
void |
initNewFactorWithValue(FactorWizardUI factorWizardUI,
Object value)
Permet d'intialiser le wizard avec une valeur independante de la
provenance (utile pour les facteurs sur les parametres de regles).
|
boolean |
isContinue(Object value)
Return if value is is continue factor enable.
|
void |
loadFisheryRegionTree(SensitivityTabUI sensitivityTabUI) |
void |
moveFactor(SensitivityTabUI sensitivityTabUI,
FactorGroup selectedFactorGroup,
List<Factor> movedFactors)
Move factors to another factorgroup.
|
void |
nodeSelectionChanged(SensitivityTabUI sensitivityTabUI,
TreeSelectionEvent event)
Changement de selection dans l'arbre de la pecherie.
|
void |
remove(FactorWizardUI factorWizardUI)
Remove current factor.
|
void |
save(FactorWizardUI factorWizardUI)
Save current factor.
|
protected void |
saveContinue(String name,
String comment,
String path,
ContinuousPanelContainerUI panel,
SimulAction action,
boolean exist)
Save a continous factor.
|
protected void |
saveDiscret(String name,
String comment,
String path,
List<JComponent> components,
SimulAction action,
boolean exist)
Save a discret factor.
|
accept, commitRegionInCVS, copyRegion, createNewRegion, deleteTreeNode, displayFactorWizard, exportRegion, exportRegionSensitivityFactors, findSpecies, getUIInstanceForBeanClass, importRegion, importRegionAndRename, importRegionFromSimulation, importV2Region, insertTreeNode, loadRegion, nodeSelectionChanged, refreshRegionList, regionChange, reloadFisheryTree, removeRegion, setTreeSelection, setTreeSelection, updateTreeNodesetStatusMessage, setStatusMessagepublic void loadFisheryRegionTree(SensitivityTabUI sensitivityTabUI)
sensitivityTabUI - public void nodeSelectionChanged(SensitivityTabUI sensitivityTabUI, TreeSelectionEvent event)
sensitivityTabUI - event - public void addNewFactorGroup(SensitivityTabUI sensitivityTabUI, boolean continuous)
sensitivityTabUI - continuous - continuouspublic void moveFactor(SensitivityTabUI sensitivityTabUI, FactorGroup selectedFactorGroup, List<Factor> movedFactors)
sensitivityTabUI - selectedFactorGroup - movedFactors - public void factorsTreeMouseClicked(SensitivityTabUI sensitivityTabUI, MouseEvent e)
sensitivityTabUI - uie - mouse eventprotected void factorSelected(SensitivityTabUI sensitivityTabUI)
sensitivityTabUI - protected void deleteSelectedFactors(SensitivityTabUI sensitivityTabUI)
public void initNewFactor(FactorWizardUI factorWizardUI, org.nuiton.topia.persistence.TopiaEntityContextable bean, String property)
factorWizardUI - factorWizardUIbean - bean in current uiproperty - bean property to editpublic void initNewFactorWithValue(FactorWizardUI factorWizardUI, Object value)
factorWizardUI - factorWizardUIvalue - valuepublic void initExistingFactor(FactorWizardUI factorWizardUI, Factor factor)
factorWizardUI - factor - factorpublic void addTabs(FactorWizardUI factorWizardUI)
factorWizardUI - factorWizardUIprotected Class<?> getPropertyClass(String factorPath, org.nuiton.topia.TopiaContext context)
factorPath - factor pathcontext - contextprotected Object getPropertyValue(Object entity, String fieldName)
entity - fieldName - public boolean canBeFactor(Class type)
type - typetrue if type can be defined as a factorpublic boolean canBeContinue(Object value)
RangeOfValues par exemple, seule la valeur
a un type Float... donc pas evident.value - valuepublic boolean isContinue(Object value)
value - value to testtrue if value is is continue factor enablepublic ContinuousPanelContainerUI getContinuousPanel(Object value, org.nuiton.topia.persistence.TopiaEntityContextable bean, String property)
value - valuebean - beanproperty - propertypublic ContinuousPanelContainerUI getContinuousPanelWithValue(Factor factor, ContinuousDomain domain, org.nuiton.topia.TopiaContext topiaContext)
domain - domainfactor - factortopiaContext - context used to get database value in case of equation factorsprotected JComponent getEditorWithValue(FactorWizardUI factorWizardUI, Factor factor, Domain domain, Object value)
factorWizardUI - context for context value (RegionStorage)value - type to get editorfactor - domain - public JComponent getNewDiscreteComponent(FactorWizardUI factorWizardUI)
factorWizardUI - factorWizardUIprotected JComponent getRuleDiscreteComponent(FactorWizardUI factorWizardUI, Class type)
clazz - public void save(FactorWizardUI factorWizardUI)
factorWizardUI - factorWizardUIprotected void saveContinue(String name, String comment, String path, ContinuousPanelContainerUI panel, SimulAction action, boolean exist)
name - factor namecomment - commentpath - factor pathpanel - panelaction - actionexist - existprotected void saveDiscret(String name, String comment, String path, List<JComponent> components, SimulAction action, boolean exist)
name - comment - path - components - action - exist - protected Object getComponentValue(JComponent component)
component - componentpublic void remove(FactorWizardUI factorWizardUI)
factorWizardUI - factorWizardUIpublic void exportFactorsToMexico(SensitivityTabUI view)
Copyright © 1999–2013 CodeLutin. All rights reserved.