java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocall.basic.geos.ui.MapContainer
overit.geocallapp.wfm.geos.ui.MapContainer
overit.geocallapp.wfm.core.ux.location.microcluster.selectionmap.MicroclusterSelectionMap
All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, AjaxableComponent, Badgeable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

public class MicroclusterSelectionMap extends overit.geocallapp.wfm.geos.ui.MapContainer implements AjaxableComponent
See Also:
  • Field Details

  • Constructor Details

    • MicroclusterSelectionMap

      public MicroclusterSelectionMap()
  • Method Details

    • onOpen

      public void onOpen(Object o)
      Description copied from class: Container
      Method called when is executed the WindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object) of the Window that contains the Container. It calls the onOpen(o) method of all the Container's childrens.
      If a page is opened through the process of a route, it is possible that the route was called with params to pass to the page.
      The route params could be passed specifying them like query string's param on the url, using commas or the '=' character, to separate the keys and the values. Valid syntaxs are: "&params=KEY1,VAL1,KEY2,VAL2" or "&params=KEY1=VAL1,KEY2=VAL2"
      In that case it is possible to retrieve those params via the WindowManager.getRouteParams() method that returns an HashGetter with the params passed as parameters.
      For example it's possible to retrieve and use the params in this way: HashGetter hg = getWM().getRouteParams();
      String val1 = hg.getString("key1",null);
      String val2 = hg.getString("key2",null);
      Overrides:
      onOpen in class overit.geocallapp.wfm.geos.ui.MapContainer
      Parameters:
      o - Object received from the caller
    • initComponents

      protected void initComponents()
    • getDBViewBuilder

      protected MacroclustersDBViewBuilder getDBViewBuilder()
    • getDataSourceHelper

      protected MicroclusterSelectionMapDataSourceHelper getDataSourceHelper()
    • initMicroclusterMappings

      protected void initMicroclusterMappings()
    • onLoadMap

      public void onLoadMap(Object o)
      Description copied from class: overit.geocall.basic.geos.ui.MapContainer
      Event launched right after the init of the map: it allows to populate the object made with the information in memory
      Overrides:
      onLoadMap in class overit.geocallapp.wfm.geos.ui.MapContainer
      Parameters:
      o - Not used
    • initDataSource

      protected void initDataSource()
    • mapType

      public overit.geocallapp.wfm.util.map.MapType mapType()
      Overrides:
      mapType in class overit.geocallapp.wfm.geos.ui.MapContainer
    • getLayersToDisable

      protected List<String> getLayersToDisable()
    • initLayerVisibility

      protected void initLayerVisibility()
    • manageAjaxQuery

      protected boolean manageAjaxQuery(HttpServletRequest request, HttpServletResponse response) throws IOException
      Description copied from class: overit.geocall.basic.geos.ui.MapContainer
      Methos to add functionalities to the toolbar
      Overrides:
      manageAjaxQuery in class overit.geocallapp.wfm.geos.ui.MapContainer
      Parameters:
      request - The request
      response - The response
      Returns:
      true if the personalized operation is managed
      Throws:
      IOException - if an I/O error occured
    • onSelectionChanged

      public void onSelectionChanged()
      Description copied from class: overit.geocall.basic.geos.ui.MapContainer
      Event launched when the selection of the cartographic object is changed
      Overrides:
      onSelectionChanged in class overit.geocall.basic.geos.ui.MapContainer
    • onSelectByCap

      public boolean onSelectByCap(UIMessage uim)
    • onSelectByIstat

      public boolean onSelectByIstat(UIMessage uim)
    • onUnselectMicrocluster

      public boolean onUnselectMicrocluster(UIMessage uim)
    • onCenterMacrocluster

      public boolean onCenterMacrocluster(UIMessage uim)
    • onCenterMicrocluster

      public boolean onCenterMicrocluster(UIMessage uim)
    • onSelectMacrocluster

      public boolean onSelectMacrocluster(UIMessage uim)
    • onRestoreSelected

      public boolean onRestoreSelected(UIMessage uim)
    • onAddSelected

      public boolean onAddSelected(UIMessage uim)
    • onRemoveSelected

      public boolean onRemoveSelected(UIMessage uim)
    • applySelection

      protected void applySelection(boolean isAdd)
    • onSave

      public boolean onSave(Object o)
    • onMinima

      public boolean onMinima(Object o)
    • onMedia

      public boolean onMedia(Object o)
    • onGrande

      public boolean onGrande(Object o)
    • centerOnVisibleMicroclusters

      protected void centerOnVisibleMicroclusters()
    • onMapMenu

      public boolean onMapMenu(UIMessage uim)
    • onReduceOpacity

      public boolean onReduceOpacity(UIMessage uim)
    • getFrameHtml

      public org.apache.ecs.Element getFrameHtml(overit.geocall.ux.servlet.processor.Change c, EntitySet es)
      Description copied from interface: AjaxableComponent
      Defines the html part of the element that changes when an Ajax interaction occurs
      Specified by:
      getFrameHtml in interface AjaxableComponent
      Parameters:
      c - The Change object that defines the specific morphing type for the element
      es - The EntitySet to which the element belongs
      Returns:
      The html part of the element that changes when an Ajax interaction occurs
    • getHtml

      public org.apache.ecs.Element getHtml(EntitySet es)
      Description copied from class: Container
      Returns the html code of the Container
      Overrides:
      getHtml in class overit.geocallapp.wfm.geos.ui.MapContainer
      Parameters:
      es - The EntitySet to which the element belong
      Returns:
      The html code of the Container
    • changed

      public void changed(overit.geocall.ux.servlet.processor.Change change)
      Description copied from interface: AjaxableComponent
      Defines the morphing of the element that occurs when there is an Ajax interaction
      Specified by:
      changed in interface AjaxableComponent
      Parameters:
      change - The Change object that defines the specific morphing type for the element
    • getDefaultChange

      public overit.geocall.ux.servlet.processor.Change getDefaultChange()
      Description copied from interface: AjaxableComponent
      Defines the default Change object for the element
      Specified by:
      getDefaultChange in interface AjaxableComponent
      Returns:
      The default Change object that defines the default morphing type of the element
    • getFrameId

      protected String getFrameId()
    • getMacrocluster

      protected Macrocluster getMacrocluster(String macroclusterId)
    • getMacroclusterMicroclusters

      protected Set<?> getMacroclusterMicroclusters(String macroclusterId)
    • getMicroclusterMacrocluster

      protected String getMicroclusterMacrocluster(Object microclusterUuid)
    • updateMicroclusterSelection

      protected void updateMicroclusterSelection(Macrocluster macrocluster, Object microclusterUuid, boolean isSelected)
    • isMicroclusterSelected

      protected boolean isMicroclusterSelected(Macrocluster macrocluster, Object microclusterUuid)
    • isMicroclusterVisible

      protected boolean isMicroclusterVisible(Object microclusterUuid)