com.arsdigita.bebop.form
Class FormErrorDisplay
java.lang.Object
com.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.bebop.List
com.arsdigita.bebop.PageErrorDisplay
com.arsdigita.bebop.form.FormErrorDisplay
- All Implemented Interfaces:
- BebopConstants, Cloneable, Component, Lockable
- public class FormErrorDisplay
- extends PageErrorDisplay
Displays validation errors on the form which were added by the form's
validation listener. Does not handle errors in the individual parameters;
these errors are handled by the form's template. This class is not
a form widget, since it does not produce a value.
- Version:
- $Id: //core-platform/dev/src/com/arsdigita/bebop/form/FormErrorDisplay.java#8 $
- Author:
- Stanislav Freidin
Fields inherited from interface com.arsdigita.bebop.util.BebopConstants |
BEBOP_BORDER, BEBOP_BOXPANEL, BEBOP_CELL, BEBOP_CHECKBOX, BEBOP_CHECKBOXGROUP, BEBOP_COLUMNPANEL, BEBOP_DATE, BEBOP_DATETIME, BEBOP_DHTMLEDITOR, BEBOP_FORMERRORS, BEBOP_FORMWIDGET, BEBOP_GRIDPANEL, BEBOP_LIST, BEBOP_MULTISELECT, BEBOP_OPTION, BEBOP_PAD, BEBOP_PADFRAME, BEBOP_PANELROW, BEBOP_PORTAL, BEBOP_PORTLET, BEBOP_RADIO, BEBOP_RADIOGROUP, BEBOP_SEG_BODY, BEBOP_SEG_HEADER, BEBOP_SEG_PANEL, BEBOP_SEGMENT, BEBOP_SELECT, BEBOP_TABLE, BEBOP_TABLEBODY, BEBOP_TABLEROW, BEBOP_TEXTAREA |
Method Summary |
Form |
getForm()
Return the form whose errors are to be displayed |
protected boolean |
hasErrors(PageState state)
Determine if there are errors to display |
Methods inherited from class com.arsdigita.bebop.List |
addActionListener, addChangeListener, clearSelection, createChangeListener, fireActionEvent, fireStateChanged, getCellRenderer, getEmptyView, getLayout, getModel, getModelBuilder, getSelectedKey, getSelectionModel, getStateParamsAreRegistered, isSelected, register, removeActionListener, removeChangeListener, respond, setCellRenderer, setEmptyView, setLayout, setListData, setListData, setModelBuilder, setSelectedKey, setSelectionModel, setStateParamsAreRegistered |
Methods inherited from class com.arsdigita.bebop.SimpleComponent |
children, clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible |
versionId
public static final String versionId
- See Also:
- Constant Field Values
FormErrorDisplay
public FormErrorDisplay(Form form)
- Construct a new
FormErrorDisplay
- Parameters:
form
- The parent form whose errors will be displayed by
this widget
getForm
public final Form getForm()
- Return the form whose errors are to be displayed
- Returns:
- the form whose errors are to be displayed
hasErrors
protected boolean hasErrors(PageState state)
- Determine if there are errors to display
- Overrides:
hasErrors
in class PageErrorDisplay
- Parameters:
state
- the current page state
- Returns:
- true if there are any errors to display; false otherwise
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC