org.apache.myfaces.tobago.renderkit.css
Class Classes

java.lang.Object
  extended by org.apache.myfaces.tobago.renderkit.css.Classes

public final class Classes
extends Object

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:

where 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".


Method Summary
static Classes create(javax.faces.component.UIComponent component)
           
static Classes create(javax.faces.component.UIComponent component, Markup explicit)
           
static Classes create(javax.faces.component.UIComponent component, String sub)
           
static Classes create(javax.faces.component.UIComponent component, String sub, Markup explicit)
           
static Classes createWorkaround(String rendererName, Markup explicit)
          Deprecated. This workaround will be removed later
static Classes createWorkaround(String rendererName, String sub, Markup explicit)
          Deprecated. This workaround will be removed later
 String getStringValue()
           
static String requiredWorkaround(javax.faces.component.UIComponent component)
          Deprecated. This workaround will be removed later
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Classes create(javax.faces.component.UIComponent component)

create

public static Classes create(javax.faces.component.UIComponent component,
                             String sub)

create

public static Classes create(javax.faces.component.UIComponent component,
                             Markup explicit)

create

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

getStringValue

public String getStringValue()

requiredWorkaround

@Deprecated
public static String requiredWorkaround(javax.faces.component.UIComponent component)
Deprecated. This workaround will be removed later


createWorkaround

@Deprecated
public static Classes createWorkaround(String rendererName,
                                                  String sub,
                                                  Markup explicit)
Deprecated. This workaround will be removed later


createWorkaround

@Deprecated
public static Classes createWorkaround(String rendererName,
                                                  Markup explicit)
Deprecated. This workaround will be removed later



Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.