cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel Widget.java
Date Wed, 28 Apr 2004 13:09:59 GMT
bruno       2004/04/28 06:09:59

  Modified:    src/blocks/forms/java/org/apache/cocoon/forms/formmodel
                        Widget.java
  Log:
  added the methods addValidator and removeValidator
  (needed this in adding validator support to scriptablewidget)
  
  Revision  Changes    Path
  1.9       +6 -1      cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/Widget.java
  
  Index: Widget.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/Widget.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Widget.java	23 Apr 2004 23:34:56 -0000	1.8
  +++ Widget.java	28 Apr 2004 13:09:59 -0000	1.9
  @@ -16,6 +16,7 @@
   package org.apache.cocoon.forms.formmodel;
   
   import org.apache.cocoon.forms.FormContext;
  +import org.apache.cocoon.forms.validation.WidgetValidator;
   import org.apache.cocoon.forms.event.WidgetEvent;
   import org.xml.sax.ContentHandler;
   import org.xml.sax.SAXException;
  @@ -113,6 +114,10 @@
        */
       public boolean validate(FormContext formContext);
   
  +    public void addValidator(WidgetValidator validator);
  +
  +    public boolean removeValidator(WidgetValidator validator);
  +    
       /**
        * Generates an XML representation of this widget. The startDocument and endDocument
        * SAX events will not be called. It is assumed that the prefix for the CForms namespace
  
  
  

Mime
View raw message