Widget extension, which can be used to add stackable (z-index) support to the base Widget class along with a shimming solution, through the Base.build method.
_addShimResizeHandlersSets up event listeners to resize the shim when the size of the Widget changes.
NOTE: This method is only used for IE6 currently, since IE6 doesn't support a way to resize the shim purely through CSS, when the Widget does not have an explicit width/height set.
_afterShimChangee
Default attribute change listener for the shim attribute, responsible for updating the UI, in response to attribute changes.
e
EventFacade
The event facade for the attribute change
_afterZIndexChangee
Default attribute change listener for the zIndex attribute, responsible for updating the UI, in response to attribute changes.
e
EventFacade
The event facade for the attribute change
_bindUIStackBinds event listeners responsible for updating the UI state in response to Widget stack related state changes.
This method is invoked after bindUI is invoked for the Widget class using YUI's aop infrastructure.
_destroyShimRemoves the shim from the DOM, and detaches any related event listeners.
_detachStackHandlesString
Detaches any handles stored for the provided key
String
Object
handleKey The key defining the group of handles which should be detached
_getShimTemplateCreates a cloned shim node, using the SHIM_TEMPLATE html template, for use on a new instance.
node A new shim Node instance.
_parseZIndexsrcNode
Parses a zIndex attribute value from this widget's srcNode.
srcNode
Node
The node to parse a zIndex value from.
The parsed zIndex value.
_renderShimCreates the shim element and adds it to the DOM
_renderShimDeferredSets up change handlers for the visible attribute, to defer shim creation/rendering until the Widget is made visible.
_renderUIStackCreates/Initializes the DOM to support stackability.
This method in invoked after renderUI is invoked for the Widget class using YUI's aop infrastructure.
_setZIndexzIndex
Default setter for zIndex attribute changes. Normalizes zIndex values to numbers, converting non-numerical values to 0.
Normalized zIndex
_syncUIStackSynchronizes the UI to match the Widgets stack state. This method in invoked after syncUI is invoked for the Widget class using YUI's aop infrastructure.
_uiSetShimenable
Updates the UI to enable/disable the shim. If the widget is not currently visible, creation of the shim is deferred until it is made visible, for performance reasons.
enable
Boolean
If true, creates/renders the shim, if false, removes it.
_uiSetZIndexzIndex
Updates the UI to reflect the zIndex value passed in.
zIndex
Number
The zindex to be reflected in the UI
sizeShimFor IE6, synchronizes the size and position of iframe shim to that of Widget bounding box which it is protecting. For all other browsers, this method does not do anything.
ATTRSStatic property used to define the default attribute configuration introduced by WidgetStack.
SHIM_CLASS_NAMEDefault class used to mark the shim element
Default: "yui3-widget-shim"
STACKED_CLASS_NAMEDefault class used to mark the boundingBox of a stacked widget.
Default: "yui3-widget-stacked"
shimBoolean flag to indicate whether or not a shim should be added to the Widgets boundingBox, to protect it from select box bleedthrough.
Default: false, for all browsers other than IE6, for which a shim is enabled by default.
shimChange
Fires when the value for the configuration attribute shim is
changed. You can listen for the event using the on method if you
wish to be notified before the attribute's value has changed, or
using the after method if you wish to be notified after the
attribute's value has changed.
e
EventFacade
zIndexThe z-index to apply to the Widgets boundingBox. Non-numerical values for zIndex will be converted to 0
Default: 0
zIndexChange
Fires when the value for the configuration attribute zIndex is
changed. You can listen for the event using the on method if you
wish to be notified before the attribute's value has changed, or
using the after method if you wish to be notified after the
attribute's value has changed.
e
EventFacade