oscar.Control.ThemeSwitcher

The Oscar ThemeSwitcher control allows users to switch between themes.

Translation Keys:ThemeSwitcherToolTip - ThemeSwitcherTitle
Inherits from:oscar.Control.DragPanel

Properties

tooltipText

{String}translation key or text to use for the Theme Switcher tool tip.  Default is ThemeSwitcherToolTip.

titleText

{String}translation key or text to use for the Theme Switcher title.  Default is ThemeSwitcherTitle.

iconClass

{String}css class to use for the icon of the widget.

themeManager

<oscar.Control.ThemeManager>The theme manager to use to draw the themes.

configManager

<oscar.Control.OXFConfigManager>The configuration manager to use to load theme configurations.

activeTheme

Keeps track of the active theme.

events

EVENT_TYPES

Constructor

new oscar.Control.ThemeSwitcher() Creates a new instance of

the oscar.Control.ThemeSwitcher control.

Functions

setConfigManager Sets the configuration manager to use.

Parameters:configManager oscar.Control.OXFConfigManager

getConfigManager Returns the configuration manager.

Returns:<oscar.Control.OXFConfigManager

setThemeManager Sets the themeManager to use.

Parameters:themeManager oscar.Control.ThemeManager

getThemeManager Returns the theme manager object.

This control is a base control for creating draggable planels.
The Oscar OXFConfigManager control offers a load method that background loads a remote document and builds ox, the Oscar eXchange container object, in accordance with the Oscar eXchange Format oscar.Format.OXF.v2.
The Oscar ThemeManager control handles the drawing of themes onto a map object.