portletframeeventimpl.java

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

JAVA
82
字号
/* * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a> * @version $Id: PortletFrameEventImpl.java 4496 2006-02-08 20:27:04Z wehrens $ */package org.gridsphere.layout.event.impl;import org.gridsphere.layout.PortletComponent;import org.gridsphere.layout.PortletFrame;import org.gridsphere.layout.event.ComponentAction;import org.gridsphere.layout.event.PortletFrameEvent;/** * A <code>PortletFrameEventImpl</code> is the concrete implementation of * <code>PortletFrameEvent</code> */public class PortletFrameEventImpl implements PortletFrameEvent {    private ComponentAction action;    private int id;    private String width = "";    private PortletFrame frame = null;    /**     * Constructs an instance of PortletFrameEventImpl from an action     * and the component id of teh PortletFrame     *     * @param frame the portlet frame     * @param action a window action     * @param id     the component id of the PortletFrame     */    public PortletFrameEventImpl(PortletFrame frame, ComponentAction action, int id) {        this.frame = frame;        this.action = action;        this.id = id;    }    public boolean hasAction() {        return (action != null);    }    /**     * Returns the type of PortletFrame action received     *     * @return the window action     */    public ComponentAction getAction() {        return action;    }    public PortletComponent getPortletComponent() {        return frame;    }    /**     * Returns the component id of  the PortletFrame that triggered the event     *     * @return the component id of  the PortletFrame     */    public int getID() {        return id;    }    /**     * Used in the case of portlet frame resize when it needs to know the original width of the frame     *     * @param originalWidth the portlet frame original width     */    public void setOriginalWidth(String originalWidth) {        this.width = originalWidth;    }    /**     * Used in the case of portlet frame resize when it needs to know the original width of the frame     *     * @return the portlet frame original width     */    public String getOriginalWidth() {        return width;    }}

⌨️ 快捷键说明

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