All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jwebmp.plugins.jqxwidgets.loader.JQXLoaderOptions Maven / Gradle / Ivy

/*
 * Copyright (C) 2017 Marc Magon
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */
package com.jwebmp.plugins.jqxwidgets.loader;

import com.jwebmp.core.Component;
import com.jwebmp.core.htmlbuilder.css.text.VerticalAlignments;
import com.jwebmp.core.htmlbuilder.css.themes.Theme;
import com.jwebmp.core.htmlbuilder.javascript.JavaScriptPart;
import com.jwebmp.core.htmlbuilder.javascript.JavascriptPartType;

/**
 * All the options for the Loader
 * 

* * @author GedMarc * @version 1.0 *

*

* @since Mar 4, 2015 */ public class JQXLoaderOptions extends JavaScriptPart { private Boolean autoOpen; private Integer height; private Integer width; private String html; private Boolean isModal; private VerticalAlignments imagePosition; private Boolean rtl; private String text; private VerticalAlignments textPosition; private String theme; public JQXLoaderOptions() { //Nothing Needed } @Override public JavascriptPartType getJavascriptType() { return JavascriptPartType.Javascript; } public Boolean getAutoOpen() { return autoOpen; } public void setAutoOpen(Boolean autoOpen) { this.autoOpen = autoOpen; } public Integer getHeight() { return height; } public void setHeight(Integer height) { this.height = height; } public Integer getWidth() { return width; } public void setWidth(Integer width) { this.width = width; } public String getHtml() { return html; } public void setHtml(Component html) { html.setTiny(true); this.html = html.toString(true); } public Boolean getIsModal() { return isModal; } public void setIsModal(Boolean isModal) { this.isModal = isModal; } public VerticalAlignments getImagePosition() { return imagePosition; } public void setImagePosition(VerticalAlignments imagePosition) { this.imagePosition = imagePosition; } public Boolean getRtl() { return rtl; } public void setRtl(Boolean rtl) { this.rtl = rtl; } public String getText() { return text; } public void setText(String text) { this.text = text; } public VerticalAlignments getTextPosition() { return textPosition; } public void setTextPosition(VerticalAlignments textPosition) { this.textPosition = textPosition; } public String getTheme() { return theme; } public void setTheme(Theme theme) { this.theme = theme.getClassName(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy