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    import java.util.Properties;
022    
023    /**
024     * @author Brian Wing Shun Chan
025     */
026    public interface ColorScheme extends Comparable<ColorScheme>, Serializable {
027    
028            public static final Accessor<ColorScheme, String> NAME_ACCESSOR =
029                    new Accessor<ColorScheme, String>() {
030    
031                            @Override
032                            public String get(ColorScheme colorScheme) {
033                                    return colorScheme.getName();
034                            }
035    
036                            @Override
037                            public Class<String> getAttributeClass() {
038                                    return String.class;
039                            }
040    
041                            @Override
042                            public Class<ColorScheme> getTypeClass() {
043                                    return ColorScheme.class;
044                            }
045    
046                    };
047    
048            public String getColorSchemeId();
049    
050            public String getColorSchemeImagesPath();
051    
052            public String getColorSchemeThumbnailPath();
053    
054            public String getCssClass();
055    
056            public boolean getDefaultCs();
057    
058            public String getName();
059    
060            public String getSetting(String key);
061    
062            public String getSettings();
063    
064            public Properties getSettingsProperties();
065    
066            public boolean isDefaultCs();
067    
068            public void setColorSchemeImagesPath(String colorSchemeImagesPath);
069    
070            public void setCssClass(String cssClass);
071    
072            public void setDefaultCs(boolean defaultCs);
073    
074            public void setName(String name);
075    
076            public void setSettings(String settings);
077    
078            public void setSettingsProperties(Properties settingsProperties);
079    
080    }