Package javax.faces.component.search
Class SearchKeywordContext
java.lang.Object
javax.faces.component.search.SearchKeywordContext
SearchKeywordContext
provides context information that may be useful to
SearchKeywordResolver.resolve(javax.faces.component.search.SearchKeywordContext, javax.faces.component.UIComponent, java.lang.String)
implementations.
- Since:
- 2.3
-
Constructor Summary
ConstructorDescriptionSearchKeywordContext
(SearchExpressionContext searchExpressionContext, ContextCallback callback, String remainingExpression) Construct a new context with the given arguments. -
Method Summary
Modifier and TypeMethodDescriptionReturns theContextCallback
for the current request.Returns the remaining expression for the current request.Returns theSearchExpressionContext
for the current request.void
invokeContextCallback
(UIComponent target) This method will be called by an implementation ofSearchKeywordResolver.resolve(javax.faces.component.search.SearchKeywordContext, javax.faces.component.UIComponent, java.lang.String)
with the resolved component for the keyword.boolean
Returns if the keyword was resolved.void
setKeywordResolved
(boolean keywordResolved) Sets if the keyword was resolved.
-
Constructor Details
-
SearchKeywordContext
public SearchKeywordContext(SearchExpressionContext searchExpressionContext, ContextCallback callback, String remainingExpression) Construct a new context with the given arguments.
- Parameters:
searchExpressionContext
- theSearchExpressionContext
for the current request.callback
- theContextCallback
.remainingExpression
- the remaining expression.
-
-
Method Details
-
invokeContextCallback
This method will be called by an implementation of
SearchKeywordResolver.resolve(javax.faces.component.search.SearchKeywordContext, javax.faces.component.UIComponent, java.lang.String)
with the resolved component for the keyword.- Parameters:
target
- the resolvedUIComponent
.- Since:
- 2.3
-
getSearchExpressionContext
Returns the
SearchExpressionContext
for the current request.- Returns:
- the
SearchExpressionContext
. - Since:
- 2.3
-
getCallback
Returns the
ContextCallback
for the current request.- Returns:
- the
ContextCallback
. - Since:
- 2.3
-
getRemainingExpression
Returns the remaining expression for the current request.
- Returns:
- the remaining expression.
- Since:
- 2.3
-
isKeywordResolved
public boolean isKeywordResolved()Returns if the keyword was resolved.
- Returns:
- if the keyword was resolved.
- Since:
- 2.3
-
setKeywordResolved
public void setKeywordResolved(boolean keywordResolved) Sets if the keyword was resolved.
- Parameters:
keywordResolved
- if the keyword was resolved.- Since:
- 2.3
-