X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/Picker.html diff --git a/docs/source/Picker.html b/docs/source/Picker.html index f8c8c477..2adde8e2 100644 --- a/docs/source/Picker.html +++ b/docs/source/Picker.html @@ -1,5 +1,22 @@ -
+ +/** - * @class Ext.form.field.Picker + + + + +\ No newline at end of file +The source code + + + + + + +/** + * @class Ext.form.field.Picker * @extends Ext.form.field.Trigger * <p>An abstract class for fields that have a single trigger which opens a "picker" popup below * the field, e.g. a combobox menu list or a date picker. It provides a base implementation for @@ -10,10 +27,6 @@ * a specific picker field implementation. Subclasses must implement the {@link #createPicker} method * to create a picker component appropriate for the field.</p> * - * @xtype pickerfield - * @constructor - * Create a new picker field - * @param {Object} config */ Ext.define('Ext.form.field.Picker', { extend: 'Ext.form.field.Trigger', @@ -21,40 +34,40 @@ Ext.define('Ext.form.field.Picker', { alternateClassName: 'Ext.form.Picker', requires: ['Ext.util.KeyNav'], - /** + /** * @cfg {Boolean} matchFieldWidth * Whether the picker dropdown's width should be explicitly set to match the width of the field. * Defaults to <tt>true</tt>. */ matchFieldWidth: true, - /** + /** * @cfg {String} pickerAlign * The {@link Ext.core.Element#alignTo alignment position} with which to align the picker. Defaults * to <tt>"tl-bl?"</tt> */ pickerAlign: 'tl-bl?', - /** + /** * @cfg {Array} pickerOffset * An offset [x,y] to use in addition to the {@link #pickerAlign} when positioning the picker. * Defaults to undefined. */ - /** + /** * @cfg {String} openCls * A class to be added to the field's {@link #bodyEl} element when the picker is opened. Defaults * to 'x-pickerfield-open'. */ openCls: Ext.baseCSSPrefix + 'pickerfield-open', - /** + /** * @property isExpanded * @type Boolean * True if the picker is currently expanded, false if not. */ - /** + /** * @cfg {Boolean} editable <tt>false</tt> to prevent the user from typing text directly into the field; * the field can only have its value set via selecting a value from the picker. In this state, the picker * can also be opened by clicking directly on the input field itself. @@ -68,19 +81,19 @@ Ext.define('Ext.form.field.Picker', { // Custom events this.addEvents( - /** + /** * @event expand * Fires when the field's picker is expanded. * @param {Ext.form.field.Picker} field This field instance */ 'expand', - /** + /** * @event collapse * Fires when the field's picker is collapsed. * @param {Ext.form.field.Picker} field This field instance */ 'collapse', - /** + /** * @event select * Fires when a value is selected via the picker. * @param {Ext.form.field.Picker} field This field instance @@ -122,7 +135,7 @@ Ext.define('Ext.form.field.Picker', { }, - /** + /** * Expand this field's picker dropdown. */ expand: function() { @@ -146,7 +159,7 @@ Ext.define('Ext.form.field.Picker', { mousedown: collapseIf, scope: me }); - + Ext.EventManager.onWindowResize(me.alignPicker, me); me.fireEvent('expand', me); me.onExpand(); } @@ -154,7 +167,7 @@ Ext.define('Ext.form.field.Picker', { onExpand: Ext.emptyFn, - /** + /** * @protected * Aligns the picker to the */ @@ -181,7 +194,7 @@ Ext.define('Ext.form.field.Picker', { } }, - /** + /** * Collapse this field's picker dropdown. */ collapse: function() { @@ -204,7 +217,7 @@ Ext.define('Ext.form.field.Picker', { // remove event listeners doc.un('mousewheel', collapseIf, me); doc.un('mousedown', collapseIf, me); - + Ext.EventManager.removeResizeListener(me.alignPicker, me); me.fireEvent('collapse', me); me.onCollapse(); } @@ -213,7 +226,7 @@ Ext.define('Ext.form.field.Picker', { onCollapse: Ext.emptyFn, - /** + /** * @private * Runs on mousewheel and mousedown of doc to check to see if we should collapse the picker */ @@ -224,7 +237,7 @@ Ext.define('Ext.form.field.Picker', { } }, - /** + /** * Return a reference to the picker component for this field, creating it if necessary by * calling {@link #createPicker}. * @return {Ext.Component} The picker component @@ -234,14 +247,14 @@ Ext.define('Ext.form.field.Picker', { return me.picker || (me.picker = me.createPicker()); }, - /** + /** * Create and return the component to be used as this field's picker. Must be implemented * by subclasses of Picker. * @return {Ext.Component} The picker component */ createPicker: Ext.emptyFn, - /** + /** * Handles the trigger click; by default toggles between expanding and collapsing the * picker component. */ @@ -268,10 +281,13 @@ Ext.define('Ext.form.field.Picker', { onDestroy : function(){ var me = this; + Ext.EventManager.removeResizeListener(me.alignPicker, me); Ext.destroy(me.picker, me.keyNav); me.callParent(); } }); -