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

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

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

import java.io.IOException;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.jsoup.nodes.Element;

import com.talk2object.common.ListValueMap;
import com.talk2object.common.TreeNode;
import com.talk2object.plum.view.component.Component;
import com.talk2object.plum.view.event.ViewAction;
import com.talk2object.plum.view.event.WebEvent;

public interface WebComponent {

	String getId();
	
	void setId(String id);

	Component getComponent();

	void createHtmlElement();

	Element getHtmlOuterElement();

	WebComponent getParentWebComponent();
	
	List getChildrenWebComponents();
	
	void replaceChild(WebComponent oldChild,WebComponent newChild);
	
	void addChild(TreeNode node);

	ViewAction processEvent(WebEvent event,
			ListValueMap parameters);

	void writeFile(HttpServletRequest req, HttpServletResponse response,
			String shortName) throws IOException;

	String getOwnHash();
	void setOwnHash(String ownHash);
	String getChildrenIdsHash();
	void setChildrenIdsHash(String ChildrenIdsHash);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy