portlettabeventimpl.java

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

JAVA
74
字号
/* * @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 + =
减小字号Ctrl + -
显示快捷键?