Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/view
ThemeManager
Class ThemeManager<V>
Type parameters
V
:
View
=
View
Hierarchy
ViewManager
<
V
>
ThemeManager
Index
Constructors
constructor
Properties
mood
root
Views
theme
view
Manager
Observers
Methods
add
View
Manager
Observer
apply
Theme
did
Add
View
Manager
Observer
did
Apply
Theme
did
Attach
did
Detach
did
Insert
Root
View
did
Observe
did
Remove
Root
View
did
Remove
View
Manager
Observer
init
Mood
init
Theme
insert
Root
View
is
Attached
on
Add
View
Manager
Observer
on
Apply
Theme
on
Attach
on
Detach
on
Insert
Root
View
on
Remove
Root
View
on
Remove
View
Manager
Observer
remove
Root
View
remove
View
Manager
Observer
set
Mood
set
Theme
will
Add
View
Manager
Observer
will
Apply
Theme
will
Attach
will
Detach
will
Insert
Root
View
will
Observe
will
Remove
Root
View
will
Remove
View
Manager
Observer
global
Constructors
constructor
new
Theme
Manager<V>
(
)
:
ThemeManager
<
V
>
Type parameters
V
:
View
<
V
>
=
View
Returns
ThemeManager
<
V
>
Properties
Readonly
mood
mood
:
MoodVector
<
Feel
>
Readonly
root
Views
root
Views
:
readonly
V
[]
Readonly
theme
theme
:
ThemeMatrix
Readonly
view
Manager
Observers
view
Manager
Observers
:
readonly
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
[]
Methods
add
View
Manager
Observer
add
View
Manager
Observer
(
viewManagerObserver
:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
)
:
void
Parameters
viewManagerObserver:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
Returns
void
Protected
apply
Theme
apply
Theme
(
theme
:
ThemeMatrix
, mood
:
MoodVector
<
Feel
>
, timing
?:
boolean
|
AnyTiming
)
:
void
Parameters
theme:
ThemeMatrix
mood:
MoodVector
<
Feel
>
Optional
timing:
boolean
|
AnyTiming
Returns
void
Protected
did
Add
View
Manager
Observer
did
Add
View
Manager
Observer
(
viewManagerObserver
:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
)
:
void
Parameters
viewManagerObserver:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
Returns
void
Protected
did
Apply
Theme
did
Apply
Theme
(
theme
:
ThemeMatrix
, mood
:
MoodVector
<
Feel
>
, timing
:
boolean
|
Timing
)
:
void
Parameters
theme:
ThemeMatrix
mood:
MoodVector
<
Feel
>
timing:
boolean
|
Timing
Returns
void
Protected
did
Attach
did
Attach
(
)
:
void
Returns
void
Protected
did
Detach
did
Detach
(
)
:
void
Returns
void
Protected
did
Insert
Root
View
did
Insert
Root
View
(
rootView
:
V
)
:
void
Parameters
rootView:
V
Returns
void
Protected
did
Observe
did
Observe<T>
(
callback
:
(
viewManagerObserver
:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
)
=>
void
|
T
)
:
undefined
|
T
Type parameters
T
Parameters
callback:
(
viewManagerObserver
:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
)
=>
void
|
T
(
viewManagerObserver
:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
)
:
void
|
T
Parameters
viewManagerObserver:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
Returns
void
|
T
Returns
undefined
|
T
Protected
did
Remove
Root
View
did
Remove
Root
View
(
rootView
:
V
)
:
void
Parameters
rootView:
V
Returns
void
Protected
did
Remove
View
Manager
Observer
did
Remove
View
Manager
Observer
(
viewManagerObserver
:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
)
:
void
Parameters
viewManagerObserver:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
Returns
void
Protected
init
Mood
init
Mood
(
)
:
MoodVector
<
Feel
>
Returns
MoodVector
<
Feel
>
Protected
init
Theme
init
Theme
(
)
:
ThemeMatrix
Returns
ThemeMatrix
insert
Root
View
insert
Root
View
(
rootView
:
V
)
:
void
Parameters
rootView:
V
Returns
void
is
Attached
is
Attached
(
)
:
boolean
Returns
boolean
Protected
on
Add
View
Manager
Observer
on
Add
View
Manager
Observer
(
viewManagerObserver
:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
)
:
void
Parameters
viewManagerObserver:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
Returns
void
Protected
on
Apply
Theme
on
Apply
Theme
(
theme
:
ThemeMatrix
, mood
:
MoodVector
<
Feel
>
, timing
:
boolean
|
Timing
)
:
void
Parameters
theme:
ThemeMatrix
mood:
MoodVector
<
Feel
>
timing:
boolean
|
Timing
Returns
void
Protected
on
Attach
on
Attach
(
)
:
void
Returns
void
Protected
on
Detach
on
Detach
(
)
:
void
Returns
void
Protected
on
Insert
Root
View
on
Insert
Root
View
(
rootView
:
V
)
:
void
Parameters
rootView:
V
Returns
void
Protected
on
Remove
Root
View
on
Remove
Root
View
(
rootView
:
V
)
:
void
Parameters
rootView:
V
Returns
void
Protected
on
Remove
View
Manager
Observer
on
Remove
View
Manager
Observer
(
viewManagerObserver
:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
)
:
void
Parameters
viewManagerObserver:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
Returns
void
remove
Root
View
remove
Root
View
(
rootView
:
V
)
:
void
Parameters
rootView:
V
Returns
void
remove
View
Manager
Observer
remove
View
Manager
Observer
(
viewManagerObserver
:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
)
:
void
Parameters
viewManagerObserver:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
Returns
void
set
Mood
set
Mood
(
mood
:
MoodVector
<
Feel
>
)
:
void
Parameters
mood:
MoodVector
<
Feel
>
Returns
void
set
Theme
set
Theme
(
theme
:
ThemeMatrix
)
:
void
Parameters
theme:
ThemeMatrix
Returns
void
Protected
will
Add
View
Manager
Observer
will
Add
View
Manager
Observer
(
viewManagerObserver
:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
)
:
void
Parameters
viewManagerObserver:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
Returns
void
Protected
will
Apply
Theme
will
Apply
Theme
(
theme
:
ThemeMatrix
, mood
:
MoodVector
<
Feel
>
, timing
:
boolean
|
Timing
)
:
void
Parameters
theme:
ThemeMatrix
mood:
MoodVector
<
Feel
>
timing:
boolean
|
Timing
Returns
void
Protected
will
Attach
will
Attach
(
)
:
void
Returns
void
Protected
will
Detach
will
Detach
(
)
:
void
Returns
void
Protected
will
Insert
Root
View
will
Insert
Root
View
(
rootView
:
V
)
:
void
Parameters
rootView:
V
Returns
void
Protected
will
Observe
will
Observe<T>
(
callback
:
(
viewManagerObserver
:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
)
=>
void
|
T
)
:
undefined
|
T
Type parameters
T
Parameters
callback:
(
viewManagerObserver
:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
)
=>
void
|
T
(
viewManagerObserver
:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
)
:
void
|
T
Parameters
viewManagerObserver:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
Returns
void
|
T
Returns
undefined
|
T
Protected
will
Remove
Root
View
will
Remove
Root
View
(
rootView
:
V
)
:
void
Parameters
rootView:
V
Returns
void
Protected
will
Remove
View
Manager
Observer
will
Remove
View
Manager
Observer
(
viewManagerObserver
:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
)
:
void
Parameters
viewManagerObserver:
ThemeManagerObserver
<
View
,
ThemeManager
<
View
>
>
Returns
void
Static
global
global<V>
(
)
:
ThemeManager
<
V
>
Type parameters
V
:
View
<
V
>
Returns
ThemeManager
<
V
>
Modules
@swim/system
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/component
@swim/ux
@swim/vis
@swim/maps
Theme
Manager
constructor
mood
root
Views
theme
view
Manager
Observers
add
View
Manager
Observer
apply
Theme
did
Add
View
Manager
Observer
did
Apply
Theme
did
Attach
did
Detach
did
Insert
Root
View
did
Observe
did
Remove
Root
View
did
Remove
View
Manager
Observer
init
Mood
init
Theme
insert
Root
View
is
Attached
on
Add
View
Manager
Observer
on
Apply
Theme
on
Attach
on
Detach
on
Insert
Root
View
on
Remove
Root
View
on
Remove
View
Manager
Observer
remove
Root
View
remove
View
Manager
Observer
set
Mood
set
Theme
will
Add
View
Manager
Observer
will
Apply
Theme
will
Attach
will
Detach
will
Insert
Root
View
will
Observe
will
Remove
Root
View
will
Remove
View
Manager
Observer
global
Generated using
TypeDoc