Coverage Report - org.seasar.uruma.component.jface.RowLayoutInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
RowLayoutInfo
57%
4/7
N/A
0
 
 1  
 /*
 2  
  * Copyright 2004-2008 the Seasar Foundation and the Others.
 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
 7  
  *
 8  
  *     http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
 13  
  * either express or implied. See the License for the specific language
 14  
  * governing permissions and limitations under the License.
 15  
  */
 16  
 package org.seasar.uruma.component.jface;
 17  
 
 18  
 import org.eclipse.swt.layout.RowLayout;
 19  
 import org.seasar.uruma.annotation.ComponentAttribute;
 20  
 import org.seasar.uruma.annotation.ComponentElement;
 21  
 import org.seasar.uruma.annotation.FieldDescription;
 22  
 import org.seasar.uruma.annotation.RenderingPolicy;
 23  
 import org.seasar.uruma.annotation.RenderingPolicy.ConversionType;
 24  
 import org.seasar.uruma.annotation.RenderingPolicy.TargetType;
 25  
 import org.seasar.uruma.component.LayoutInfo;
 26  
 import org.seasar.uruma.component.base.AbstractUIElement;
 27  
 
 28  
 /**
 29  
  * {@link RowLayout} に関する情報を保持するクラスです。<br />
 30  
  * 
 31  
  * @author y-komori
 32  
  */
 33  
 @ComponentElement
 34  520
 public class RowLayoutInfo extends AbstractUIElement implements
 35  
         LayoutInfo<RowDataInfo> {
 36  
     private RowDataInfo commonRowDataInfo;
 37  
 
 38  
     @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.BOOLEAN)
 39  
     @ComponentAttribute
 40  
     @FieldDescription("fill 属性")
 41  
     public String fill;
 42  
 
 43  
     @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.BOOLEAN)
 44  
     @ComponentAttribute
 45  
     @FieldDescription("justify 属性")
 46  
     public String justify;
 47  
 
 48  
     @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.INT)
 49  
     @ComponentAttribute
 50  
     @FieldDescription("marginBottom 属性")
 51  
     public String marginBottom;
 52  
 
 53  
     @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.INT)
 54  
     @ComponentAttribute
 55  
     @FieldDescription("marginHeight 属性")
 56  
     public String marginHeight;
 57  
 
 58  
     @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.INT)
 59  
     @ComponentAttribute
 60  
     @FieldDescription("marginLeft 属性")
 61  
     public String marginLeft;
 62  
 
 63  
     @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.INT)
 64  
     @ComponentAttribute
 65  
     @FieldDescription("marginRight 属性")
 66  
     public String marginRight;
 67  
 
 68  
     @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.INT)
 69  
     @ComponentAttribute
 70  
     @FieldDescription("marginTop 属性")
 71  
     public String marginTop;
 72  
 
 73  
     @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.INT)
 74  
     @ComponentAttribute
 75  
     @FieldDescription("marginWidth 属性")
 76  
     public String marginWidth;
 77  
 
 78  
     @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.BOOLEAN)
 79  
     @ComponentAttribute
 80  
     @FieldDescription("pack 属性")
 81  
     public String pack;
 82  
 
 83  
     @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.INT)
 84  
     @ComponentAttribute
 85  
     @FieldDescription("spacing 属性")
 86  
     public String spacing;
 87  
 
 88  
     @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.SWT_CONST)
 89  
     @ComponentAttribute
 90  
     @FieldDescription("conversionType 属性")
 91  
     public String conversionType;
 92  
 
 93  
     @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.SWT_CONST)
 94  
     @ComponentAttribute
 95  
     @FieldDescription("type 属性")
 96  
     public String type;
 97  
 
 98  
     @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.BOOLEAN)
 99  
     @ComponentAttribute
 100  
     @FieldDescription("wrap 属性")
 101  
     public String wrap;
 102  
 
 103  
     /**
 104  
      * commonRowDataInfo を取得します。<br />
 105  
      * 
 106  
      * @return commonRowDataInfo
 107  
      */
 108  
     public RowDataInfo getCommonRowDataInfo() {
 109  0
         return this.commonRowDataInfo;
 110  
     }
 111  
 
 112  
     /**
 113  
      * commonRowDataInfo を設定します。<br />
 114  
      * 
 115  
      * @param commonRowDataInfo
 116  
      *            <code>commonRowDataInfo</code> オブジェクト
 117  
      */
 118  
     public void setCommonRowDataInfo(final RowDataInfo commonRowDataInfo) {
 119  0
         this.commonRowDataInfo = commonRowDataInfo;
 120  0
     }
 121  
 
 122  
     /*
 123  
      * @see org.seasar.jface.component.LayoutInfo#getCommonLayoutDataInfo()
 124  
      */
 125  
     public RowDataInfo getCommonLayoutDataInfo() {
 126  404
         return commonRowDataInfo;
 127  
     }
 128  
 
 129  
     /*
 130  
      * @see org.seasar.jface.component.LayoutInfo#setCommonLayoutDataInfo(org.seasar.jface.component.LayoutDataInfo)
 131  
      */
 132  
     public void setCommonLayoutDataInfo(final RowDataInfo layoutDataInfo) {
 133  12
         this.commonRowDataInfo = layoutDataInfo;
 134  12
     }
 135  
 }