| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/StyleEdit3/javascript/entities/ |
Upload File : |
/* --------------------------------------------------------------
PreviewType.js 2019-06-07
Gambio GmbH
http://www.gambio.de
Copyright (c) 2019 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------*/
'use strict';
/**
* Class PreviewType
*/
export default class PreviewType {
/**
* Class Constructor
*/
constructor() {
/**
* Preview type HTML class.
*
* @type {String}
*/
this.class = null;
/**
* Preview type display name.
*
* @type {String}
*/
this.name = null;
/**
* CSS Styling set with jQuery
*
* @type {Object}
*/
this.previewCss = null;
/**
* Font-Awesome Icon Class
*
* @type {String}
*/
this.iconClass = null;
/**
* Resolution
*
* @type {String}
*/
this.resolution = null;
}
/**
* Class Getter
*
* @return {String}
*/
getClass() {
return this.class;
}
/**
* Class Setter
*
* @param {String} className
*
* @return {PreviewType}
*/
setClass(className) {
StyleEdit.Validator.isString(className);
this.class = className;
return this;
}
/**
* Name Getter
*
* @return {String}
*/
getName() {
return this.name;
}
/**
* Name Setter
*
* @param {String} name
*
* @return {PreviewType}
*/
setName(name) {
StyleEdit.Validator.isString(name);
this.name = name;
return this;
}
/**
* Preview CSS Getter
*
* @return {Object}
*/
getPreviewCss() {
return this.previewCss;
}
/**
* Preview CSS Setter
*
* @param {Object} previewCss
*
* @return {PreviewType}
*/
setPreviewCss(previewCss) {
StyleEdit.Validator.isObject(previewCss);
this.previewCss = previewCss;
return this;
}
/**
* Font-awesome Icon Class Getter
*
* @return {String}
*/
getIconClass() {
return this.iconClass;
}
/**
* Font-awesome Icon Class Setter
*
* @param {String} iconClass
*
* @return {PreviewType}
*/
setIconClass(iconClass) {
StyleEdit.Validator.isString(iconClass);
this.iconClass = iconClass;
return this;
}
/**
* Resolution Getter
*
* @return {String}
*/
getResolution() {
return this.resolution;
}
/**
* Resolution Setter
*
* @param {String} resolution
*
* @return {PreviewType}
*/
setResolution(resolution) {
StyleEdit.Validator.isString(resolution);
this.resolution = resolution;
return this;
}
}