lib/Ext/field/Select.js
function() {
        var me = this,
            store = me.getStore(),
            value = me.getValue();

        //check if the store is empty, if it is, return
        if (!store || store.getCount() === 0) {
            return;
        }

        if (me.getReadOnly()) {
            return;
        }

        me.isFocused = true;

        if (me.getUsePicker()) {
            var picker = me.getPhonePicker(),
                name = me.getName(),
                pickerValue = {};

            pickerValue[name] = value;
            picker.setValue(pickerValue);

            if (!picker.getParent()) {
                Ext.Viewport.add(picker);
            }

            picker.show();
        } else {
            var listPanel = me.getTabletPicker(),
                list = listPanel.down('list'),
                index, record;

            if (!listPanel.getParent()) {
                Ext.Viewport.add(listPanel);
            }

            listPanel.showBy(me.getComponent(), null);

            if (value || me.getAutoSelect()) {
                store = list.getStore();
                index = store.find(me.getValueField(), value, null, null, null, true);
                record = store.getAt(index);

                if (record) {
                    list.select(record, null, true);
                }
            }
        }
    }
function() {
        var me = this,
            store = me.getStore(),
            value = me.getValue();

        //check if the store is empty, if it is, return
        if (!store || store.getCount() === 0) {
            return;
        }

        if (me.getReadOnly()) {
            return;
        }

        me.isFocused = true;

        if (me.getUsePicker()) {
            var picker = me.getPhonePicker(),
                name = me.getName(),
                pickerValue = {};

            pickerValue[name] = value;
            picker.setValue(pickerValue);

            if (!picker.getParent()) {
                Ext.Viewport.add(picker);
            }

            picker.show();
        } else {
            var listPanel = me.getTabletPicker(),
                list = listPanel.down('list'),
                index, record;

            if (!listPanel.getParent()) {
                Ext.Viewport.add(listPanel);
            }

            listPanel.showBy(me.getComponent(), null);

            if (value || me.getAutoSelect()) {
                store = list.getStore();
                index = store.find(me.getValueField(), value, null, null, null, true);
                record = store.getAt(index);

                if (record) {
                    list.select(record, null, true);
                }
            }
        }
    }
function ( ) { var me = this , store = me . getStore ( ) , value = me . getValue ( ) ; //check if the store is empty, if it is, return if ( ! store || store . getCount ( ) === 0 ) { return ; } if ( me . getReadOnly ( ) ) { return ; } me . isFocused = true ; if ( me . getUsePicker ( ) ) { var picker = me . getPhonePicker ( ) , name = me . getName ( ) , pickerValue = { } ; pickerValue [ name ] = value ; picker . setValue ( pickerValue ) ; if ( ! picker . getParent ( ) ) { Ext . Viewport . add ( picker ) ; } picker . show ( ) ; } else { var listPanel = me . getTabletPicker ( ) , list = listPanel . down ( 'list' ) , index , record ; if ( ! listPanel . getParent ( ) ) { Ext . Viewport . add ( listPanel ) ; } listPanel . showBy ( me . getComponent ( ) , null ) ; if ( value || me . getAutoSelect ( ) ) { store = list . getStore ( ) ; index = store . find ( me . getValueField ( ) , value , null , null , null , true ) ; record = store . getAt ( index ) ; if ( record ) { list . select ( record , null , true ) ; } } } }
Shows the picker for the select field, whether that is a {@link Ext.picker.Picker} or a simple
{@link Ext.List list}.
Shows the picker for the select field whether that is a {