ThemeSwitcherView.java 1.98 KB
package fi.codecrew.moya.web.helper;

import java.util.Map;
import java.util.TreeMap;

import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

import fi.codecrew.moya.web.cdiview.GenericCDIView;

@Named
@RequestScoped
public class ThemeSwitcherView extends GenericCDIView {

	/**
	 * 
	 */
	private static final long serialVersionUID = 42L;

	private Map<String, String> themes;

	public Map<String, String> getThemes() {
		if (themes == null) {
			themes = new TreeMap<String, String>();
			themes.put("Afterdark", "afterdark");
			themes.put("Afternoon", "afternoon");
			themes.put("Afterwork", "afterwork");
			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("Cruze", "cruze");
			themes.put("Dark-Hive", "dark-hive");
			themes.put("Delta", "delta");
			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("Home", "home");
			themes.put("Hot-Sneaks", "hot-sneaks");
			themes.put("Humanity", "humanity");
			themes.put("Le-Frog", "le-frog");
			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");
		}

		return themes;
	}
	
}