|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.ui.CommonHandler
fr.ifremer.isisfish.ui.input.InputHandler
fr.ifremer.isisfish.ui.sensitivity.SensitivityInputHandler
public class SensitivityInputHandler
Handler for sensitivity tab ui (fishery region factors).
| Field Summary |
|---|
| Fields inherited from class fr.ifremer.isisfish.ui.input.InputHandler |
|---|
uiInstanceCache |
| Constructor Summary | |
|---|---|
SensitivityInputHandler()
|
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class fr.ifremer.isisfish.ui.input.InputHandler |
|---|
accept, commitRegionInCVS, copyRegion, createNewRegion, deleteTreeNode, displayFactorWizard, exportRegion, exportRegionSensitivityFactors, findSpecies, getUIInstanceForBeanClass, importRegion, importRegionAndRename, importRegionFromSimulation, importV2Region, insertTreeNode, loadRegion, nodeSelectionChanged, refreshRegionList, regionChange, reloadFisheryTree, removeRegion, setTreeSelection, setTreeSelection, updateTreeNode |
| Methods inherited from class fr.ifremer.isisfish.ui.CommonHandler |
|---|
setStatusMessage, setStatusMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SensitivityInputHandler()
| Method Detail |
|---|
public void loadFisheryRegionTree(SensitivityTabUI sensitivityTabUI)
sensitivityTabUI -
public void nodeSelectionChanged(SensitivityTabUI sensitivityTabUI,
TreeSelectionEvent event)
sensitivityTabUI - event -
public void addNewFactorGroup(SensitivityTabUI sensitivityTabUI,
boolean continuous)
sensitivityTabUI - continuous - continuous
public 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 edit
public void initNewFactorWithValue(FactorWizardUI factorWizardUI,
Object value)
factorWizardUI - factorWizardUIvalue - value
public void initExistingFactor(FactorWizardUI factorWizardUI,
Factor factor)
factorWizardUI - factor - factorpublic void addTabs(FactorWizardUI factorWizardUI)
factorWizardUI - factorWizardUI
protected Class<?> getPropertyClass(String factorPath,
org.nuiton.topia.TopiaContext context)
factorPath - factor pathcontext - context
protected Object getPropertyValue(Object entity,
String fieldName)
entity - fieldName -
public boolean canBeFactor(Class type)
type - type
true 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 - value
public boolean isContinue(Object value)
value - value to test
true if value is is continue factor enable
public ContinuousPanelContainerUI getContinuousPanel(Object value,
org.nuiton.topia.persistence.TopiaEntityContextable bean,
String property)
value - valuebean - beanproperty - property
public ContinuousPanelContainerUI getContinuousPanelWithValue(Factor factor,
ContinuousDomain domain,
org.nuiton.topia.TopiaContext topiaContext)
domain - domainfactor - factortopiaContext - context used to get database value in case of equation factors
protected 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 - factorWizardUI
protected JComponent getRuleDiscreteComponent(FactorWizardUI factorWizardUI,
Class type)
clazz -
public void save(FactorWizardUI factorWizardUI)
factorWizardUI - factorWizardUI
protected void saveContinue(String name,
String comment,
String path,
ContinuousPanelContainerUI panel,
SimulAction action,
boolean exist)
name - factor namecomment - commentpath - factor pathpanel - panelaction - actionexist - exist
protected 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 - component
public void remove(FactorWizardUI factorWizardUI)
factorWizardUI - factorWizardUI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||