|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.search.ui.FilterComponent
com.arsdigita.search.ui.FilterWidget
This class provides a base class with infrastruture for generating XML for the filter & managing a state parameter in a form. Subclasses need only override the generateBodyXML method.
FilterComponent| 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 | |
FilterWidget(FilterType type,
ParameterModel param)
Creates a filter component |
|
FilterWidget(FilterType type,
String name)
Creates a filter component |
|
| Method Summary | |
protected void |
generateBodyXML(PageState state,
Element parent)
The impl of this methods adds information about any validation errors to the output. |
protected void |
generateErrorXML(PageState state,
Element parent)
|
Form |
getForm()
Returns the current form to which this component belongs |
ParameterModel |
getParameter()
Returns the component's state parameter |
Object |
getValue(PageState state)
Gets the current value of the state parameter |
void |
register(Form form,
FormModel model)
Registers form parameters with the form model for this form. |
| Methods inherited from class com.arsdigita.search.ui.FilterComponent |
generateXML |
| Methods inherited from class com.arsdigita.bebop.SimpleComponent |
children, clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, 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 |
public FilterWidget(FilterType type,
String name)
type - the filter typename - the state parameter name
public FilterWidget(FilterType type,
ParameterModel param)
type - the filter typeparam - the state parameter| Method Detail |
public void register(Form form,
FormModel model)
Componentform
sections and widgets
(components that have a connection to an HTML form). Other
components can implement it as a no-op.
register in interface Componentregister in class SimpleComponentpublic Form getForm()
public ParameterModel getParameter()
public Object getValue(PageState state)
protected void generateErrorXML(PageState state,
Element parent)
protected void generateBodyXML(PageState state,
Element parent)
generateBodyXML in class FilterComponent
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||