You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2004/01/22 17:53:57 UTC

cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/fom FOM_WebContinuation.java

vgritsenko    2004/01/22 08:53:57

  Modified:    src/java/org/apache/cocoon/components/flow/javascript/fom
                        FOM_WebContinuation.java
  Log:
  Add debug() function to the FOM WebContinuation
  
  Revision  Changes    Path
  1.3       +22 -14    cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_WebContinuation.java
  
  Index: FOM_WebContinuation.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_WebContinuation.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FOM_WebContinuation.java	21 Jul 2003 23:13:00 -0000	1.2
  +++ FOM_WebContinuation.java	22 Jan 2004 16:53:57 -0000	1.3
  @@ -60,41 +60,45 @@
   import org.mozilla.javascript.ScriptableObject;
   import org.mozilla.javascript.Wrapper;
   
  +/**
  + *
  + * @version CVS $Id$
  + */
   public class FOM_WebContinuation extends ScriptableObject {
  -    
  +
       WebContinuation wk;
  -    
  +
       public FOM_WebContinuation() {
       }
  -    
  +
       public FOM_WebContinuation(Object wk) {
           if (wk instanceof Wrapper) {
               wk = ((Wrapper)wk).unwrap();
           }
           this.wk = (WebContinuation)wk;
       }
  -    
  +
       public String getClassName() {
           return "FOM_WebContinuation";
       }
  -    
  +
       public String jsGet_id() {
           return wk.getId();
       }
  -    
  +
       public FOM_WebContinuation jsFunction_getParent() {
           WebContinuation parent = wk.getParentContinuation();
           if (parent == null) return null;
           FOM_WebContinuation pwk = new FOM_WebContinuation(parent);
           pwk.setParentScope(getParentScope());
  -        pwk.setPrototype(getClassPrototype(getParentScope(), 
  +        pwk.setPrototype(getClassPrototype(getParentScope(),
                                              pwk.getClassName()));
           return pwk;
       }
  -    
  +
       public NativeArray jsFunction_getChildren() throws Exception {
           List list = wk.getChildren();
  -        NativeArray arr = 
  +        NativeArray arr =
               (NativeArray)org.mozilla.javascript.Context.getCurrentContext().newObject(getParentScope(),
                                                                                         "Array",
                                                                                         new Object[]{new Integer(list.size())});
  @@ -103,25 +107,29 @@
               WebContinuation child = (WebContinuation)iter.next();
               FOM_WebContinuation cwk = new FOM_WebContinuation(child);
               cwk.setParentScope(getParentScope());
  -            cwk.setPrototype(getClassPrototype(getParentScope(), 
  +            cwk.setPrototype(getClassPrototype(getParentScope(),
                                                  cwk.getClassName()));
               arr.put(i, arr, cwk);
           }
           return arr;
       }
  -    
  +
       public void jsFunction_invalidate() throws Exception {
           ContinuationsManager contMgr = null;
  -        FOM_Cocoon cocoon = 
  +        FOM_Cocoon cocoon =
               (FOM_Cocoon)getProperty(getTopLevelScope(this),
                                       "cocoon");
  -        ComponentManager componentManager = 
  +        ComponentManager componentManager =
               cocoon.getComponentManager();
           contMgr = (ContinuationsManager)
               componentManager.lookup(ContinuationsManager.ROLE);
           contMgr.invalidateWebContinuation(wk);
       }
  -    
  +
  +    public void jsFunction_display() {
  +        wk.display();
  +    }
  +
       public WebContinuation getWebContinuation() {
           return wk;
       }
  
  
  

Re: cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/fom FOM_WebContinuation.java

Posted by Vadim Gritsenko <va...@reverycodes.com>.
vgritsenko@apache.org wrote:

>vgritsenko    2004/01/22 08:53:57
>
>  Modified:    src/java/org/apache/cocoon/components/flow/javascript/fom
>                        FOM_WebContinuation.java
>  Log:
>  Add debug() function to the FOM WebContinuation
>  
>

Typo. I mean, display().

Vadim