public class CSSHelper extends HelperBase
Modifier and Type | Field | Description |
---|---|---|
static String |
BASE_THEME_PATH |
|
static String |
DEFAULT_REFRESH |
|
static String |
DEFAULT_THEME |
|
static int |
MIN_REFRESH |
|
static String |
PROP_DISABLE_REFRESH |
|
static String |
PROP_EMBED_APPS |
|
static String |
PROP_FORCE_MOBILE_CONSOLE |
|
static String |
PROP_REFRESH |
|
static String |
PROP_THEME_NAME |
|
static String |
PROP_THEME_PFX |
|
static String |
PROP_UNIVERSAL_THEMING |
_context, _out, CHECKED, PROP_ADVANCED
Constructor | Description |
---|---|
CSSHelper() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
allowIFrame(String ua) |
Should we allow a refreshing IFrame?
|
boolean |
embedApps() |
Returns whether app embedding is enabled or disabled
|
boolean |
getDisableRefresh() |
|
String |
getLang() |
needed for conditional css loads for zh
|
static String |
getNonce() |
formerly stored in System.getProperty("router.consoleNonce")
|
String |
getRefresh() |
|
String |
getTheme(String userAgent) |
|
void |
setDisableRefresh(String r) |
change disable refresh boolean and save it
|
void |
setLang(String lang) |
change default language for the router AND save it
|
void |
setNews(String val) |
Show / hide news on home page
|
void |
setRefresh(String r) |
change refresh and save it
|
boolean |
shouldSendXFrame() |
Should we send X_Frame_Options=SAMEORIGIN
Default true
|
String |
title(String s) |
translate the title and display consistently
|
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, setContextId, storeWriter
public static final String PROP_UNIVERSAL_THEMING
public static final String PROP_THEME_NAME
public static final String PROP_THEME_PFX
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 static final int MIN_REFRESH
public static final String PROP_DISABLE_REFRESH
public static final String PROP_FORCE_MOBILE_CONSOLE
public static final String PROP_EMBED_APPS
public static String getNonce()
public boolean embedApps()
public void setLang(String lang)
lang
- xx OR xx_XX OR xxx OR xxx_XXpublic String getLang()
public void setNews(String val)
val
- if non-null, "1" to show, else hidepublic boolean shouldSendXFrame()
public void setRefresh(String r)
public String getRefresh()
public void setDisableRefresh(String r)
public boolean getDisableRefresh()
public boolean allowIFrame(String ua)