Class MicroclusterSelectionMap
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classNested classes/interfaces inherited from class overit.geocall.basic.geos.ui.MapContainer
overit.geocall.basic.geos.ui.MapContainer.InfoResult, overit.geocall.basic.geos.ui.MapContainer.JsonIdentify, overit.geocall.basic.geos.ui.MapContainer.JsonIdentifyListNested classes/interfaces inherited from class overit.geocall.ui.Component
Component.Configurable, Component.ConfigurableAttribute, Component.ConfigurableAttributes, Component.FilterCriteria, Component.Registry -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected org.geos.map.ShapeFolderprotected MicroclusterSelectionMapDataSourceHelperprotected MacroclustersDBViewBuilderprotected List<Macrocluster> protected intprotected booleanprotected TableViewprotected TableViewFields inherited from class overit.geocallapp.wfm.geos.ui.MapContainer
_configReader, _enableOperationsCenterLayer, _geometryLayers, _geometryRepository, _layerFactory, _mainServicelayer, _mapType, _olLayerFactory, _operationsCenterData, _operationsCenterFeatures, _operationsCenterLayerDefaultVisibility, BASE_LAYERS_NODE, BING_BASE_LAYERS, ENTER_IN_OPERATIONS_CENTER_EVENT, ESRI_BASE_LAYERS, GOOGLE_BASE_LAYERS, HERE_BASE_LAYERS, LOG, OPERATIONS_CENTER_ADDRESS_DESCRIPTION, OPERATIONS_CENTER_HAVE_ASSOCIATED_LAYER, OPERATIONS_CENTER_ID_FIELD, OPERATIONS_CENTER_LAYER_FIELD, OPERATIONS_CENTER_LAYER_ID, OPERATIONS_CENTER_LAYER_NAME, OPERATIONS_CENTER_MIN_ZOOM_FIELD, OPERATIONS_CENTER_X_FIELD, OPERATIONS_CENTER_Y_FIELD, OSM_BASE_LAYERS, OVERLAYS_LAYERS_NODEFields inherited from class overit.geocall.basic.geos.ui.MapContainer
_dbvSelezionati, _initialEnvelope, _lastAjaxQueryThreadId, _mf, _panel, _pool, _r, _refreshNeeded, _reloadPage, _rListener, _selected, _source, _templateBase, _webmapDef, _xsl, f1000Km, fKm, fmFields inherited from class overit.geocall.basic.ui.Container
_rofields, _rules, DALINK_NO, DALINK_YES, DATE_MAX, DATE_MIN, TIME_MAX, TIME_MIN, TYPE_ACTION, TYPE_BOOLEAN, TYPE_DATE, TYPE_DOUBLE, TYPE_DTZ, TYPE_EURO, TYPE_FILE, TYPE_FILES, TYPE_INTEGER, TYPE_LONG, TYPE_LONGARRAY, TYPE_MAP, TYPE_MAXDATE, TYPE_MAXTIME, TYPE_MEASURE, TYPE_MINDATE, TYPE_MINTIME, TYPE_NEWACTION, TYPE_STRING, TYPE_STRINGARRAY, TYPE_SUBSET, TYPE_SUBSETRANGE, TYPE_SUPPORT, TYPE_TIMERANGEFields inherited from class overit.geocall.ui.Control
_blank, _cleaner, _dblink, _enabled, _ro, _title, altEventIconsList, altIcon, ariaDescription, ariaLabel, badge, badgeformat, FILTER_PREFIXES, LABEL_ATTRIBUTE, LABEL_IN_LINE_ATTRIBUTE, STATE_BLANK, STATE_NORMAL, STATE_RO, STATE_ROBLANKFields inherited from class overit.geocall.ui.Component
_basic, _childrenContainers, _currentId, _gridalign, _gridcols, _gridrows, _gridvalign, _iconElement, _id, _keylabel, _label, _layoutName, _name, _parentContainer, _registryName, _shortcut, _tabindex, _transformations, _valuesContainer, aliasField, BR, configHidden, configuredLabel, configuredLabelInLine, defaultHidden, ELEMENT_BR, ELEMENT_NULL, entityContainer, entityName, extendedField, fullHeight, important, labelInLine, layoutLabel, PIXEL_IMG, safeInlineServiceFields inherited from interface overit.geocall.ui.AjaxableComponent
FRAME_ID_PREFIX, NOTRANSITION, TRANSITION_BODY_MORPH, TRANSITION_BODY_RESIZE, TRANSITION_BORDER_RESIZE, TRANSITION_DOWN, TRANSITION_UP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplySelection(boolean isAdd) protected voidvoidchanged(overit.geocall.ux.servlet.processor.Change change) Defines the morphing of the element that occurs when there is an Ajax interactionprotected MicroclusterSelectionMapDataSourceHelperprotected MacroclustersDBViewBuilderoverit.geocall.ux.servlet.processor.ChangeDefines the defaultChangeobject for the elementorg.apache.ecs.ElementgetFrameHtml(overit.geocall.ux.servlet.processor.Change c, EntitySet es) Defines the html part of the element that changes when an Ajax interaction occursprotected Stringorg.apache.ecs.ElementReturns the html code of the Containerprotected MacroclustergetMacrocluster(String macroclusterId) protected Set<?> getMacroclusterMicroclusters(String macroclusterId) protected StringgetMicroclusterMacrocluster(Object microclusterUuid) protected voidprotected voidprotected voidprotected voidprotected booleanisMicroclusterSelected(Macrocluster macrocluster, Object microclusterUuid) protected booleanisMicroclusterVisible(Object microclusterUuid) protected booleanmanageAjaxQuery(HttpServletRequest request, HttpServletResponse response) Methos to add functionalities to the toolbaroverit.geocallapp.wfm.util.map.MapTypemapType()booleanonAddSelected(UIMessage uim) booleanbooleanbooleanvoidEvent launched right after the init of the map: it allows to populate the object made with the information in memorybooleanbooleanbooleanvoidMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat contains the Container.booleanonReduceOpacity(UIMessage uim) booleanbooleanbooleanbooleanonSelectByCap(UIMessage uim) booleanonSelectByIstat(UIMessage uim) voidEvent launched when the selection of the cartographic object is changedbooleanbooleanprotected voidupdateMicroclusterSelection(Macrocluster macrocluster, Object microclusterUuid, boolean isSelected) Methods inherited from class overit.geocallapp.wfm.geos.ui.MapContainer
addBaseLayers, addOperationsCenterLayer, appendEsriBasemapConfiguration, buildGeometryTooltip, buildOperationsCenterMapTooltip, buildTooltipButton, centerOnOperationsCenterPlantLayer, configurationReader, fetchGeoJSONData, geometryRepository, getBaseLayersByMapType, getGeoJSONInfo, getHierarchyFromResource, getHierarchyFromResource, getMainServiceLayer, getOperationsCenterData, getOperationsCenterLayerName, initGeometryLayers, initOperationsCenter, isOperationsCenterEnabled, isServiceLayerValidForOperationsCenter, layerFactory, loadAvailableLayers, loadEsriBasemapConfiguration, loadGeometries, loadLayerDefinition, olLayerFactory, onEnterInOperationsCenter, onFeatureMoved, setDefaultEnvelope, setENABLEOPERATIONSCENTER, setLAYERDEFINITIONS, setMainServiceLayer, toGeoJSON, toTranslate, translateBaseLayerName, validateEventsMethods inherited from class overit.geocall.basic.geos.ui.MapContainer
ajaxQuery, boolParameter, buildInfoString, centerCoordinate, centerCoordinate, centerCoordinate, centerEnvelope, centerLayer, centerLayer, centerNeigbourhood, centerPoint, cleanData, doubleParameter, fetchGeoJSONData, getInitialEnvelope, getLayerDefinitions, getLayerInfo, getMap, getMapFactory, getMapsUrl, getNextScaleLevel, getPanel, getPreviousScaleLevel, getRenderer, getSelectedAttributes, getVariable, getView, giveParameters, initMapExtent, intParameter, isRefreshNeeded, manageGeoJSONFeatureSelection, manageGeoJSONRequest, onDraggedFromMap, onDropOnMap, onInfoRequired, onPaintMap, onPanelDraw, onScaleChanged, onView, parseInt, printSelection, reloadPage, selectEllipse, selectGeoJSONFeatures, selectPoints, selectPolygon, selectPolyLine, selectRectangle, setPanel, setPOOL, setRefreshNeeded, setScale, setSOURCE, setTEMPLATEBASE, setup, setXSL, to_degree, to_m, to_m2, updateDBV, updateSelection, zoomin, zoomoutMethods inherited from class overit.geocall.basic.ui.Container
alert, applyRule, getBASIC, getBLANK, getRO, getROField, onClose, onOpenChildContainer, onRestore, onRule, prepareName, rulesNewValues, setROField, setValues, setValuesMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getCleaner, getConfigurableProperties, getDAValues, getDBLINK, getKEYLABEL, getLABEL, getState, getTITLE, getValues, getWM, isEnabled, isEnabledBasedOnFunction, isFunctionEnabled, isImportant, isRoBasedOnFunction, nameWithNoFilterPrefix, setALTEVENTICON, setALTICON, setARIADESCRIPTION, setARIALABEL, setBADGEFORMAT, setBADGEVALUE, setBLANK, setCLEANER, setConfiguredProperty, setDBLINK, setENABLED, setFUNCTION, setModelProperties, setRO, setTitle, setTITLEMethods inherited from class overit.geocall.ui.Component
adapt, appendAttribute, buildDisplayScript, buildSetupScript, calcKeyLabel, calcLabel, calcShortcut, canBeConfigured, changed, clearConfiguredProperties, componentIterator, componentSize, connect, containerIterator, createAjaxFrame, deprecate, fillSetupScript, generateFlexableFullHeightContainer, generateId, getBoolean, getBoolean, getChildrenComponents, getChildrenContainers, getDefaultLabel, getDefaultLayoutLabel, getEntityContainer, getEntityName, getFullHeight, getGridAlign, getGridCols, getGridRows, getGridVAlign, getHtmlLabel, getHtmlLabel, getIcon, getId, getIdentity, getint, getLayoutLabel, getLayoutName, getNAME, getParentComponent, getParentContainer, getPublishedChildrenList, getRegistryName, getSHORTCUT, getTabIndex, getTeacher, getValuesContainer, getWindow, initChilds, isActivable, isActive, isAliasField, isConfigHidden, isDefaultHidden, isExtendedField, isLabelInLine, onInit, setActivable, setActive, setAliasField, setBASIC, setConfigHidden, setDEFAULTHIDDEN, setEntityName, setExtendedField, setFULLHEIGHT, setGRIDALIGN, setGRIDCOLS, setGRIDROWS, setGRIDVALIGN, setICON, setIdentity, setIMPORTANT, setLabel, setLABEL, setLABELINLINE, setLAYOUTLABEL, setLAYOUTNAME, setNAME, setREGISTRYNAME, setTooltip, setup, setValuesContainer, stringForJs, tabIndexerMethods inherited from class overit.geocall.platform.ui.UINode
addChild, addChildText, getChildren, getNodeId, getParent, getRoot, getSchema, setNodeId, setParent, setSchemaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.ui.Badgeable
badgeFormat, makeBadgedIcon
-
Field Details
-
COLOR_SELECTED
- See Also:
-
COLOR_UNSELECTED
- See Also:
-
dataSource
protected org.geos.map.ShapeFolder dataSource -
stvMacrocluster
-
stvSelectedMicroclusters
-
opacityReduction
protected boolean opacityReduction -
mapDimension
protected int mapDimension -
macroclusters
-
allMicroclusters
-
macroclusterMicroclusters
-
microclusterMacrocluster
-
dbvBuilder
-
dataSourceHelper
-
-
Constructor Details
-
MicroclusterSelectionMap
public MicroclusterSelectionMap()
-
-
Method Details
-
onOpen
Description copied from class:ContainerMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat 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: "¶ms=KEY1,VAL1,KEY2,VAL2" or "¶ms=KEY1=VAL1,KEY2=VAL2"
In that case it is possible to retrieve those params via theWindowManager.getRouteParams()method that returns anHashGetterwith 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:
onOpenin classoverit.geocallapp.wfm.geos.ui.MapContainer- Parameters:
o- Object received from the caller
-
initComponents
protected void initComponents() -
getDBViewBuilder
-
getDataSourceHelper
-
initMicroclusterMappings
protected void initMicroclusterMappings() -
onLoadMap
Description copied from class:overit.geocall.basic.geos.ui.MapContainerEvent launched right after the init of the map: it allows to populate the object made with the information in memory- Overrides:
onLoadMapin classoverit.geocallapp.wfm.geos.ui.MapContainer- Parameters:
o- Not used
-
initDataSource
protected void initDataSource() -
mapType
public overit.geocallapp.wfm.util.map.MapType mapType()- Overrides:
mapTypein classoverit.geocallapp.wfm.geos.ui.MapContainer
-
getLayersToDisable
-
initLayerVisibility
protected void initLayerVisibility() -
manageAjaxQuery
protected boolean manageAjaxQuery(HttpServletRequest request, HttpServletResponse response) throws IOException Description copied from class:overit.geocall.basic.geos.ui.MapContainerMethos to add functionalities to the toolbar- Overrides:
manageAjaxQueryin classoverit.geocallapp.wfm.geos.ui.MapContainer- Parameters:
request- The requestresponse- The response- Returns:
trueif 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.MapContainerEvent launched when the selection of the cartographic object is changed- Overrides:
onSelectionChangedin classoverit.geocall.basic.geos.ui.MapContainer
-
onSelectByCap
-
onSelectByIstat
-
onUnselectMicrocluster
-
onCenterMacrocluster
-
onCenterMicrocluster
-
onSelectMacrocluster
-
onRestoreSelected
-
onAddSelected
-
onRemoveSelected
-
applySelection
protected void applySelection(boolean isAdd) -
onSave
-
onMinima
-
onMedia
-
onGrande
-
centerOnVisibleMicroclusters
protected void centerOnVisibleMicroclusters() -
onMapMenu
-
onReduceOpacity
-
getFrameHtml
public org.apache.ecs.Element getFrameHtml(overit.geocall.ux.servlet.processor.Change c, EntitySet es) Description copied from interface:AjaxableComponentDefines the html part of the element that changes when an Ajax interaction occurs- Specified by:
getFrameHtmlin interfaceAjaxableComponent- Parameters:
c- TheChangeobject that defines the specific morphing type for the elementes- TheEntitySetto which the element belongs- Returns:
- The html part of the element that changes when an Ajax interaction occurs
-
getHtml
Description copied from class:ContainerReturns the html code of the Container- Overrides:
getHtmlin classoverit.geocallapp.wfm.geos.ui.MapContainer- Parameters:
es- TheEntitySetto 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:AjaxableComponentDefines the morphing of the element that occurs when there is an Ajax interaction- Specified by:
changedin interfaceAjaxableComponent- Parameters:
change- TheChangeobject that defines the specific morphing type for the element
-
getDefaultChange
public overit.geocall.ux.servlet.processor.Change getDefaultChange()Description copied from interface:AjaxableComponentDefines the defaultChangeobject for the element- Specified by:
getDefaultChangein interfaceAjaxableComponent- Returns:
- The default
Changeobject that defines the default morphing type of the element
-
getFrameId
-
getMacrocluster
-
getMacroclusterMicroclusters
-
getMicroclusterMacrocluster
-
updateMicroclusterSelection
protected void updateMicroclusterSelection(Macrocluster macrocluster, Object microclusterUuid, boolean isSelected) -
isMicroclusterSelected
-
isMicroclusterVisible
-