Coverage Report - org.seasar.uruma.binding.value.binder.TableValueBinder
 
Classes in this File Line Coverage Branch Coverage Complexity
TableValueBinder
33%
2/6
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.binding.value.binder;
 17  
 
 18  
 import org.eclipse.swt.widgets.Table;
 19  
 import org.seasar.framework.beans.PropertyDesc;
 20  
 import org.seasar.uruma.binding.value.ValueBinder;
 21  
 import org.seasar.uruma.component.UIComponent;
 22  
 
 23  
 /**
 24  
  * {@link Table} に対する {@link ValueBinder} です。<br />
 25  
  * {@link Table} に対してはバリュー・バインディングを行いません。<br />
 26  
  * tableItem を設定した table に対してバインディングを行おうとした場合の対処用です。<br />
 27  
  * 
 28  
  * @author y-komori
 29  
  */
 30  4
 public class TableValueBinder implements ValueBinder {
 31  
 
 32  
     public void exportSelection(final Object widget, final Object formObj,
 33  
             final PropertyDesc propDesc, final UIComponent uiComp) {
 34  
         // Do nothing.
 35  0
     }
 36  
 
 37  
     public void exportValue(final Object widget, final Object formObj,
 38  
             final PropertyDesc propDesc, final UIComponent uiComp) {
 39  
         // Do nothing.
 40  0
     }
 41  
 
 42  
     public Class<?> getWidgetType() {
 43  4
         return Table.class;
 44  
     }
 45  
 
 46  
     public void importSelection(final Object widget, final Object formObj,
 47  
             final PropertyDesc propDesc, final UIComponent uiComp) {
 48  
         // Do nothing.
 49  0
     }
 50  
 
 51  
     public void importValue(final Object widget, final Object formObj,
 52  
             final PropertyDesc propDes, final UIComponent uiCompc) {
 53  
         // Do nothing.
 54  0
     }
 55  
 }