Array |
overlays
The array of Overlays that are currently registered
|
string |
CSS_FOCUSED
The CSS class representing a focused Overlay
|
Class YAHOO.widget.OverlayManager
Object | +--YAHOO.widget.OverlayManager
class
YAHOO.widget.OverlayManager
Field Summary [top]
Constructor Summary [top]
YAHOO.widget.OverlayManager
Copyright (c) 2006, Yahoo!
Method Summary [top]
void |
blurAll
()
Removes focus from all registered Overlays in the manager
|
Overlay |
find
(<Overlay> <string> overlay)
Attempts to locate an Overlay by instance or ID.
|
void |
focus
(overlay)
Focuses the specified Overlay
|
Overlay |
getActive
()
Returns the currently focused Overlay
|
void |
hideAll
()
Hides all Overlays in the manager.
|
void |
init
(<object> userConfig)
Initializes the OverlayManager
|
void |
initDefaultConfig
()
Initializes the default configuration of the OverlayManager
|
boolean |
register
(<Overlay> overlay)
Registers an Overlay or an array of Overlays with the manager.
|
void |
remove
(overlay)
Removes the specified Overlay from the manager
|
void |
showAll
()
Shows all Overlays in the manager.
|
string |
toString
()
Returns a string representation of the object.
|
Field Detail [top]
overlays
Array
overlays
The array of Overlays that are currently registered
CSS_FOCUSED
string
CSS_FOCUSED
The CSS class representing a focused Overlay
Constructor Detail [top]
YAHOO.widget.OverlayManager
YAHOO.widget.OverlayManager
()
Copyright (c) 2006, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
- Parameters:
-
overlays
- Optional. A collection of Overlays to register with the manager. -
userConfig
- The object literal representing the user configuration of the OverlayManager
Method Detail [top]
blurAll
void
blurAll
()
Removes focus from all registered Overlays in the manager
HASH(0x1d1dc88)
find
Overlay
find
(<Overlay> <string> overlay)
Attempts to locate an Overlay by instance or ID.
- Parameters:
-
overlay
- An Overlay to locate within the manager -
overlay
- An Overlay id to locate within the manager
- Returns:
- The requested Overlay, if found, or null if it cannot be located.
focus
void
focus
(overlay)
Focuses the specified Overlay
- Parameters:
-
The
- Overlay to focus -
The
- id of the Overlay to focus
getActive
Overlay
getActive
()
Returns the currently focused Overlay
- Returns:
- The currently focused Overlay
hideAll
void
hideAll
()
Hides all Overlays in the manager.
HASH(0x1dad0fc)
init
void
init
(<object> userConfig)
Initializes the OverlayManager
- Parameters:
-
userConfig
- The object literal representing the user configuration of the OverlayManager -
overlays
- Optional. A collection of Overlays to register with the manager.
initDefaultConfig
void
initDefaultConfig
()
Initializes the default configuration of the OverlayManager
HASH(0x1dad444)
register
boolean
register
(<Overlay> overlay)
Registers an Overlay or an array of Overlays with the manager. Upon registration, the Overlay receives functions for focus and blur, along with CustomEvents for each.
- Parameters:
-
overlay
- An Overlay to register with the manager. -
Overlay
- []} overlay An array of Overlays to register with the manager.
- Returns:
- True if any Overlays are registered.
remove
void
remove
(overlay)
Removes the specified Overlay from the manager
- Parameters:
-
The
- Overlay to remove -
The
- id of the Overlay to remove
showAll
void
showAll
()
Shows all Overlays in the manager.
HASH(0x1dad93c)
toString
string
toString
()
Returns a string representation of the object.
HASH(0x1d04fb0)