/// class ProspectDirector.Web.UI.FeatureSets.Editors.DisplayedListEditor
/// using ProspectDirector.Web.UI.FeatureSets.Editors.CompositeEditor

ProspectDirector.Web.UI.FeatureSets.Editors.DisplayedListEditor =
ProspectDirector.Web.UI.FeatureSets.Editors.CompositeEditor.extend({

    //==============================
    // PROPERTIES
    //==============================

    get_input: function () {
        return this.get_element().find("DIV");
    },

    //==============================
    // EVENT HANDLERS
    //==============================

    _button_onClick: function (e) {
        this.buttonOnClick(e);
    },

    buttonOnClick: function (e) {
        // overridable
    },

    //==============================
    // PUBLIC METHODS
    //==============================

    activate: function () {
        this._super();
        this.get_input().val(this.getPrimaryValue());
    },

    render: function () {

        return "<div id='" + this.getId() + "' class='-pd-micro-editor-composite' style='height:70px;'>" +
            "<div style='position:absolute;top:0;bottom:0;left:0;right:20px;overflow-y:scroll;'></div>" +
            "<input type='button' value='...'>" +
        "</div>";

    }

});