Lines Matching defs:Widget

2  * Provides the base Widget class, with HTML Parser support
9 * Provides the base Widget class
65 // Widget nodeid-to-instance map.
81 * @class Widget
85 function Widget(config) {
100 Widget.superclass.constructor.call(widget, config);
124 Widget.NAME = "widget";
135 UI = Widget.UI_SRC = "ui";
139 * configuration for the Widget.
145 Widget.ATTRS = ATTRS;
162 * Flag indicating whether or not this Widget
177 * @description The outermost DOM node for the Widget, used for sizing and positioning
178 * of a Widget as well as a containing element for any decorator elements used
191 * @description A DOM node that is a direct descendant of a Widget's bounding box that
220 * @description Boolean indicating if the Widget, or one of its descendants,
233 * @description Boolean indicating if the Widget should be disabled. The disabled implementation
244 * @description Boolean indicating weather or not the Widget is visible.
254 * @description String with units, or number, representing the height of the Widget. If a number is provided,
265 * @description String with units, or number, representing the width of the Widget. If a number is provided,
276 * @description Collection of strings used to label elements of the Widget's UI.
299 * The css prefix which the static Widget.getClassName method should use when constructing class names
303 * @default Widget.NAME.toLowerCase()
307 Widget.CSS_PREFIX = _getClassName(Widget.NAME.toLowerCase());
310 * Generate a standard prefixed classname for the Widget, prefixed by the default prefix defined
312 * <code>Widget.NAME.toLowerCase()</code> (e.g. "yui-widget-xxxxx-yyyyy", based on default values for
316 * based on the instances NAME, as opposed to Widget.NAME. This method should be used when you
322 Widget.getClassName = function() {
324 return _getClassName.apply(ClassNameManager, [Widget.CSS_PREFIX].concat(Y.Array(arguments), true));
327 _getWidgetClassName = Widget.getClassName;
337 * @param node {Node | String} The node for which to return a Widget instance. If a selector
339 * @return {Widget} Widget instance, or null if not found.
341 Widget.getByNode = function(node) {
358 Y.extend(Widget, Y.Base, {
383 * Initializer lifecycle implementation for the Widget class. Registers the
384 * widget instance, and runs through the Widget's HTML_PARSER definition.
431 * Destructor lifecycle implementation for the Widget class. Purges events attached
433 * the Widget from the list of registered widgets.
469 * @param destroyAllNodes {Boolean} If true, all nodes contained within the Widget are removed and destroyed. Defaults to false due to potentially high run-time cost.
470 * @return {Widget} A reference to this object
475 return Widget.superclass.destroy.apply(this);
532 * Widget is to be rendered. This can be a Node instance or a CSS selector string.
536 * are not currently in the document. If it's not provided, the Widget will be rendered
613 * Configures/Sets up listeners to bind Widget State to UI/DOM
635 * Refreshes the rendered UI, based on Widget State
648 * @description Hides the Widget by setting the "visible" attribute to "false".
657 * @description Shows the Widget by setting the "visible" attribute to "true".
666 * @description Causes the Widget to receive the focus by setting the "focused"
676 * @description Causes the Widget to lose focus by setting the "focused" attribute
686 * @description Set the Widget's "disabled" attribute to "false".
695 * @description Set the Widget's "disabled" attribute to "true".
714 * as the document into which the Widget is rendered if a parentNode is node is not provided. If both the boundingBox and
784 * For the Widget class, this will be the srcNode if provided, otherwise null (resulting in
815 * Initializes the UI state for the Widget's bounding/content boxes.
839 // Start from Widget Sub Class
897 focusHandle = Widget._hDocFocus;
901 focusHandle = Widget._hDocFocus = oDocument.on("focus", this._onDocFocus, this);
923 var focusHandle = Widget._hDocFocus,
931 Widget._hDocFocus = null;
1058 * DOM focus event handler, used to sync the state of the Widget with the DOM
1065 var widget = Widget.getByNode(evt.target),
1066 activeWidget = Widget._active;
1072 Widget._active = null;
1079 Widget._active = widget;
1112 * Property defining the markup template for content box. If your Widget doesn't
1238 Y.Widget = Widget;