|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.web.HelperBase
net.i2p.router.web.CSSHelper
public class CSSHelper
Copied and modded from I2PTunnel IndexBean (GPL)
Field Summary | |
---|---|
static String |
BASE_THEME_PATH
|
static String |
DEFAULT_REFRESH
|
static String |
DEFAULT_THEME
|
static String |
PROP_REFRESH
|
static String |
PROP_THEME_NAME
|
Fields inherited from class net.i2p.router.web.HelperBase |
---|
_context, _out |
Constructor Summary | |
---|---|
CSSHelper()
|
Method Summary | |
---|---|
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 |
Methods inherited from class net.i2p.router.web.HelperBase |
---|
_, _, _, _x, ngettext, setContextId, storeWriter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public CSSHelper()
Method Detail |
---|
public String getTheme(String userAgent)
public void setLang(String lang)
public String getLang()
public void setRefresh(String r)
public String getRefresh()
public String title(String s)
public boolean allowIFrame(String ua)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |