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


Java ComponentFactory.getGroupWithDisclosureGridLayout方法代码示例

本文整理汇总了Java中org.kuali.rice.krad.uif.util.ComponentFactory.getGroupWithDisclosureGridLayout方法的典型用法代码示例。如果您正苦于以下问题:Java ComponentFactory.getGroupWithDisclosureGridLayout方法的具体用法?Java ComponentFactory.getGroupWithDisclosureGridLayout怎么用?Java ComponentFactory.getGroupWithDisclosureGridLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.kuali.rice.krad.uif.util.ComponentFactory的用法示例。


在下文中一共展示了ComponentFactory.getGroupWithDisclosureGridLayout方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: performCustomInitialization

import org.kuali.rice.krad.uif.util.ComponentFactory; //导入方法依赖的package包/类
@Override
public void performCustomInitialization(LifecycleElement component) {
    super.performCustomInitialization(component);

    if (component instanceof InquiryView) {
        InquiryView inquiryView = (InquiryView) component;
        PageGroup pageGroup = inquiryView.getCurrentPage();

        Group oldSection = (Group) pageGroup.getItems().get(0);
        oldSection.setHeaderText(oldSection.getHeaderText() + " - Customized");

        Group newSection = ComponentFactory.getGroupWithDisclosureGridLayout();
        newSection.setHeaderText("Dynamically Added Section");
        DataField newDataField = ComponentFactory.getDataField("newDataField", "Dynamically Added Field");
        newDataField.setForcedValue("This is a dynamically set value.");

        List<Component> fields = new ArrayList<Component>();
        fields.add(newDataField);
        newSection.setItems(fields);

        List<Component> sections = new ArrayList<Component>();
        sections.addAll(pageGroup.getItems());
        sections.add(newSection);
        pageGroup.setItems(sections);
    }

}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:28,代码来源:LabsInquiryDynamicSectionsInquirable.java

示例2: testMutability

import org.kuali.rice.krad.uif.util.ComponentFactory; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
@Test
public void testMutability() throws Throwable {
    ViewService viewService = KRADServiceLocatorWeb.getViewService();
    View view = viewService.getViewById("DummyLoginView");

    Group group = ComponentFactory.getGroupWithDisclosureGridLayout();
    group.setId("foo");
    group.setHeaderText("bar");
    group.setItems(new ArrayList<Component>());

    ((List<Group>) view.getItems()).add(group);
    assertSame(group, view.getItems().get(view.getItems().size() - 1));
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:15,代码来源:ViewLifecycleTest.java

示例3: createInquirySection

import org.kuali.rice.krad.uif.util.ComponentFactory; //导入方法依赖的package包/类
protected Group createInquirySection( String groupId, String headerText ) {
    Group group = ComponentFactory.getGroupWithDisclosureGridLayout();
    group.setId(groupId);
    group.setHeaderText(headerText);
    group.setItems(new ArrayList<Component>());
    return group;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:8,代码来源:UifDefaultingServiceImpl.java


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