コード例 #1
0
        /// <summary>
        /// The PopupBase class provides functionality for showing and hiding a generic
        /// container element. It also provides the option for hiding the popup element
        /// if the user clicks outside the popup or the popup loses focus.
        /// </summary>
        /// <param name="opt_element"> A DOM element for the popup.</param>
        /// <param name="opt_type"> Type of popup.</param>
        public PopupBase(HTMLElement opt_element = null, goog.ui.PopupBase.Type opt_type = (Type)0)
        {
            this.handler_ = new goog.events.EventHandler(this);

            this.setElement(opt_element);
            if (opt_type != (Type)0)
            {
                this.setType(opt_type);
            }
        }
コード例 #2
0
 /// <summary>
 /// Specifies the type of popup to use.
 /// </summary>
 /// <param name="type"> Type of popup.</param>
 public void setType(goog.ui.PopupBase.Type type)
 {
     this.type_ = type;
 }