net.i2p.router.web
Class CSSHelper
java.lang.Object
net.i2p.router.web.HelperBase
net.i2p.router.web.CSSHelper
public class CSSHelper
- extends HelperBase
Copied and modded from I2PTunnel IndexBean (GPL)
- Author:
- zzz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_THEME_NAME
public static final String PROP_THEME_NAME
- See Also:
- Constant Field Values
DEFAULT_THEME
public static final String DEFAULT_THEME
- See Also:
- Constant Field Values
BASE_THEME_PATH
public static final String BASE_THEME_PATH
- See Also:
- Constant Field Values
PROP_REFRESH
public static final String PROP_REFRESH
- See Also:
- Constant Field Values
DEFAULT_REFRESH
public static final String DEFAULT_REFRESH
- See Also:
- Constant Field Values
CSSHelper
public CSSHelper()
getTheme
public String getTheme(String userAgent)
setLang
public void setLang(String lang)
- change default language for the router but don't save it
getLang
public String getLang()
- needed for conditional css loads for zh
setRefresh
public void setRefresh(String r)
- change refresh and save it
getRefresh
public String getRefresh()
- Returns:
- refresh time in seconds, as a string
title
public String title(String s)
- translate the title and display consistently