com.arsdigita.search.ui
Class FilterComponent

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.search.ui.FilterComponent
All Implemented Interfaces:
Cloneable, Component, FilterGenerator, Lockable
Direct Known Subclasses:
FilterWidget

public abstract class FilterComponent
extends SimpleComponent
implements FilterGenerator

This class provides a base for filter components which don't have any form state parameters.

See Also:
FilterGenerator

Field Summary
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr, versionId
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
FilterComponent(FilterType type)
          Creates a filter component
 
Method Summary
protected abstract  void generateBodyXML(PageState state, Element parent)
          THis method must generate the body of the component, typically a list of possible values for the filter
 void generateXML(PageState state, Element parent)
          Adds [J]DOM nodes for this component.
 
Methods inherited from class com.arsdigita.bebop.SimpleComponent
children, clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, register, respond, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible
 
Methods inherited from class com.arsdigita.bebop.Completable
addCompletionListener, fireCompletionEvent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arsdigita.search.ui.FilterGenerator
getFilter
 

Constructor Detail

FilterComponent

public FilterComponent(FilterType type)
Creates a filter component

Parameters:
type - the filter type
Method Detail

generateXML

public void generateXML(PageState state,
                        Element parent)
Description copied from class: SimpleComponent
Adds [J]DOM nodes for this component. Specifically for base class SimpleComponent, does nothing.

Specified by:
generateXML in interface Component
Overrides:
generateXML in class SimpleComponent

generateBodyXML

protected abstract void generateBodyXML(PageState state,
                                        Element parent)
THis method must generate the body of the component, typically a list of possible values for the filter



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC