Coverage Report - org.apache.tapestry.form.IOptionRenderer
 
Classes in this File Line Coverage Branch Coverage Complexity
IOptionRenderer
N/A
N/A
1
 
 1  
 // Copyright 2004, 2005 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  
 package org.apache.tapestry.form;
 15  
 
 16  
 import org.apache.tapestry.IMarkupWriter;
 17  
 import org.apache.tapestry.IRequestCycle;
 18  
 
 19  
 
 20  
 /**
 21  
  * Interface used by {@link PropertySelection} to render each option.
 22  
  */
 23  
 public interface IOptionRenderer
 24  
 {
 25  
 
 26  
     /**
 27  
      * Called after the initial <code>&lt;select&gt;</code> tag has been rendered. It is expected that implementations
 28  
      * will then do whatever is necessary to render each option available in the model and defer writing the end 
 29  
      * <code>&lt;/select&gt;</code> to the calling component.
 30  
      * 
 31  
      * @param writer
 32  
      *          The markup writer to use.
 33  
      * @param cycle
 34  
      *          The associated cycle.
 35  
      * @param model
 36  
      *          Model containing values / labels / etc..
 37  
      * @param selected
 38  
      *          The currently selected object value, if any. Will be null if no value is currently selected.
 39  
      */
 40  
     void renderOptions(IMarkupWriter writer, IRequestCycle cycle, IPropertySelectionModel model, Object selected);
 41  
 }