org.openfaces.component.filter
Class CompositeFilter

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.openfaces.component.OUIComponentBase
              extended by org.openfaces.component.filter.Filter
                  extended by org.openfaces.component.filter.CompositeFilter
All Implemented Interfaces:
java.util.EventListener, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, OUIComponent

public class CompositeFilter
extends Filter


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String RENDERER_TYPE
           
 
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
 
Constructor Summary
CompositeFilter()
           
 
Method Summary
 FilterRow addFilterRow()
           
 void clear()
           
 boolean getAutoDetect()
           
 javax.faces.convert.Converter getConditionConverter()
           
 java.lang.String getFamily()
           
 java.util.List<java.lang.String> getFilterPropertiesTitles()
           
 FilterProperty getFilterPropertyByPropertyLocator(PropertyLocator propertyLocator)
           
 FilterProperty getFilterPropertyByTitle(java.lang.String title)
           
 FilterRow getFilterRow(int index)
           
 java.util.Collection<FilterRow> getFilterRows()
           
 java.util.Map<java.lang.String,java.lang.String> getLabels()
           
 FilterRow getLastRow()
           
 java.lang.String getNoFilterMessage()
           
 javax.el.ValueExpression getNoFilterRowRendererExpression()
           
 java.util.EnumSet<FilterCondition> getOperations(FilterProperty filterProperty)
           
 java.lang.Object getValue()
           
 boolean getWantsRowList()
           
 boolean isEmpty()
           
 void processUpdates(javax.faces.context.FacesContext context)
           
 void removeFilterRow(int index)
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object stateObj)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setAutoDetect(boolean autoDetect)
           
 void setConditionConverter(javax.faces.convert.Converter conditionConverter)
           
 void setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
           
 void setNoFilterMessage(java.lang.String noFilterMessage)
           
 void setValue(CompositeFilterCriterion value)
           
 void setValue(java.lang.Object value)
           
 void updateValueFromBinding(javax.faces.context.FacesContext context)
           
 
Methods inherited from class org.openfaces.component.filter.Filter
getFilteredComponent, getFor, isAcceptingAllRecords, setFor, setParent
 
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, 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
 

Field Detail

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

RENDERER_TYPE

public static final java.lang.String RENDERER_TYPE
See Also:
Constant Field Values
Constructor Detail

CompositeFilter

public CompositeFilter()
Method Detail

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

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

getValue

public java.lang.Object getValue()
Specified by:
getValue in class Filter

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in class Filter

setValue

public void setValue(CompositeFilterCriterion value)

getNoFilterMessage

public java.lang.String getNoFilterMessage()

setNoFilterMessage

public void setNoFilterMessage(java.lang.String noFilterMessage)

getAutoDetect

public boolean getAutoDetect()

setAutoDetect

public void setAutoDetect(boolean autoDetect)

getFilterPropertiesTitles

public java.util.List<java.lang.String> getFilterPropertiesTitles()

getOperations

public java.util.EnumSet<FilterCondition> getOperations(FilterProperty filterProperty)

getFilterPropertyByTitle

public FilterProperty getFilterPropertyByTitle(java.lang.String title)

getFilterPropertyByPropertyLocator

public FilterProperty getFilterPropertyByPropertyLocator(PropertyLocator propertyLocator)

getLastRow

public FilterRow getLastRow()

addFilterRow

public FilterRow addFilterRow()

removeFilterRow

public void removeFilterRow(int index)

getFilterRow

public FilterRow getFilterRow(int index)

clear

public void clear()

processUpdates

public void processUpdates(javax.faces.context.FacesContext context)
Overrides:
processUpdates in class javax.faces.component.UIComponentBase

updateValueFromBinding

public void updateValueFromBinding(javax.faces.context.FacesContext context)
Specified by:
updateValueFromBinding in class Filter

getWantsRowList

public boolean getWantsRowList()
Specified by:
getWantsRowList in class Filter

getFilterRows

public java.util.Collection<FilterRow> getFilterRows()

isEmpty

public boolean isEmpty()

getNoFilterRowRendererExpression

public javax.el.ValueExpression getNoFilterRowRendererExpression()

getLabels

public java.util.Map<java.lang.String,java.lang.String> getLabels()

setLabels

public void setLabels(java.util.Map<java.lang.String,java.lang.String> labels)

getConditionConverter

public javax.faces.convert.Converter getConditionConverter()

setConditionConverter

public void setConditionConverter(javax.faces.convert.Converter conditionConverter)


Copyright © 1998-2010 TeamDev Ltd. All Rights Reserved.