| com.sun.rave.designtime.faces.FacesDesignContext
All known Subclasses: org.netbeans.modules.visualweb.insync.live.LiveUnit,
FacesDesignContext | public interface FacesDesignContext extends MarkupDesignContext(Code) | | 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.
author: Joe Nuxoll version: 1.0 See Also: DesignContext See Also: DesignBean.getDesignContext |
canCreateFacet | public boolean canCreateFacet(String facetName, String type, DesignBean parent)(Code) | | Checks if a facet child of type 'facet' using a component of type 'type' on the faces
bean 'parent' can be created. This method should be called as a test before a call to
createFacet.
Parameters: facetName - The desired facet name to create Parameters: type - The desired component type to create as a facet Parameters: parent - The desired parent component to create a facet in true if the creation of this facet would be successful, orfalse if not See Also: createFacet(String, String, DesignBean) |
createFacet | public DesignBean createFacet(String facetName, String type, DesignBean parent)(Code) | | Creates a facet child of type 'facet' using a component of type 'type' on the faces
bean 'parent'. Before this method is called, a test call should be made to canCreateFacet.
Parameters: facetName - The desired facet name to create Parameters: type - The desired component type to create as a facet Parameters: parent - The desired parent component to create a facet in The resulting DesignBean representing the new facet See Also: canCreateFacet(String, String, DesignBean) |
getBindingExpr | public String getBindingExpr(DesignBean toBean)(Code) | | Returns a valid reference expression "#{...}" value to point to 'toBean'
Parameters: toBean - the 'target' bean to create a value expression to point to A valid reference expression pointing to 'toBean' |
getBindingExpr | public String getBindingExpr(DesignBean toBean, String subExpr)(Code) | | Returns a valid binding expression "#{...}" value to point to 'toBean' plus the sub-
expression inside of toBean. For example, toBean might be button2 on Page1, and the
desired expression might be to get the value of button2. The call would then be
getReferenceExpr(button2, "value") --> "#{Page1.button2.value}"
Parameters: toBean - the 'target' bean to create a value expression to point to Parameters: subExpr - An optional sub-expression A valid reference expression pointing to 'toBean' plus the specified sub-expression |
getFacesContext | public FacesContext getFacesContext()(Code) | | Returns the FacesContext that can be used by component designers to retrieve design-time
Faces information.
The 'runtime' FacesContext running at design-time |
getReferenceName | public String getReferenceName()(Code) | | Returns the reference name to use in EL expressions to refer to this FacesDesignContext.
The String to use as a reference name (in JSF EL) |
isValidBindingTarget | public boolean isValidBindingTarget(DesignBean toBean)(Code) | | Returns whether a binding expression can be created to point to 'toBean'
Parameters: toBean - the 'target' bean to create a value expression to point to true if a binding expression can be created to point to 'toBean',false if not |
resolveBindingExpr | public Object resolveBindingExpr(String expr)(Code) | | Returns the live instance Object (not DesignBean) that the reference expression resolves to
(at the moment called)
Parameters: expr - The EL reference expression to evaluate the live instance Object (not DesignBean) that the reference expression resolves to |
resolveBindingExprToBean | public ResolveResult resolveBindingExprToBean(String expr)(Code) | | 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)
Parameters: expr - The EL reference expression to evaluate A ResolveResult, which includes the deepest DesignBean that could be resolved, plusthe remainder of the EL expression that could not be resolved to a DesignBean |
|
|