Package fr.ifremer.isisfish.ui.input
Class InputHandler
java.lang.Object
fr.ifremer.isisfish.ui.CommonHandler
fr.ifremer.isisfish.ui.NavigationHandler
fr.ifremer.isisfish.ui.input.InputHandler
Main handler for fishery edition action.
Next, each ui as his own handler.
In context :
- FisheryRegion
- RegionStorage
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
-
Field Summary
Fields inherited from class fr.ifremer.isisfish.ui.NavigationHandler
uiInstanceCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Post init ui.void
Changement de la resolution spatiale.void
Commit region.void
Copy la region avec un autre nom.void
Create new region (called if region name is not empty).void
deleteTreeNode
(String topiaId) Delete tree node referenced by parent, and auto select parent node.void
protected void
exportJson
(org.nuiton.topia.persistence.TopiaEntity e) Exporter une entite json gzipvoid
Exporter la region dans un zip Call only if region is loaded.void
Explore region and export any enabled sensitivity factor name with value.void
Realise un export JSON et affiche la page de visualisation dans un navigateur.Dans le cas d'une creation de population, on doit la creer dans une espèce.void
void
Exporter la region dans un zip.void
Exporter la region dans un zip.void
Extract from a simulation the region, and rename it with name given by user.protected void
void
insertTreeNode
(Class nodeClass, org.nuiton.topia.persistence.TopiaEntityContextable topiaEntity) Insert new tree node and select it.void
loadRegion
(String name) Load region by region name, set it into jaxx context and refresh ui.void
Changement de selection dans l'arbre de la pecherie.void
Main ui fishery region selection changed.void
Reload current loaded fishery tree.void
removeRegion
(boolean vcsDelete) Remove region.void
updateTreeNode
(String topiaId) Update tree node for topiaId.Methods inherited from class fr.ifremer.isisfish.ui.NavigationHandler
getUIInstanceForBeanClass, setTreeSelection, setTreeSelection
Methods inherited from class fr.ifremer.isisfish.ui.CommonHandler
setStatusMessage, setStatusMessage
-
Field Details
-
inputUI
-
regionListStorageListener
-
-
Constructor Details
-
InputHandler
-
-
Method Details
-
initRegionListModel
-
afterInit
public void afterInit()Post init ui. -
loadRegion
Load region by region name, set it into jaxx context and refresh ui. Before loading region, try to close old one.- Parameters:
name
- region name to load
-
reloadFisheryTree
public void reloadFisheryTree()Reload current loaded fishery tree. -
regionChange
Main ui fishery region selection changed.- Parameters:
e
- event
-
createNewRegion
public void createNewRegion()Create new region (called if region name is not empty). -
importRegion
public void importRegion()Exporter la region dans un zip. -
importRegionAndRename
public void importRegionAndRename()Exporter la region dans un zip. -
importRegionFromSimulation
public void importRegionFromSimulation()Extract from a simulation the region, and rename it with name given by user. -
exportRegion
public void exportRegion()Exporter la region dans un zip Call only if region is loaded. -
exportJson
protected void exportJson(org.nuiton.topia.persistence.TopiaEntity e) Exporter une entite json gzip -
exportEntityJson
public void exportEntityJson() -
importEntityJson
public void importEntityJson() -
removeRegion
public void removeRegion(boolean vcsDelete) Remove region.- Parameters:
vcsDelete
- if true delete region in CVS too
-
copyRegion
public void copyRegion()Copy la region avec un autre nom. -
commitRegionInCVS
public void commitRegionInCVS()Commit region. -
exportRegionSensitivityFactors
public void exportRegionSensitivityFactors()Explore region and export any enabled sensitivity factor name with value. -
nodeSelectionChanged
Changement de selection dans l'arbre de la pecherie.- Parameters:
event
-
-
deleteTreeNode
Delete tree node referenced by parent, and auto select parent node.- Parameters:
topiaId
- node id to delete
-
insertTreeNode
public void insertTreeNode(Class nodeClass, org.nuiton.topia.persistence.TopiaEntityContextable topiaEntity) Insert new tree node and select it.- Parameters:
nodeClass
- node type to createtopiaEntity
- node to insert
-
updateTreeNode
Update tree node for topiaId.- Parameters:
topiaId
- node id to update
-
findSpecies
Dans le cas d'une creation de population, on doit la creer dans une espèce. On doit rechercher celle qui est sélectionnée dans l'arbre.- Returns:
- selected species
-
changeSpatialResolution
public void changeSpatialResolution()Changement de la resolution spatiale. -
exportWeb
public void exportWeb()Realise un export JSON et affiche la page de visualisation dans un navigateur.
-