/* * Copyright (C) 2013 Martin Fousek & Mert Caliskan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package javaone.con3638.primetheme; import java.io.Serializable; import javax.enterprise.context.SessionScoped; import javax.inject.Named; import java.util.Map; import java.util.TreeMap; import javax.annotation.PostConstruct; @Named(value = "themeSwitcherBean") @SessionScoped public class ThemeSwitcherBean implements Serializable { private Map<String, String> themes; public Map<String, String> getThemes() { return themes; } @PostConstruct public void init() { themes = new TreeMap<String, String>(); themes.put("Aristo", "aristo"); themes.put("Black-Tie", "black-tie"); themes.put("Blitzer", "blitzer"); themes.put("Bluesky", "bluesky"); themes.put("Bootstrap", "bootstrap"); themes.put("Casablanca", "casablanca"); themes.put("Cupertino", "cupertino"); themes.put("Dark-Hive", "dark-hive"); themes.put("Dot-Luv", "dot-luv"); themes.put("Eggplant", "eggplant"); themes.put("Excite-Bike", "excite-bike"); themes.put("Flick", "flick"); themes.put("Glass-X", "glass-x"); themes.put("Hot-Sneaks", "hot-sneaks"); themes.put("Humanity", "humanity"); themes.put("Le-Frog", "le-frog"); themes.put("Metro UI", "metroui"); themes.put("Midnight", "midnight"); themes.put("Mint-Choc", "mint-choc"); themes.put("Overcast", "overcast"); themes.put("Pepper-Grinder", "pepper-grinder"); themes.put("Redmond", "redmond"); themes.put("Rocket", "rocket"); themes.put("Sam", "sam"); themes.put("Smoothness", "smoothness"); themes.put("South-Street", "south-street"); themes.put("Start", "start"); themes.put("Sunny", "sunny"); themes.put("Swanky-Purse", "swanky-purse"); themes.put("Trontastic", "trontastic"); themes.put("UI-Darkness", "ui-darkness"); themes.put("UI-Lightness", "ui-lightness"); themes.put("Vader", "vader"); } }