componentlifecycle.java

来自「GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。」· Java 代码 · 共 66 行

JAVA
66
字号
/** * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a> * @version $Id: ComponentLifecycle.java 4986 2006-08-04 09:54:38Z novotny $ */package org.gridsphere.layout;import org.gridsphere.portletcontainer.GridSphereEvent;import javax.portlet.PortletRequest;import java.util.List;/** * The <code>ComponentLifecycle</code> represents the lifecycle methods required by any * PortletComponent. */public interface ComponentLifecycle extends Cloneable {    /**     * Initializes the portlet component. Since the components are isolated     * after Castor unmarshalls from XML, the ordering is determined by a     * passed in List containing the previous portlet components in the tree.     *     * @param req  the portlet request     * @param list a list of component identifiers     * @return a list of updated component identifiers     * @see ComponentIdentifier     */    public List<ComponentIdentifier> init(PortletRequest req, List<ComponentIdentifier> list);    /**     * Performs an action on this portlet component     *     * @param event a gridsphere event     */    public void actionPerformed(GridSphereEvent event);    /**     * Renders the portlet component     *     * @param event a gridsphere event     */    public void doRender(GridSphereEvent event);    public Object clone() throws CloneNotSupportedException;    /**     * Destroys this portlet component     */    public void destroy();    /**     * Returns the associated portlet component id     *     * @return the portlet component id     */    public int getComponentID();    /**     * Sets the associated portlet component id     *     * @param compId the portlet component id     */    public void setComponentID(int compId);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?