|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.rave.web.ui.renderer.template.LayoutDefinitionManager
public abstract class LayoutDefinitionManager
This abstract class provides the base functionality for all
LayoutDefinitionManager implementations. It provides an
static method used to obtain an instance of a concrete
LayoutDefinitionManager: getManager(FacesContext).
It also provides another version of this method which allows a specific
instance to be specified by classname:
getManager(String className) (typically not used, the
environment should be setup to provide the correct
LayoutDefinitionManager). Once an instance is obtained,
the getLayoutDefinition(String key) method can be invoked to
obtain a LayoutDefinition.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_LAYOUT_DEFINITION_MANAGER_IMPL
This constant defines the default layout definition manager implementation class name. |
static java.lang.String |
LAYOUT_DEFINITION_MANAGER_KEY
This constant defines the layout definition manager implementation key for initParams. |
| Constructor Summary | |
|---|---|
protected |
LayoutDefinitionManager()
Constructor. |
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String key)
Retrieve an attribute by key |
abstract LayoutDefinition |
getLayoutDefinition(java.lang.String key)
This method is responsible for finding/creating the requested LayoutDefinition. |
static LayoutDefinitionManager |
getManager(javax.faces.context.FacesContext context)
This is a factory method for obtaining the LayoutDefinitionManager. |
static LayoutDefinitionManager |
getManager(java.lang.String className)
This method is a singleton factory method for obtaining an instance of a LayoutDefintionManager. |
void |
setAttribute(java.lang.String key,
java.lang.Object value)
Associate the given key with the given Object as an attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_LAYOUT_DEFINITION_MANAGER_IMPL
public static final java.lang.String LAYOUT_DEFINITION_MANAGER_KEY
| Constructor Detail |
|---|
protected LayoutDefinitionManager()
| Method Detail |
|---|
public abstract LayoutDefinition getLayoutDefinition(java.lang.String key)
key - The key used to identify the requested LayoutDefintionpublic static LayoutDefinitionManager getManager(javax.faces.context.FacesContext context)
LAYOUT_DEFINITION_MANAGER_KEY.
context - The FacesContextLAYOUT_DEFINITION_MANAGER_KEYpublic static LayoutDefinitionManager getManager(java.lang.String className)
public java.lang.Object getAttribute(java.lang.String key)
key - The key used to retrieve the attribute
public void setAttribute(java.lang.String key,
java.lang.Object value)
key - The key associated with the given object (if this key
is already in use, it will replace the previously set attribute
object).value - The Object to store.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||