new Tool()
modules/core/modelList/tool/model.js, line 52
Abstract Class used for generating Tool models
Properties:
Name | Type | Default | Description |
---|---|---|---|
isVisibleInMenu |
Boolean | true | Flag of Tool is visible in menu |
is |
Boolean | isRoot=false Flag if Tool button is shown on first level in menu | |
parentId |
String | "" | Id of Parent Object |
glyphicon |
String | "" | default glyphicon. Icon gets shown before tool name |
name |
String | "" | default name |
isActive |
Boolean | false | Flag if tool is active |
deactivateGFI |
Boolean | false | Flag if tool should deactivate gfi |
renderToWindow |
Boolean | true | Flag if tool should be rendered in window |
resizableWindow |
Boolean | false | Flag if tool-window should be resizable |
supportedIn3d |
Array.<String> | ["coord", | "shadow", "gfi", "wfsFeatureFilter", "searchByCoord", "legend", "contact", "saveSelection", "parcelSearch"] Array of tool ids that are supported in 3d |
supportedOnlyIn3d |
Array.<String> | ["shadow" | Array of tool ids that are only supported in 3d |
supportedInOblique |
Array.<String> | ["contact" | Array of tool ids that are supported in oblique mode |
supportedInOblique |
Array.<String> | [ | Array of tool ids that are only supported in oblique mode |
toolsToRenderInSidebar |
Array.<String> | ["filter" | Array of tool ids that are rendered in sidebar |
Fires:
- Core.ModelList.Tool#event:changeIsActive
- Window#event:RadioTriggerWindowShowTool
- Window#event:RadioTriggerWindowSetIsVisible
- Core#event:RadioTriggerAutostartInitializedModul
Listens to Events:
- Core.ModelList.Tool#event:changeIsActive
- Core.ModelList.Tool#event:RadioRequestToolGetSupportedOnlyIn3d
- Core.ModelList.Tool#event:RadioRequestToolGetSupportedIn3d
- Core.ModelList.Tool#event:RadioRequestToolGetSupportedOnlyInOblique
- Core.ModelList.Tool#event:RadioRequestToolGetCollection
- i18next#event:RadioTriggerLanguageChanged
Extends
Methods
-
inherited setGlyphicon(value){void}
modules/core/modelList/item.js, line 69 -
Setter for glyphicon
Name Type Description value
String Glyphicon -
inherited setId(value){void}
modules/core/modelList/item.js, line 34 -
Setter for id
Name Type Description value
String Id -
setIsActive(value){void}
modules/core/modelList/tool/model.js, line 129 -
Activates or deactivates tool
Name Type Description value
Boolean Flag if tool is active -
inherited setIsInThemen(value){void}
modules/core/modelList/item.js, line 78 -
Setter for isInThemen
Name Type Description value
Boolean Flag if item is in themen -
inherited setIsVisibleInMenu(value){void}
modules/core/modelList/item.js, line 105 -
Setter for setIsVisibleInMenu
Name Type Description value
Boolean Flag if item is visible in menu -
inherited setIsVisibleInTree(value){void}
modules/core/modelList/item.js, line 96 -
Setter for isVisibleInTree
Name Type Description value
Boolean Flag if item is visible in layertree -
inherited setLevel(value){void}
modules/core/modelList/item.js, line 87 -
Setter for level
Name Type Description value
String Level -
inherited setName(value){void}
modules/core/modelList/item.js, line 52 -
Setter for name
Name Type Description value
String Name -
inherited setParentId(value){void}
modules/core/modelList/item.js, line 43 -
Setter for parentId
Name Type Description value
String ParentId -
inherited setType(value){void}
modules/core/modelList/item.js, line 60 -
Setter for type
Name Type Description value
String Type -
superChangeLang(){Void}
modules/core/modelList/tool/model.js, line 113 -
change language - sets or translates the name of this tool, if property i18nextTranslate is no function. If name is defined in config.json, the name is not translated else property nameTranslationKey is used.