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.model;
016    
017    import com.liferay.portal.kernel.util.Accessor;
018    
019    import java.io.Serializable;
020    
021    /**
022     * @author Eduardo Garcia
023     */
024    public interface PortletDecorator
025            extends Comparable<PortletDecorator>, Serializable {
026    
027            public static final Accessor<PortletDecorator, String> NAME_ACCESSOR =
028                    new Accessor<PortletDecorator, String>() {
029    
030                            @Override
031                            public String get(PortletDecorator portletDecorator) {
032                                    return portletDecorator.getName();
033                            }
034    
035                            @Override
036                            public Class<String> getAttributeClass() {
037                                    return String.class;
038                            }
039    
040                            @Override
041                            public Class<PortletDecorator> getTypeClass() {
042                                    return PortletDecorator.class;
043                            }
044    
045                    };
046    
047            public String getCssClass();
048    
049            public String getName();
050    
051            public String getPortletDecoratorId();
052    
053            public String getPortletDecoratorThumbnailPath();
054    
055            public boolean isDefaultPortletDecorator();
056    
057            public void setCssClass(String cssClass);
058    
059            public void setDefaultPortletDecorator(boolean defaultPortletDecorator);
060    
061            public void setName(String name);
062    
063            public void setPortletDecoratorThumbnailPath(
064                    String portletDecoratorThumbnailPath);
065    
066    }