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

📄 portlettabeventimpl.java

📁 GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。GridSphere 是在欧盟提供基金的 GridLab 项目下开发的
💻 JAVA
字号:
/* * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a> * @version $Id: PortletTabEventImpl.java 4496 2006-02-08 20:27:04Z wehrens $ */package org.gridsphere.layout.event.impl;import org.gridsphere.layout.PortletComponent;import org.gridsphere.layout.PortletTab;import org.gridsphere.layout.event.ComponentAction;import org.gridsphere.layout.event.PortletTabEvent;/** * A <code>PortletTabEventImpl</code> is the concrete implementation of * <code>PortletTabEvent</code> */public class PortletTabEventImpl implements PortletTabEvent {    private ComponentAction action;    private PortletTab portletTab;    private int id;    /**     * Constructs an instance of PortletTabEventImpl from a portlet tab, a     * tab event action and the portlet tab component id     *     * @param portletTab the portlet tab     * @param action     the portlet tab event action     * @param id         the portlet component id     * @see PortletTab     */    public PortletTabEventImpl(PortletTab portletTab, ComponentAction action, int id) {        this.action = action;        this.portletTab = portletTab;        this.id = id;    }    /**     * Returns true if this event actually triggered an action     *     * @return true if this event actually triggered an action     */    public boolean hasAction() {        return (action != null);    }    /**     * Returns the portlet tab event action     *     * @return the portlet tab event action     */    public ComponentAction getAction() {        return action;    }    /**     * Returns the PortletTab that was selected     *     * @return the PortletTab that was selcted     */    public PortletComponent getPortletComponent() {        return portletTab;    }    /**     * Returns the component id of the portlet tab     *     * @return the component id of the portlet tab     */    public int getID() {        return id;    }}

⌨️ 快捷键说明

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