org.openfaces.component.filter
Class ExpressionFilter
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
org.openfaces.component.OUIComponentBase
org.openfaces.component.filter.Filter
org.openfaces.component.filter.ExpressionFilter
- All Implemented Interfaces:
- java.util.EventListener, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, OUIComponent
- Direct Known Subclasses:
- ComboBoxFilter, TextSearchFilter
public abstract class ExpressionFilter
- extends Filter
- implements javax.faces.component.ValueHolder
Fields inherited from class javax.faces.component.UIComponent |
BEANINFO_KEY, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY |
Methods inherited from class org.openfaces.component.OUIComponentBase |
getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRolloverClass, getRolloverStyle, getStyle, getStyleClass, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRolloverClass, setRolloverStyle, setStyle, setStyleClass |
Methods inherited from class javax.faces.component.UIComponentBase |
addClientBehavior, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processValidators, queueEvent, restoreAttachedState, saveAttachedState, setId, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class javax.faces.component.UIComponent |
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getFamily, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getValueExpression, initialStateMarked, isCompositeComponent, isInView, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent, visitTree |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionFilter
public ExpressionFilter()
saveState
public java.lang.Object saveState(javax.faces.context.FacesContext context)
- Specified by:
saveState
in interface javax.faces.component.StateHolder
- Overrides:
saveState
in class Filter
restoreState
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object stateObj)
- Specified by:
restoreState
in interface javax.faces.component.StateHolder
- Overrides:
restoreState
in class Filter
isCaseSensitive
public boolean isCaseSensitive()
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive)
getConverter
public javax.faces.convert.Converter getConverter()
- Specified by:
getConverter
in interface javax.faces.component.ValueHolder
setConverter
public void setConverter(javax.faces.convert.Converter converter)
- Specified by:
setConverter
in interface javax.faces.component.ValueHolder
getPredefinedCriterionStyle
public java.lang.String getPredefinedCriterionStyle()
setPredefinedCriterionStyle
public void setPredefinedCriterionStyle(java.lang.String style)
getPredefinedCriterionClass
public java.lang.String getPredefinedCriterionClass()
setPredefinedCriterionClass
public void setPredefinedCriterionClass(java.lang.String styleClass)
getPromptText
public java.lang.String getPromptText()
setPromptText
public void setPromptText(java.lang.String promptText)
getPromptTextStyle
public java.lang.String getPromptTextStyle()
setPromptTextStyle
public void setPromptTextStyle(java.lang.String promptTextStyle)
getPromptTextClass
public java.lang.String getPromptTextClass()
setPromptTextClass
public void setPromptTextClass(java.lang.String promptTextClass)
getExpression
public java.lang.Object getExpression()
setExpression
public void setExpression(java.lang.Object expression)
- Expression should usually be a ValueExpression instance, though it is possible to specify a string value in
case of using the custom data providing mode, where expression identifies the filter for the user's custom data
providing code.
getAllRecordsText
public java.lang.String getAllRecordsText()
setAllRecordsText
public void setAllRecordsText(java.lang.String allRecordsText)
getEmptyRecordsText
public java.lang.String getEmptyRecordsText()
setEmptyRecordsText
public void setEmptyRecordsText(java.lang.String value)
getNonEmptyRecordsText
public java.lang.String getNonEmptyRecordsText()
setNonEmptyRecordsText
public void setNonEmptyRecordsText(java.lang.String value)
getOptionsExpression
public javax.el.ValueExpression getOptionsExpression()
setOptionsExpression
public void setOptionsExpression(javax.el.ValueExpression optionsExpression)
getWantsRowList
public boolean getWantsRowList()
- Specified by:
getWantsRowList
in class Filter
calculateAllCriterionNames
public java.util.Collection<java.lang.Object> calculateAllCriterionNames(javax.faces.context.FacesContext context)
updateValueFromBinding
public void updateValueFromBinding(javax.faces.context.FacesContext context)
- Specified by:
updateValueFromBinding
in class Filter
getPropertyLocator
public PropertyLocator getPropertyLocator()
getLocalValue
public java.lang.Object getLocalValue()
- Specified by:
getLocalValue
in interface javax.faces.component.ValueHolder
getAutoFilterDelay
public int getAutoFilterDelay()
setAutoFilterDelay
public void setAutoFilterDelay(int autoFilterDelay)
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interface javax.faces.component.ValueHolder
- Specified by:
getValue
in class Filter
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValue
in interface javax.faces.component.ValueHolder
- Specified by:
setValue
in class Filter
getCondition
public ExpressionFilterCriterion getCondition()
setCondition
public void setCondition(ExpressionFilterCriterion condition)
- Parameters:
condition
-
changeCriterion
public boolean changeCriterion(ExpressionFilterCriterion newCriterion)
- Parameters:
newCriterion
- new search criterion
- Returns:
- true if the new criterion results in the different filtering behavior as opposed to this filter's previous
criterion
processUpdates
public void processUpdates(javax.faces.context.FacesContext context)
- Overrides:
processUpdates
in class javax.faces.component.UIComponentBase
Copyright © 1998-2010 TeamDev Ltd. All Rights Reserved.