Coverage Report - org.trails.component.EditProperties
 
Classes in this File Line Coverage Branch Coverage Complexity
EditProperties
50% 
N/A 
0
 
 1  
 /*
 2  
  * Copyright 2004 Chris Nelson
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 7  
  * Unless required by applicable law or agreed to in writing,
 8  
  * software distributed under the License is distributed on an "AS IS" BASIS,
 9  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 10  
  * See the License for the specific language governing permissions and limitations under the License.
 11  
  */
 12  
 package org.trails.component;
 13  
 
 14  
 import org.apache.tapestry.annotations.InjectObject;
 15  
 import org.apache.tapestry.components.Block;
 16  
 import org.trails.descriptor.BlockFinder;
 17  
 import org.trails.descriptor.IPropertyDescriptor;
 18  
 
 19  
 /*
 20  
  * Created on Sep 30, 2004
 21  
  *
 22  
  * TODO To change the template for this generated file go to
 23  
  * Window - Preferences - Java - Code Style - Code Templates
 24  
  */
 25  
 
 26  
 /**
 27  
  * @author fus8882
 28  
  *         <p/>
 29  
  *         TODO To change the template for this generated type comment go to Window -
 30  
  *         Preferences - Java - Code Style - Code Templates
 31  
  */
 32  1
 public abstract class EditProperties extends ObjectEditComponent
 33  
 {
 34  
         @InjectObject("spring:editorService")
 35  
         public abstract BlockFinder getBlockFinder();
 36  
 
 37  
         /**
 38  
          * @return Returns the current property.
 39  
          */
 40  
         public abstract IPropertyDescriptor getProperty();
 41  
 
 42  
         public Block getBlock()
 43  
         {
 44  0
                 return getBlockFinder().findBlock(getPage().getRequestCycle(), getProperty());
 45  
         }
 46  
 }