new WindowView()
modules/window/view.js, line 44
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 305 -
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 230 -
Hides the Window.
Name Type Description event
event Event Fires:
-
isSmallWindow(){Boolean}
modules/window/view.js, line 482 -
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 211 -
Maximizes the Window.
-
minimize(){void}
modules/window/view.js, line 195 -
Minimizes the Window.
-
render(){Backbone.View}
modules/window/view.js, line 126 -
Renders the Window.
Fires:
Returns:
context.
-
resetSize(){void}
modules/window/view.js, line 470 -
Resets the size to the css defined values when the window is reopened.
-
resizeWindowEnd(){void}
modules/window/view.js, line 461 -
Triggers onpointerup on Window Object. Sets dragging property false, ends resizing.
-
resizeWindowMove(evt){void}
modules/window/view.js, line 442 -
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 427 -
Triggered onpointerdown .glyphicon-triangle-right. Sets dragging prop true, all pointer movements trigger resizeWindowMove until released.
-
touchMoveEnd(){void}
modules/window/view.js, line 290 -
Triggered on TouchEnd.
-
touchMoveWindow(evt){void}
modules/window/view.js, line 264 -
Triggered on TouchMove.
Name Type Description evt
event Event of moved window. -
touchStartWindow(evt){void}
modules/window/view.js, line 247 -
Triggered on TouchStart.
Name Type Description evt
event Event, window being touched.
Events
-
changeIsVisible
devtools/jsdoc/events.js, line 1582 -
Triggered when the visibility of the Window changes
Listeners of This Event:
-
changeWinType
devtools/jsdoc/events.js, line 1587 -
Triggered when the WinType of the Window changes
Listeners of This Event:
-
RadioTriggerWindowHide
devtools/jsdoc/events.js, line 1576 -
is triggered by tool
Listeners of This Event:
Example
Radio.trigger("WindowView", "hide");