本文整理汇总了Java中org.kuali.rice.krad.uif.field.DataFieldBase类的典型用法代码示例。如果您正苦于以下问题:Java DataFieldBase类的具体用法?Java DataFieldBase怎么用?Java DataFieldBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DataFieldBase类属于org.kuali.rice.krad.uif.field包,在下文中一共展示了DataFieldBase类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setup
import org.kuali.rice.krad.uif.field.DataFieldBase; //导入依赖的package包/类
@Before
public void setup() throws Throwable {
richTable = new RichTable();
richTable = spy(richTable);
ConfigurationService configurationService = mock(ConfigurationService.class);
doReturn(configurationService).when(richTable).getConfigurationService();
group = new CollectionGroupBase();
group.setCollectionObjectClass(Employee.class);
TableLayoutManager layoutManager = new TableLayoutManagerBase();
layoutManager.setRenderSequenceField(true);
List<Component> items = new ArrayList<Component>(1);
DataField name = new DataFieldBase();
name.setPropertyName("employeeId");
items.add(name);
DataField number = new DataFieldBase();
number.setPropertyName("positionTitle");
items.add(number);
DataField contactEmail = new DataFieldBase();
contactEmail.setPropertyName("contactEmail");
items.add(contactEmail);
layoutManager = spy(layoutManager);
doReturn(items).when(layoutManager).getFirstRowFields();
doReturn(layoutManager).when(layoutManager).clone();
group.setLayoutManager(layoutManager);
group.setIncludeLineSelectionField(false);
group.setRenderLineActions(false);
group.setItems(items);
mockView = mock(LookupView.class);
ViewHelperService mockViewHelperService = mock(ViewHelperService.class);
when(mockView.getViewHelperService()).thenReturn(mockViewHelperService);
when(mockView.clone()).thenReturn(mockView);
}