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

com.talk2object.plum.view.web.component.WebPanel Maven / Gradle / Ivy

The newest version!
package com.talk2object.plum.view.web.component;

import org.jsoup.nodes.Element;
import org.jsoup.parser.Tag;

import com.talk2object.plum.view.component.Component;
import com.talk2object.plum.view.component.containers.Panel;
import com.talk2object.plum.view.component.containers.window.Window;
import com.talk2object.plum.view.web.component.AbstractWebComponent;

public class WebPanel extends AbstractWebComponent {
	public WebPanel(String id, Component component) {
		super(id, component);
	}

	protected Panel getPanel() {
		return (Panel) component;
	}

	public void createHtmlElement() {

		Element div = new Element(Tag.valueOf("div"), "");
		div.attr("class", "panel");

		htmlOuterElement = div;
		htmlInnerElement = div;
		
		if(!getPanel().isVisible())
			htmlOuterElement.addClass("hide");
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy