new WindowView()
modules/window/view.js, line 45
Fires:
- Core.ModelList#event:RadioTriggerModelListToggleDefaultTool
- Core#event:RadioRequestUtilGetUiStyle
- Core.ModelList#event:RadioRequestModelListGetModelByAttributes
- Core.ModelList#event:RadioTriggerModelListToggleDefaultTool
Listens to Events:
Extends
Members
-
staticWindowView.WindowViewTemplateMax
-
Template used to create the Tool Window maximised
-
staticWindowView.WindowViewTemplateTable
-
Template used to create Tool Window for the touch table
Methods
-
getNewPosition(touch, width, height, mapWidth, mapHeight){Object}
modules/window/view.js, line 315 -
Function to calculate the new left and top positions.
Name Type Description touch
Object Object containing the touch attributes. width
Number Window width. height
Number Window height. mapWidth
Number Width of the map. mapHeight
Number Height of the map. Returns:
Object containing the new position.
-
hide(event){void}
modules/window/view.js, line 237 -
Hides the Window.
Name Type Description event
event Event Fires:
-
isSmallWindow(){Boolean}
modules/window/view.js, line 491 -
Check if the current window has a small width, i.e. most likely a mobile device with less than 500px, which is the maximal width of a tool window.
Returns:
if window has a small width
-
maximize(){void}
modules/window/view.js, line 215 -
Maximizes the Window.
-
minimize(){void}
modules/window/view.js, line 196 -
Minimizes the Window.
-
render(){Backbone.View}
modules/window/view.js, line 127 -
Renders the Window.
Fires:
Returns:
context.
-
resetSize(){void}
modules/window/view.js, line 480 -
Resets the size to the css defined values when the window is reopened.
-
resizeWindowEnd(){void}
modules/window/view.js, line 471 -
Triggers onpointerup on Window Object. Sets dragging property false, ends resizing.
-
resizeWindowMove(evt){void}
modules/window/view.js, line 452 -
Triggers onpointermove if dragging prop is truthy. Resizes the Window if cursor is not outside the #map.
Name Type Description evt
event The pointerEvent on window Object. -
resizeWindowStart(){void}
modules/window/view.js, line 437 -
Triggered onpointerdown .glyphicon-triangle-right. Sets dragging prop true, all pointer movements trigger resizeWindowMove until released.
-
touchMoveEnd(){void}
modules/window/view.js, line 300 -
Triggered on TouchEnd.
-
touchMoveWindow(evt){void}
modules/window/view.js, line 274 -
Triggered on TouchMove.
Name Type Description evt
event Event of moved window. -
touchStartWindow(evt){void}
modules/window/view.js, line 257 -
Triggered on TouchStart.
Name Type Description evt
event Event, window being touched.
Events
-
changeIsVisible
devtools/jsdoc/events.js, line 1576 -
Triggered when the visibility of the Window changes
Listeners of This Event:
-
changeWinType
devtools/jsdoc/events.js, line 1581 -
Triggered when the WinType of the Window changes
Listeners of This Event:
-
RadioTriggerWindowHide
devtools/jsdoc/events.js, line 1570 -
is triggered by tool
Listeners of This Event:
Example
Radio.trigger("WindowView", "hide");