portletcomponent.java

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

JAVA
113
字号
/* * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a> * @version $Id: PortletComponent.java 4986 2006-08-04 09:54:38Z novotny $ */package org.gridsphere.layout;import javax.portlet.PortletRequest;/** * The <code>PortletComponent</code> defines the interfaces provided by a portlet component. */public interface PortletComponent extends ComponentLifecycle {    /**     * Returns the portlet component label     *     * @return the portlet component label     */    public String getLabel();    /**     * Sets the portlet component label     *     * @param label the portlet component label     */    public void setLabel(String label);    /**     * Sets the portlet component width     *     * @param width the portlet component width     */    public void setWidth(String width);    /**     * Returns the portlet component width     *     * @return the portlet component width     */    public String getWidth();    /**     * Returns the default portlet component width     *     * @return the default portlet component width     */    public String getDefaultWidth();    /**     * When set to true the portlet component is visible and will be rendered     *     * @param isVisible if <code>true</code> portlet component is rendered,     *                  <code>false</code> otherwise     */    public void setVisible(boolean isVisible);    /**     * When isVisible is true the portlet component is visible and will be rendered     *     * @return the portlet component visibility     */    public boolean getVisible();    /**     * Allows a required role to be associated with viewing this portlet     *     * @return the required portlet role expresses as a <code>PortletRole</code>     */    public String getRequiredRole();    /**     * Allows a required role to be associated with viewing this portlet     *     * @param reqRole the required portlet role expresses as a <code>PortletRole</code>     */    public void setRequiredRole(String reqRole);    public void setCanModify(boolean canModify);    public boolean getCanModify();    public void addComponentListener(PortletComponent component);    public PortletComponent getParentComponent();    public void setParentComponent(PortletComponent parent);    public void remove(PortletComponent pc);    public void remove();    public void setBufferedOutput(PortletRequest req, StringBuffer sb);    public StringBuffer getBufferedOutput(PortletRequest req);    /**     * Returns the portlet component css.     *     * @return portlet component css     */    public String getStyle();    /**     * Sets the portlet component css     *     * @param style style to be set     */    public void setStyle(String style);}

⌨️ 快捷键说明

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