001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.portlet.configuration.icon;
016    
017    import java.io.IOException;
018    
019    import java.util.Map;
020    
021    import javax.servlet.http.HttpServletRequest;
022    import javax.servlet.http.HttpServletResponse;
023    
024    /**
025     * @author Eudaldo Alonso
026     */
027    public interface PortletConfigurationIcon {
028    
029            public String getAlt();
030    
031            public String getAriaRole();
032    
033            public String getCssClass();
034    
035            public Map<String, Object> getData();
036    
037            public String getIconCssClass();
038    
039            public String getId();
040    
041            public String getImage();
042    
043            public String getImageHover();
044    
045            public String getLang();
046    
047            public String getLinkCssClass();
048    
049            public String getMessage();
050    
051            public String getMethod();
052    
053            public String getOnClick();
054    
055            public String getSrc();
056    
057            public String getSrcHover();
058    
059            public String getTarget();
060    
061            public String getURL();
062    
063            public boolean include(
064                            HttpServletRequest request, HttpServletResponse response)
065                    throws IOException;
066    
067            public boolean isLabel();
068    
069            public boolean isLocalizeMessage();
070    
071            public boolean isShow();
072    
073            public boolean isToolTip();
074    
075            public boolean isUseDialog();
076    
077    }