net.i2p.router.web
public class CSSHelper extends HelperBase
Modifier and Type | Field and Description |
---|---|
static String |
BASE_THEME_PATH |
static String |
DEFAULT_REFRESH |
static String |
DEFAULT_THEME |
static String |
PROP_REFRESH |
static String |
PROP_THEME_NAME |
_context, _out
Constructor and Description |
---|
CSSHelper() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowIFrame(String ua)
Should we allow a refreshing IFrame?
|
String |
getLang()
needed for conditional css loads for zh
|
String |
getRefresh() |
String |
getTheme(String userAgent) |
void |
setLang(String lang)
change default language for the router AND save it
|
void |
setRefresh(String r)
change refresh and save it
|
String |
title(String s)
translate the title and display consistently
|
_, _, _, _x, ngettext, setContextId, storeWriter
public static final String PROP_THEME_NAME
public static final String DEFAULT_THEME
public static final String BASE_THEME_PATH
public static final String PROP_REFRESH
public static final String DEFAULT_REFRESH
public void setLang(String lang)
public String getLang()
public void setRefresh(String r)
public String getRefresh()
public boolean allowIFrame(String ua)