|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The FacesDesignContext is an extension to the DesignContext interface (and MarkupDesignContext interface) that adds JSF-specific functionality. This adds methods for creating new facets and handling value reference expressions at design-time. A FacesDesignContext can be accessed by calling the DesignBean.getDesignContext() method and testing the returned DesignContext for 'instanceof' FacesDesignContext. If the file being designed is a JSF-specific backing file (eg Page1.jsp + Page1.java), the DesignContext will be an instanceof FacesDesignContext.
IMPLEMENTED BY CREATOR - This interface is implemented by Creator for use by the component (bean) author.
DesignContext,
DesignBean.getDesignContext()| Method Summary | |
boolean |
canCreateFacet(java.lang.String facetName,
java.lang.String type,
DesignBean parent)
Checks if a facet child of type 'facet' using a component of type 'type' on the faces bean 'parent' can be created. |
DesignBean |
createFacet(java.lang.String facetName,
java.lang.String type,
DesignBean parent)
Creates a facet child of type 'facet' using a component of type 'type' on the faces bean 'parent'. |
java.lang.String |
getBindingExpr(DesignBean toBean)
Returns a valid reference expression "#{...}" value to point to 'toBean' |
java.lang.String |
getBindingExpr(DesignBean toBean,
java.lang.String subExpr)
Returns a valid binding expression "#{...}" value to point to 'toBean' plus the sub- expression inside of toBean. |
FacesContext |
getFacesContext()
Returns the FacesContext that can be used by component designers to retrieve design-time Faces information. |
java.lang.String |
getReferenceName()
Returns the reference name to use in EL expressions to refer to this FacesDesignContext. |
boolean |
isValidBindingTarget(DesignBean toBean)
Returns whether a binding expression can be created to point to 'toBean' |
java.lang.Object |
resolveBindingExpr(java.lang.String expr)
Returns the live instance Object (not DesignBean) that the reference expression resolves to (at the moment called) |
ResolveResult |
resolveBindingExprToBean(java.lang.String expr)
Returns a result that is resolved to the last DesignBean that can be found, plus the remaining un-resolvable string (at least doesn't resolve to a DesignBean) |
| Methods inherited from interface com.sun.rave.designtime.markup.MarkupDesignContext |
convertCssStyleToMap, convertMapToCssStyle, getCssPreviewImage |
| Methods inherited from interface com.sun.rave.designtime.DesignContext |
addDesignContextListener, addResource, canCreateBean, canMoveBean, copyBeans, createBean, deleteBean, getBeanByName, getBeanForInstance, getBeans, getBeansOfType, getContextData, getDesignContextListeners, getProject, getRootContainer, moveBean, pasteBeans, removeDesignContextListener, resolveResource, setContextData |
| Methods inherited from interface com.sun.rave.designtime.DisplayItem |
getDescription, getDisplayName, getHelpKey, getLargeIcon, getSmallIcon |
| Method Detail |
public boolean canCreateFacet(java.lang.String facetName,
java.lang.String type,
DesignBean parent)
facetName - The desired facet name to createtype - The desired component type to create as a facetparent - The desired parent component to create a facet in
createFacet(String, String, DesignBean)
public DesignBean createFacet(java.lang.String facetName,
java.lang.String type,
DesignBean parent)
facetName - The desired facet name to createtype - The desired component type to create as a facetparent - The desired parent component to create a facet in
canCreateFacet(String, String, DesignBean)public java.lang.String getBindingExpr(DesignBean toBean)
toBean - the 'target' bean to create a value expression to point to
public java.lang.String getBindingExpr(DesignBean toBean,
java.lang.String subExpr)
toBean - the 'target' bean to create a value expression to point tosubExpr - An optional sub-expression
public FacesContext getFacesContext()
public java.lang.String getReferenceName()
public boolean isValidBindingTarget(DesignBean toBean)
toBean - the 'target' bean to create a value expression to point to
public java.lang.Object resolveBindingExpr(java.lang.String expr)
expr - The EL reference expression to evaluate
public ResolveResult resolveBindingExprToBean(java.lang.String expr)
expr - The EL reference expression to evaluate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||