com.arsdigita.bebop.form
Class FormErrorDisplay

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.List
              extended bycom.arsdigita.bebop.PageErrorDisplay
                  extended bycom.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

Nested Class Summary
 
Nested classes inherited from class com.arsdigita.bebop.PageErrorDisplay
PageErrorDisplay.StringIteratorModel
 
Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.bebop.List
EMPTY_MODEL, HORIZONTAL, SELECT_EVENT, SELECTED, VERTICAL
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr
 
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
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
FormErrorDisplay(Form form)
          Construct a new FormErrorDisplay
 
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.PageErrorDisplay
generateXML, getTextColor, setTextColor
 
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
 
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
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

FormErrorDisplay

public FormErrorDisplay(Form form)
Construct a new FormErrorDisplay

Parameters:
form - The parent form whose errors will be displayed by this widget
Method Detail

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