⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 portletframeeventimpl.java

📁 GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。GridSphere 是在欧盟提供基金的 GridLab 项目下开发的
💻 JAVA
字号:
/* * @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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -