public final class

Classes

extends Object
java.lang.Object
   ↳ org.apache.myfaces.tobago.renderkit.css.Classes

Class Overview

Builds the CSS class attribute of tags. The names will be generated in a formal way, so generic name (and abbrevation) are possible. The class works like a factory, so caching will be possible.

The default naming conventions allow these values:

  • tobago-<rendererName>
  • tobago-<rendererName>-markup-<markupName>
  • tobago-<rendererName>-<subElement>
  • tobago-<rendererName>-<subElement>-markup-<markupName>
where
  • <rendererName>, <subElement> and <markupName> must only contain ASCII-chars and -numbers
  • <rendererName> is the rendererType with a lower case char as first char
  • <subElement> is a sub element of the main tag in the output language (e.g. HTML)
  • <markupName> is the name of an existing markup
If the markup contains more than one name, there will be generated more than one output string. E.g.: UIIn with Markup [readonly, error] will get the class "tobago-in tobago-in-markup-readonly tobago-in-markup-error".

Summary

Public Methods
static Classes create(UIComponent component)
static Classes create(UIComponent component, String sub)
static Classes create(UIComponent component, String sub, Markup explicit)
static Classes create(UIComponent component, Markup explicit)
static Classes createWorkaround(String rendererName, String sub, Markup explicit)
This method is deprecated. This workaround will be removed later
static Classes createWorkaround(String rendererName, Markup explicit)
This method is deprecated. This workaround will be removed later
String getStringValue()
static String requiredWorkaround(UIComponent component)
This method is deprecated. This workaround will be removed later
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Classes create (UIComponent component)

public static Classes create (UIComponent component, String sub)

public static Classes create (UIComponent component, String sub, Markup explicit)

public static Classes create (UIComponent component, Markup explicit)

public static Classes createWorkaround (String rendererName, String sub, Markup explicit)

This method is deprecated.
This workaround will be removed later

public static Classes createWorkaround (String rendererName, Markup explicit)

This method is deprecated.
This workaround will be removed later

public String getStringValue ()

public static String requiredWorkaround (UIComponent component)

This method is deprecated.
This workaround will be removed later