1 /*
  2  * ***** BEGIN LICENSE BLOCK *****
  3  * Zimbra Collaboration Suite Web Client
  4  * Copyright (C) 2007, 2008, 2009, 2010, 2013, 2014, 2016 Synacor, Inc.
  5  *
  6  * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the "License");
  7  * you may not use this file except in compliance with the License.
  8  * You may obtain a copy of the License at: https://www.zimbra.com/license
  9  * The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15
 10  * have been added to cover use of software over a computer network and provide for limited attribution
 11  * for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
 12  *
 13  * Software distributed under the License is distributed on an "AS IS" basis,
 14  * WITHOUT WARRANTY OF ANY KIND, either express or implied.
 15  * See the License for the specific language governing rights and limitations under the License.
 16  * The Original Code is Zimbra Open Source Web Client.
 17  * The Initial Developer of the Original Code is Zimbra, Inc.  All rights to the Original Code were
 18  * transferred by Zimbra, Inc. to Synacor, Inc. on September 14, 2015.
 19  *
 20  * All portions of the code are Copyright (C) 2007, 2008, 2009, 2010, 2013, 2014, 2016 Synacor, Inc. All Rights Reserved.
 21  * ***** END LICENSE BLOCK *****
 22  */
 23 
 24 /**
 25  * Creates a border less button.
 26  * @constructor
 27  * @class
 28  * This class represents a button without a border.
 29  *
 30  * @param {hash}	params		a hash of parameters
 31  * @param {DwtComposite}      params.parent		the parent widget
 32  * @param {constant}      params.style			the button style (see {@link DwtButton})
 33  * @param {string}      params.className		the CSS class
 34  * @param {constant}      params.posStyle		the positioning style (see {@link Dwt})
 35  * @param {DwtButton.ACTION_MOUSEUP|DwtButton.ACTION_MOUSEDOWN}      params.actionTiming	if {@link DwtButton.ACTION_MOUSEUP}, then the button is triggered
 36  *											on mouseup events, else if {@link DwtButton.ACTION_MOUSEDOWN},
 37  * 											then the button is triggered on mousedown events
 38  * @param {string}      params.id			the ID to use for the control's HTML element
 39  * @param {number}      params.index 		the index at which to add this control among parent's children
 40  * 
 41  * @extends		DwtButton
 42  */
 43 DwtBorderlessButton = function(params) {
 44 	if (arguments.length == 0) { return; }
 45 	params = Dwt.getParams(arguments, DwtBorderlessButton.PARAMS);
 46 
 47 	DwtButton.call(this, params);
 48 }
 49 
 50 DwtBorderlessButton.PARAMS = ["parent", "style", "className", "posStyle", "actionTiming", "id", "index"];
 51 
 52 DwtBorderlessButton.prototype = new DwtButton;
 53 DwtBorderlessButton.prototype.constructor = DwtBorderlessButton;
 54 
 55 DwtBorderlessButton.prototype.toString =
 56 function() {
 57 	return "DwtBorderlessButton";
 58 }
 59 
 60 //
 61 // Data
 62 //
 63 
 64 DwtBorderlessButton.prototype.TEMPLATE = "dwt.Widgets#ZBorderlessButton"
 65 
 66