Package org.eclnt.jsfserver.util
Class StyleManager
java.lang.Object
org.eclnt.jsfserver.util.StyleManager
- All Implemented Interfaces:
ICCServerConstants
Access to style definitions. In general the style information is read when
starting the web application - so you should only access the get-methods in order
to gather for style information.
Please also check class
Please also check class
StyleUtil
, which contains useful methods in the
area of style management.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
Concrete attribute-value-pair.static class
static class
Style information for a tag.static class
Style value that is added to the style via:static class
-
Field Summary
Fields inherited from interface org.eclnt.jsfserver.util.ICCServerConstants
CLIENTJAVATYPE_FX, CLIENTJAVATYPE_SWING, CLIENTTYPE_APPLET, CLIENTTYPE_APPLICATION, CLIENTTYPE_BROWSER, CLIENTTYPE_RISC, CLIENTTYPE_UI5, CLIENTTYPE_WEBSTART, EXPLICIT_NULL, FOCUSSEQUENCE_FIX_PREFIX, HEADER_ATTRIBUTE_CLIENT, HEADER_ATTRIBUTE_CLIENTJAVATYPE, HEADER_ATTRIBUTE_COOKIESENABLED, HEADER_ATTRIBUTE_COUNTRY, HEADER_ATTRIBUTE_DEVICESCREENHEIGHT, HEADER_ATTRIBUTE_DEVICESCREENWIDTH, HEADER_ATTRIBUTE_DEVICETYPE, HEADER_ATTRIBUTE_LANGUAGE, HEADER_ATTRIBUTE_MEDIADEVICES, HEADER_ATTRIBUTE_ORIGINALURL, HEADER_ATTRIBUTE_PERFORMANCEDATA, HEADER_ATTRIBUTE_REQUESTID, HEADER_ATTRIBUTE_TIMEZONEOFFSET, HEADER_ATTRIBUTE_USERAGENT, HEADER_ATTRIBUTE_XFRAMEOPTIONS, HEADER_RESPONSE_ATTRIBUTE_HTTPSESSIONID, HEADER_RESPONSE_ATTRIBUTE_HTTPSESSIONREFERENCEURL, HEADER_RESPONSE_ATTRIBUTE_HTTPSESSIONTRACKINGMODE, HEADER_RESPONSE_ATTRIBUTE_OVERRIDE, HEADER_RESPONSE_ATTRIBUTE_RELOAD, HEADER_RESPONSE_ATTRIBUTE_STYLE, INPUTMASK_VALUEMODE_WITHMASK, INPUTMASK_VALUEMODE_WITHOUTMASK, LAYOUTEXTENSION_JSP, LAYOUTEXTENSION_XML, QP_CCSTYLE, QP_KEEPDIALOGSESSION, QP_SUBPAGEID, SECURITY_ROLE_CCADMIN, SESSION_TRACKING_COOKIE, SESSION_TRACKING_URL, TEXTPANE_CONTENTTYPE_HTML, TEXTPANE_CONTENTTYPE_PLAIN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addCSSGlobalVariablesToDeignTimeStyle
(StyleManager.Style style, String styleFileName) static String
combineStyleWithAdditionalStyles
(String xml, String styleName, ClassLoader cl) Combines the CSS-style-xml with additional style information coming from additional styles coming from the classloader (page bean components).static StyleManager.Style
Reads style at runtime.getStyleExtensionSequence
(String styleName) Reads extension sequence for a given style.static String
getStyleValue
(String valueName) static String
getStyleValue
(String styleName, String valueName) Get style value.static String
getTagAttributeValue
(String variantName, String tagNameWithPrefix, String attributeName) Convenience method - returning the style value for a certain tag.static StyleManager.StyleTagInfo
getTagInfo
(String variantName, String tagNameWithPrefix) Convenience method - returning the style information for the style that is used within the current session of the user.static StyleManager.StyleTagInfo
getTagInfo
(String styleName, String variantName, String tagNameWithPrefix) Central method for getting style information for a certain tag.static StyleManager.StyleTagInfo
getTagInfo
(String styleName, String variantName, String includingPageName, String componentLayoutId, String tagNameWithPrefix) Style access with cascading over styleVariant, includingPageName, componentId.static StyleManager.Style
readDesignTimeStyle
(String styleName, String styleFileName) static StyleManager.Style
readDesignTimeStyle
(String styleName, String styleFileName, ClassLoader cl) static void
registerStyle
(String styleName) static void
registerStyle
(String styleName, boolean withError) static void
reset()
Allows to reset the stlye manager without restarting Tomcat...static String
updatePrefix
(String tagName)
-
Constructor Details
-
StyleManager
public StyleManager()
-
-
Method Details
-
reset
public static void reset()Allows to reset the stlye manager without restarting Tomcat... -
updatePrefix
-
getTagInfo
Convenience method - returning the style information for the style that is used within the current session of the user. This method must only be used within the context of a request processing. -
getTagAttributeValue
public static String getTagAttributeValue(String variantName, String tagNameWithPrefix, String attributeName) Convenience method - returning the style value for a certain tag.- Parameters:
variantName
- e.g. "default"tagNameWithPrefix
- e.g. "t:field"attributeName
- e.g. "background"- Returns:
- Style value, null if not defined.
-
getStyleValue
-
getStyleValue
Get style value. Style values are the values defined via. -
getStyle
Reads style at runtime. -
getStyleExtensionSequence
Reads extension sequence for a given style. The first style in the list is the most basic style, the last style in the list is the style passed via parameter "styleName". This is a runtime function. -
getTagInfo
public static StyleManager.StyleTagInfo getTagInfo(String styleName, String variantName, String includingPageName, String componentLayoutId, String tagNameWithPrefix) Style access with cascading over styleVariant, includingPageName, componentId. -
getTagInfo
public static StyleManager.StyleTagInfo getTagInfo(String styleName, String variantName, String tagNameWithPrefix) Central method for getting style information for a certain tag.- Parameters:
tagNameWithPrefix
- Full tag name, including prefix, e.g. "t:field".- Returns:
- Null if nothing found.
-
registerStyle
-
registerStyle
-
getAvailableRuntimeStyles
-
readDesignTimeStyle
-
readDesignTimeStyle
public static StyleManager.Style readDesignTimeStyle(String styleName, String styleFileName, ClassLoader cl) -
addCSSGlobalVariablesToDeignTimeStyle
public static void addCSSGlobalVariablesToDeignTimeStyle(StyleManager.Style style, String styleFileName) -
combineStyleWithAdditionalStyles
Combines the CSS-style-xml with additional style information coming from additional styles coming from the classloader (page bean components).
-