本文整理汇总了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);
}
示例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);
}
示例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());
}
示例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);
}
示例5: setup
import org.kuali.rice.krad.uif.field.InputFieldBase; //导入依赖的package包/类
@Before
public void setup() {
component = new InputFieldBase();
componentId = "field1";
component.setId(componentId);
}