Class InputHandler


public class InputHandler extends NavigationHandler
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 Details

  • Constructor Details

    • InputHandler

      public InputHandler(InputUI inputUI)
  • Method Details

    • initRegionListModel

      protected void initRegionListModel(StorageChangeEvent evt)
    • afterInit

      public void afterInit()
      Post init ui.
    • loadRegion

      public void loadRegion(String name)
      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

      public void regionChange(ItemEvent e)
      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

      public void nodeSelectionChanged(TreeSelectionEvent event)
      Changement de selection dans l'arbre de la pecherie.
      Parameters:
      event -
    • deleteTreeNode

      public void deleteTreeNode(String topiaId)
      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 create
      topiaEntity - node to insert
    • updateTreeNode

      public void updateTreeNode(String topiaId)
      Update tree node for topiaId.
      Parameters:
      topiaId - node id to update
    • findSpecies

      public Species 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.