/// class PD.Web.UI.Controls.ContextMenuOpenEventArgs

PD.Web.UI.Controls.ContextMenuOpenEventArgs =
Class.extend({

    //===================================
    // FIELDS
    //===================================

    item: null,
    menu: null,
    context: null,
    target: null,
    node: null,

    //===================================
    // CONSTRUCTOR
    //===================================

    init: function (options) {
        this.menu = options.menu;
        this.item = options.item;
        this.node = options.node;
        this.target = options.target;
        this.context = options.context;
    },

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

    enabled: function (value) {
        this.menu.enable(this.node, value);
    },

    label: function (value) {
        this.node.find(".-pd-menu-text").empty();
        this.node.find(".-pd-menu-text").append(value);
    },

    icon: function (value) {
        //node.find(".-pd-menu-text").empty();
        //node.find(".-pd-menu-text").append(value);
    },

    visible: function (value) {
        value === true ? this.node.show() : this.node.hide();
    }

});