当前位置: 首页>>代码示例>>Java>>正文


Java InputFieldBase类代码示例

本文整理汇总了Java中org.kuali.rice.krad.uif.field.InputFieldBase的典型用法代码示例。如果您正苦于以下问题:Java InputFieldBase类的具体用法?Java InputFieldBase怎么用?Java InputFieldBase使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


InputFieldBase类属于org.kuali.rice.krad.uif.field包,在下文中一共展示了InputFieldBase类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testComponentOptionsDefaultSortWithDetails

import org.kuali.rice.krad.uif.field.InputFieldBase; //导入依赖的package包/类
@Test
/**
 * test that the default sort options, when set on the view, sort in the correct order and in the correct position
 * relative to the details column
 */
public void testComponentOptionsDefaultSortWithDetails() {
    when(mockView.isDefaultSortAscending()).thenReturn(false);
    when(mockView.getDefaultSortAttributeNames()).thenReturn(Lists.newArrayList("employeeId", "contactEmail"));

    Group rowDetailsGroup = new GroupBase();
    rowDetailsGroup.setItems(Lists.newArrayList(new InputFieldBase()));
    ((TableLayoutManager) group.getLayoutManager()).setRowDetailsGroup(rowDetailsGroup);

    String expected = "[[2,'desc'],[4,'desc']]";
    assertRichTableComponentOptions(null, expected, UifConstants.TableToolsKeys.AASORTING);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:17,代码来源:RichTableTest.java

示例2: testComponentOptionsDefaultSortWithMultipleColumns

import org.kuali.rice.krad.uif.field.InputFieldBase; //导入依赖的package包/类
@Test
/**
 * test that the default sort options, when set on the view, sort in the correct order and in the correct position
 * relative to the multiple columns on the left
 */
public void testComponentOptionsDefaultSortWithMultipleColumns() {
    when(mockView.isDefaultSortAscending()).thenReturn(false);
    when(mockView.getDefaultSortAttributeNames()).thenReturn(Lists.newArrayList("employeeId", "contactEmail"));

    Group rowDetailsGroup = new GroupBase();
    rowDetailsGroup.setItems(Lists.newArrayList(new InputFieldBase()));
    ((TableLayoutManager) group.getLayoutManager()).setRowDetailsGroup(rowDetailsGroup);

    group.setRenderLineActions(true);
    ((TableLayoutManager) group.getLayoutManager()).setActionColumnPlacement("LEFT");

    String expected = "[[3,'desc'],[5,'desc']]";
    assertRichTableComponentOptions(null, expected, UifConstants.TableToolsKeys.AASORTING);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:20,代码来源:RichTableTest.java

示例3: testCleanContextDeap

import org.kuali.rice.krad.uif.field.InputFieldBase; //导入依赖的package包/类
/**
 * Test {@link ContextUtils#cleanContextDeep} using a BreadcrumbItem object
 */
@Test
public void testCleanContextDeap() {
    Map<String, Object> context = new HashMap<String, Object>();
    context.put("contextkey", "value");
    context.put("contextkey2", "value2");

    BreadcrumbItem breadcrumbItem = new BreadcrumbItem();
    breadcrumbItem.setContext(context);

    InputField inputField = new InputFieldBase();
    inputField.setContext(context);

    Label fieldLabel = new Label();
    fieldLabel.setContext(context);

    Tooltip labelTootlip = new Tooltip();
    labelTootlip.setContext(context);
    fieldLabel.setToolTip(labelTootlip);

    inputField.setFieldLabel(fieldLabel);

    breadcrumbItem.setSiblingBreadcrumbComponent(inputField);

    Tooltip tooltip = new Tooltip();
    tooltip.setContext(context);

    breadcrumbItem.setToolTip(tooltip);

    ContextUtils.cleanContextDeep(breadcrumbItem);

    assertEquals(0, breadcrumbItem.getContext().size());
    assertEquals(0, inputField.getContext().size());
    assertEquals(0, fieldLabel.getContext().size());
    assertEquals(0, labelTootlip.getContext().size());
    assertEquals(0, tooltip.getContext().size());
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:40,代码来源:ComponentUtilsTest.java

示例4: setup

import org.kuali.rice.krad.uif.field.InputFieldBase; //导入依赖的package包/类
@Before
public void setup() {
    group = new CollectionGroupBase();
    List<Component> items = new ArrayList<Component>();
    InputField field = new InputFieldBase();
    field.setControl(new SelectControlBase());
    items.add(field);
    items.add(new TextAreaControl());
    group.setItems(items);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:11,代码来源:CollectionGroupTest.java

示例5: setup

import org.kuali.rice.krad.uif.field.InputFieldBase; //导入依赖的package包/类
@Before
public void setup() {
    component = new InputFieldBase();
    componentId = "field1";
    component.setId(componentId);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:ComponentUtilsTest.java


注:本文中的org.kuali.rice.krad.uif.field.InputFieldBase类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。