Coverage Report - org.seasar.uruma.component.jface.MenuItemComponent
 
Classes in this File Line Coverage Branch Coverage Complexity
MenuItemComponent
100%
3/3
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.seasar.uruma.annotation.ComponentAttribute;
 19  
 import org.seasar.uruma.annotation.ComponentElement;
 20  
 import org.seasar.uruma.annotation.FieldDescription;
 21  
 import org.seasar.uruma.annotation.RenderingPolicy;
 22  
 import org.seasar.uruma.annotation.RenderingPolicy.TargetType;
 23  
 import org.seasar.uruma.component.EnablesDependable;
 24  
 import org.seasar.uruma.component.base.AbstractItemComponent;
 25  
 
 26  
 /**
 27  
  * メニュー項目情報を保持するためのコンポーネントです。<br />
 28  
  * 
 29  
  * @author bskuroneko
 30  
  * @author y-komori
 31  
  */
 32  
 @ComponentElement
 33  168
 public class MenuItemComponent extends AbstractItemComponent implements
 34  
         EnablesDependable {
 35  
 
 36  
     /**
 37  
      * プッシュボタンスタイルを表す文字列です。<br />
 38  
      */
 39  
     public static final String PUSH = "PUSH";
 40  
 
 41  
     /**
 42  
      * ラジオボタンスタイルを表す文字列です。<br />
 43  
      */
 44  
     public static final String RADIO = "RADIO";
 45  
 
 46  
     /**
 47  
      * チェックボックススタイルを表す文字列です。<br />
 48  
      */
 49  
     public static final String CHECK = "CHECK";
 50  
 
 51  
     /**
 52  
      * アクセラレータです。<br />
 53  
      */
 54  
     @RenderingPolicy(targetType = TargetType.NONE)
 55  
     @ComponentAttribute
 56  
     @FieldDescription("アクセラレータ")
 57  
     public String accelerator;
 58  
 
 59  
     /**
 60  
      * イネーブル状態です。<br />
 61  
      */
 62  
     @RenderingPolicy(targetType = TargetType.NONE)
 63  
     @ComponentAttribute
 64  
     @FieldDescription("イネーブル状態")
 65  
     public String enabled;
 66  
 
 67  
     /**
 68  
      * 選択状態です。<br />
 69  
      */
 70  
     @RenderingPolicy(targetType = TargetType.NONE)
 71  
     @ComponentAttribute
 72  
     @FieldDescription("選択状態")
 73  
     public String selection;
 74  
 
 75  
     /**
 76  
      * 選択不可時のイメージパスです。<br />
 77  
      */
 78  
     @RenderingPolicy(targetType = TargetType.NONE)
 79  
     @ComponentAttribute
 80  
     @FieldDescription("選択不可時のイメージパス")
 81  
     public String disabledImage;
 82  
 
 83  
     /**
 84  
      * 選択時のイメージパスです。<br />
 85  
      */
 86  
     @RenderingPolicy(targetType = TargetType.NONE)
 87  
     @ComponentAttribute
 88  
     @FieldDescription("選択時のイメージパス")
 89  
     public String hoverImage;
 90  
 
 91  
     /**
 92  
      * 説明テキストです。
 93  
      */
 94  
     @RenderingPolicy(targetType = TargetType.NONE)
 95  
     @ComponentAttribute
 96  
     @FieldDescription("説明テキスト")
 97  
     public String description;
 98  
 
 99  
     /**
 100  
      * 依存先コンポーネントの ID です。
 101  
      */
 102  
     @RenderingPolicy(targetType = TargetType.NONE)
 103  
     @ComponentAttribute
 104  
     @FieldDescription("依存先コンポーネントID")
 105  
     public String enablesDependingId;
 106  
 
 107  
     /**
 108  
      * 依存方法です。
 109  
      */
 110  
     @RenderingPolicy(targetType = TargetType.NONE)
 111  
     @ComponentAttribute
 112  
     @FieldDescription("依存方法")
 113  
     public String enablesFor;
 114  
 
 115  
     /*
 116  
      * @see org.seasar.uruma.component.EnablesDependable#getEnablesDependingId()
 117  
      */
 118  
     public String getEnablesDependingId() {
 119  108
         return this.enablesDependingId;
 120  
     }
 121  
 
 122  
     /*
 123  
      * @see org.seasar.uruma.component.EnablesDependable#getEnablesForType()
 124  
      */
 125  
     public String getEnablesFor() {
 126  108
         return this.enablesFor;
 127  
     }
 128  
 }