var Button = Namespace.declare("com.twitter.Bootstrap",
    class Button extends UcpComponent {
        static get implements() { return []; };
        static start() {}
        static get dependencies() {
            return [
                "/EAMD.ucp/Components/com/twitter/Bootstrap/3.3.7/Bootstrap.component.xml"
            ];
        }


        constructor() {
            super();
            this.text = "From Button class.js";
            this.cssclasses = "btn-default";

            if (!this.clickmethodname)
                this.clickmethodname = "select";
        }

        init() {
            if (this._private.isInitialized)
                return;

            super.init();

            return this;
        }

        get name() {
            return this.text;
        }

        set name(newValue) {
            if (this.properties)
                this.properties.text = newValue;
            else
                this.text = newValue;
        }

        setButtonType(cssClasses) {
            this.properties.cssclasses = cssClasses;
        }

        setButtonText(txt) {
            this.properties.text = txt;
        }

        select() {
            console.debug(this.name + " was clicked");
        }

        submitClicked() {
            console.debug("The page will now be submitted");
        }

        resetClicked() {
            console.debug("The page will now be reset");
        }
    }
);