GUI Class
A class for handling most of the GUI on the page.
Item Index
Methods
Events
- GUI.DATAGRID_EXPAND
- gui.FULLSCREEN_CHANGE
- gui.HELP_PANEL_CHANGE
- gui.LAYOUT_CHANGE
- gui.PANEL_CHANGE
- gui.PANEL_TOGGLE [subscribed]
- gui.SUBPANEL_CAPTURE [subscribed]
- gui.SUBPANEL_CHANGE
- gui.SUBPANEL_CLOSE [subscribed]
- gui.SUBPANEL_DOCK [subscribed]
- gui.SUBPANEL_OPEN [subscribed]
- gui.TAB_DESELECTED
- gui.TAB_SELECTED
- gui.TOGGLE_FULLSCREEN [subscribed]
- gui/add-layer-panel-change
- gui/toolbar-section-close
- gui/toolbar-section-open
Methods
_toggleFullScreenMode
-
fullscreen
Toggles full screen mode
Parameters:
-
fullscreen
Booleantrue - full screen on; false - full screen off; undefined - toggle;
adjustHelpDimensions
()
private
Adjusts dimensions of the help panel relative to the mapContent div
.
adjutSubPanelDimensions
-
subPanel
Adjusts the dimensions and position of the SubPanel when layout of the page is changing.
Parameters:
-
subPanel
SubPanelSubPanel whose dimensions and position need to be adjusted
captureSubPanel
-
attr
Finds a SubPanel with origin
equal to the supplied consumeOrigin
and
- changes its
origin
to the suppliedorigin
- moves the SubPanel in the DOM hierarchy and attaches it to the specified target
Parameters:
-
attr
SubPanelSettingsSettings for the SubPanel; only
origin
,consumeOrigin
andtarget
are required here
dockSubPanel
-
attr
Moves the SubPanel with the specified origin
in the DOM hierarchy to the new specified target
; if target
is not specified, the SubPanel is attached to the SidePanel.
Parameters:
-
attr
SubPanelSettingsSettings for the SubPanel; only
target
andorigin
are required here
fullScreenCallback
-
event
-
func
Allows to set callbacks to the full screen transition.
Returns:
This
hideSubPanel
-
attr
-
speed
-
d
Closes the SubPanel whose origin
is specified in the attr
parameter.
Parameters:
-
attr
SubPanelSettingsonly
origin
attribute is required here -
speed
NumberDuration of the closing animation
-
d
DeferredThe deferred object to be resolved upon successful closing of the panel
isFullScreen
()
Boolean
Returns a boolean indication whether the full screen mode is on.
Returns:
true / false
load
-
id
-
req
-
load
Call load to initialize the GUI module.
newPopup
-
popupAttr
Create a new PopupBase object from the settings provided.
Parameters:
-
popupAttr
PopupBaseSettingsPopup settings
Returns:
popup
newSubPanel
-
attr
Create a new SubPanel with the settings provided.
Parameters:
-
attr
SubPanelSettingsSubPanel settings
Returns:
A newly created SubPanel
showSubPanel
-
attr
Creates and opens a new SubPanel with given settings.
If the SubPanel with the requested origin
is already present, updates its content.
Parameters:
-
attr
SubPanelSettingsSettings for the SubPanel instance
toggleFullScreenMode
-
fullscreen
Toggles the FullScreen mode of the application
Parameters:
-
fullscreen
Booleantrue - expand; false - collapse; undefined - toggle;
Returns:
This
Events
GUI.DATAGRID_EXPAND
Fires whenever the extended grid button is clicked
gui.FULLSCREEN_CHANGE
Published each time fullscreen is toggled
gui.HELP_PANEL_CHANGE
Published each time the help panel opens or closes.
gui.LAYOUT_CHANGE
Published each time the layout changes.
gui.PANEL_CHANGE
Published each time the panel opens/closes
gui.PANEL_TOGGLE [subscribed]
Toggles the main panel (i.e. collapses it if was expanded, and expands it if it was collapsed)
gui.SUBPANEL_CAPTURE [subscribed]
Attaches subPanel node to the module that calls it in the DOM hierarchy
Event Payload:
-
consumeOrigin
Object
gui.SUBPANEL_CHANGE
Published each time the subpanel opens/closes
gui.SUBPANEL_CLOSE [subscribed]
Closes the sub panel
Event Payload:
-
origin
Stringthe name of the module that requested to close the subPanel (e.g. "filterManager")
gui.SUBPANEL_DOCK [subscribed]
Moves the panel up DOM hierarchy next to the sidePanel, or to other target
Event Payload:
-
origin
Stringthe name of the module that requested to dock the subPanel (e.g. "filterManager")
-
target
JNodewhere to move the subPanel; if not supplied; sidePanel is used
gui.SUBPANEL_OPEN [subscribed]
Opens the subpanel
Event Payload:
-
attr
SubPanelSettingsSettings for the SubPanel
gui.TAB_DESELECTED
Fires whenever a tab has been deselected in the main panel
gui.TAB_SELECTED
Fires whenever a tab has been selected in the main panel
gui.TOGGLE_FULLSCREEN [subscribed]
Toggles the fullscreen
gui/add-layer-panel-change
Published each time the Add Layer panel opens or closes.
gui/toolbar-section-close
Published each time a toolbar section / widget is closed.