Coverage Report - org.apache.tapestry.javascript.JavascriptManager
 
Classes in this File Line Coverage Branch Coverage Complexity
JavascriptManager
N/A 
N/A 
1
 
 1  
 // Copyright 2007 The Apache Software Foundation
 2  
 //
 3  
 // Licensed under the Apache License, Version 2.0 (the "License");
 4  
 // you may not use this file except in compliance with the License.
 5  
 // You may obtain a copy of the License at
 6  
 //
 7  
 //     http://www.apache.org/licenses/LICENSE-2.0
 8  
 //
 9  
 // Unless required by applicable law or agreed to in writing, software
 10  
 // distributed under the License is distributed on an "AS IS" BASIS,
 11  
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12  
 // See the License for the specific language governing permissions and
 13  
 // limitations under the License.
 14  
 
 15  
 package org.apache.tapestry.javascript;
 16  
 
 17  
 import java.util.List;
 18  
 
 19  
 import org.apache.tapestry.IAsset;
 20  
 
 21  
 /**
 22  
  * Manages javascript files of 3rd party libraries.
 23  
  */
 24  
 public interface JavascriptManager
 25  
 {
 26  
     /**
 27  
      * The javascript files that should always be included.
 28  
      *
 29  
      * @return A not-null (but possibly empty) list of {@link IAsset}s.
 30  
      */
 31  
     List getAssets();
 32  
 
 33  
     IAsset getFirstAsset();
 34  
 
 35  
     /**
 36  
      * The javascript files that provide form-related functionality.
 37  
      * They're dynamically included when the page contains forms.
 38  
      *
 39  
      * @return A not-null (but possibly empty) list of {@link IAsset}s.
 40  
      */
 41  
     List getFormAssets();
 42  
     
 43  
     IAsset getFirstFormAsset();
 44  
 
 45  
     /**
 46  
      * The javascript files that provide widget-related functionality.
 47  
      * They're dynamically included when the page contains widgets.
 48  
      *
 49  
      * @return A not-null (but possibly empty) list of {@link IAsset}s.
 50  
      */
 51  
     List getWidgetAssets();
 52  
 
 53  
     IAsset getFirstWidgetAsset();
 54  
 
 55  
     /**
 56  
      * The base path to the javascript files.
 57  
      *
 58  
      * @return if null, it is left unused.
 59  
      */
 60  
     IAsset getPath();
 61  
 
 62  
     /**
 63  
      * The tapestry js file.
 64  
      *
 65  
      * @return if null then no tapestry file is included.
 66  
      */
 67  
     IAsset getTapestryAsset();
 68  
 
 69  
     /**
 70  
      * The base path to the tapestry js files.
 71  
      * 
 72  
      * @return if null, it is left unused.
 73  
      */
 74  
     IAsset getTapestryPath();
 75  
 }