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 com.liferay.portal.kernel.util.WebKeys;
018    import com.liferay.portal.theme.PortletDisplay;
019    import com.liferay.portal.theme.ThemeDisplay;
020    
021    import java.util.Map;
022    
023    import javax.portlet.PortletRequest;
024    
025    /**
026     * @author Eudaldo Alonso
027     */
028    public abstract class BasePortletConfigurationIcon
029            implements PortletConfigurationIcon {
030    
031            public BasePortletConfigurationIcon(PortletRequest portletRequest) {
032                    this.portletRequest = portletRequest;
033    
034                    themeDisplay = (ThemeDisplay)portletRequest.getAttribute(
035                            WebKeys.THEME_DISPLAY);
036    
037                    portletDisplay = themeDisplay.getPortletDisplay();
038            }
039    
040            @Override
041            public String getAlt() {
042                    return null;
043            }
044    
045            @Override
046            public String getAriaRole() {
047                    return null;
048            }
049    
050            @Override
051            public String getCssClass() {
052                    return null;
053            }
054    
055            @Override
056            public Map<String, Object> getData() {
057                    return null;
058            }
059    
060            @Override
061            public String getIconCssClass() {
062                    return null;
063            }
064    
065            @Override
066            public String getId() {
067                    return null;
068            }
069    
070            @Override
071            public String getImage() {
072                    return null;
073            }
074    
075            @Override
076            public String getImageHover() {
077                    return null;
078            }
079    
080            @Override
081            public String getLang() {
082                    return null;
083            }
084    
085            @Override
086            public String getLinkCssClass() {
087                    return null;
088            }
089    
090            @Override
091            public String getMessage() {
092                    return null;
093            }
094    
095            @Override
096            public String getMethod() {
097                    return null;
098            }
099    
100            @Override
101            public String getOnClick() {
102                    return null;
103            }
104    
105            @Override
106            public String getSrc() {
107                    return null;
108            }
109    
110            @Override
111            public String getSrcHover() {
112                    return null;
113            }
114    
115            @Override
116            public String getTarget() {
117                    return null;
118            }
119    
120            @Override
121            public String getURL() {
122                    return null;
123            }
124    
125            @Override
126            public boolean isLabel() {
127                    return false;
128            }
129    
130            @Override
131            public boolean isLocalizeMessage() {
132                    return true;
133            }
134    
135            @Override
136            public boolean isToolTip() {
137                    return false;
138            }
139    
140            @Override
141            public boolean isUseDialog() {
142                    return false;
143            }
144    
145            protected PortletDisplay portletDisplay;
146            protected PortletRequest portletRequest;
147            protected ThemeDisplay themeDisplay;
148    
149    }