|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.primefaces.expression.SearchExpressionFacade
public class SearchExpressionFacade
Simple facade for the whole Search Expression module.
Constructor Summary | |
---|---|
SearchExpressionFacade()
|
Method Summary | |
---|---|
static javax.faces.component.UIComponent |
resolveComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expression)
Resolves a UIComponent for the given expression. |
static String |
resolveComponentForClient(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expression)
Resolves a UIComponent clientId and/or passtrough expression for the given expression. |
static String |
resolveComponentForClient(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expression,
boolean checkForRenderer)
Resolves a UIComponent clientId and/or passtrough expression for the given expression. |
static List<javax.faces.component.UIComponent> |
resolveComponents(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expressions)
Resolves a list of UIComponent s for the given expression or expressions. |
static String |
resolveComponentsForClient(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expressions)
Resolves a list of UIComponent clientIds and/or passtrough expressions for the given expression or expressions. |
static String |
resolveComponentsForClient(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expressions,
boolean checkForRenderer)
Resolves a list of UIComponent clientIds and/or passtrough expressions for the given expression or expressions. |
static String |
resolveComponentsForClientWithParentFallback(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expressions)
Resolves a list of UIComponent clientIds and/or passtrough expressions for the given expression or expressions. |
static String |
resolveComponentsForClientWithParentFallback(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expressions,
boolean checkForRenderer)
Resolves a list of UIComponent clientIds and/or passtrough expressions for the given expression or expressions. |
static javax.faces.component.UIComponent |
resolveComponentWithParentFallback(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expression)
Resolves a UIComponent for the given expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchExpressionFacade()
Method Detail |
---|
public static List<javax.faces.component.UIComponent> resolveComponents(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expressions)
UIComponent
s for the given expression or expressions.
context
- The FacesContext
.source
- The source component. E.g. a button.expression
- The search expression.
List
with resolved UIComponent
s.public static String resolveComponentsForClient(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expressions)
UIComponent
clientIds and/or passtrough expressions for the given expression or expressions.
context
- The FacesContext
.source
- The source component. E.g. a button.expression
- The search expression.
List
with resolved clientIds and/or passtrough expression (like PFS, widgetVar).public static String resolveComponentsForClient(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expressions, boolean checkForRenderer)
UIComponent
clientIds and/or passtrough expressions for the given expression or expressions.
context
- The FacesContext
.source
- The source component. E.g. a button.expression
- The search expression.checkForRenderer
- Checks if the UIComponent
has a renderer or not.
This check is currently only useful for the update attributes, as a component without renderer can't be updated.
List
with resolved clientIds and/or passtrough expression (like PFS, widgetVar).public static String resolveComponentsForClientWithParentFallback(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expressions)
UIComponent
clientIds and/or passtrough expressions for the given expression or expressions.
If the expressions are null
or empty, the parent's clientId will be returned.
context
- The FacesContext
.source
- The source component. E.g. a button.expression
- The search expression.
List
with resolved clientIds and/or passtrough expression (like PFS, widgetVar).public static String resolveComponentsForClientWithParentFallback(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expressions, boolean checkForRenderer)
UIComponent
clientIds and/or passtrough expressions for the given expression or expressions.
If the expressions are null
or empty, the parent's clientId will be returned.
context
- The FacesContext
.source
- The source component. E.g. a button.expression
- The search expression.checkForRenderer
- Checks if the UIComponent
has a renderer or not.
This check is currently only useful for the update attributes, as a component without renderer can't be updated.
List
with resolved clientIds and/or passtrough expression (like PFS, widgetVar).public static String resolveComponentForClient(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expression)
UIComponent
clientId and/or passtrough expression for the given expression.
context
- The FacesContext
.source
- The source component. E.g. a button.expression
- The search expression.
public static String resolveComponentForClient(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expression, boolean checkForRenderer)
UIComponent
clientId and/or passtrough expression for the given expression.
context
- The FacesContext
.source
- The source component. E.g. a button.expression
- The search expression.checkForRenderer
- Checks if the UIComponent
has a renderer or not.
This check is currently only useful for the update attributes, as a component without renderer can't be updated.
public static javax.faces.component.UIComponent resolveComponentWithParentFallback(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expression)
UIComponent
for the given expression.
If the expression is null
or empty, the parent's clientId will be returned.
context
- The FacesContext
.source
- The source component. E.g. a button.expression
- The search expression.fallbackToParent
- If the expression is null, the parent component will be used.
UIComponent
or null
.public static javax.faces.component.UIComponent resolveComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expression)
UIComponent
for the given expression.
context
- The FacesContext
.source
- The source component. E.g. a button.expression
- The search expression.
UIComponent
or null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |