本文整理汇总了Java中com.smartgwt.client.types.MultipleAppearance类的典型用法代码示例。如果您正苦于以下问题:Java MultipleAppearance类的具体用法?Java MultipleAppearance怎么用?Java MultipleAppearance使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MultipleAppearance类属于com.smartgwt.client.types包,在下文中一共展示了MultipleAppearance类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createDayChooser
import com.smartgwt.client.types.MultipleAppearance; //导入依赖的package包/类
private SelectItem createDayChooser(String fName) {
SelectItem issueDays = new SelectItem(fName, i18n.NewIssueEditor_daysIncluded_Title());
issueDays.setTooltip(i18n.NewIssueEditor_daysIncluded_Hint());
issueDays.setWidth("*");
issueDays.setHeight(105);
// issueDays.setMultiple(true);
issueDays.setRequired(true);
issueDays.setMultipleAppearance(MultipleAppearance.GRID);
LinkedHashMap<Integer, String> weekMap = new LinkedHashMap<>();
weekMap.put(1, i18nSGwt.date_dayNames_2());
weekMap.put(2, i18nSGwt.date_dayNames_3());
weekMap.put(3, i18nSGwt.date_dayNames_4());
weekMap.put(4, i18nSGwt.date_dayNames_5());
weekMap.put(5, i18nSGwt.date_dayNames_6());
weekMap.put(6, i18nSGwt.date_dayNames_7());
weekMap.put(7, i18nSGwt.date_dayNames_1());
issueDays.setValueMap(weekMap);
return issueDays;
}
示例2: getRolesCanvas
import com.smartgwt.client.types.MultipleAppearance; //导入依赖的package包/类
private Canvas getRolesCanvas() {
// Canvas canvas = new Canvas();
VStack layout = new VStack();
layout.setBorder("1px solid gray");
layout.setHeight(150);
Label title = new Label(
"<span style=\"font-size:125%; font-weight: bold;\">"+ constants.roles() + "</span>");
title.setHeight(15);
layout.setWidth(200);
layout.addMember(title);
DynamicForm form = new DynamicForm();
form.setHeight("*");
SelectItem roleGrid = new SelectItem();
roleGrid.setTitle("Select Multiple (Grid)");
roleGrid.setMultiple(true);
roleGrid.setHeight(100);
roleGrid.setShowTitle(false);
roleGrid.setMultipleAppearance(MultipleAppearance.GRID);
form.setFields(roleGrid);
layout.addMember(form);
IButton button = new IButton(constants.newRole());
button.setHeight(20);
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
// (new RoleWindow(gameId, GameTab.this)).show();
// ListGridRecord lgr = new ListGridRecord();
// lgr.setAttribute("id", gameId);
// lgr.setAttribute("pk", ""+gameId+System.currentTimeMillis());
// listGrid.startEditingNew(lgr);
}
});
layout.addMember(button);
// layout.setBorder("2px solid blue");
// canvas.setHeight("*");
return layout;
}
示例3: createMultiSelectColumnFilter
import com.smartgwt.client.types.MultipleAppearance; //导入依赖的package包/类
private SelectItem createMultiSelectColumnFilter() {
SelectItem options = new SelectItem();
options.setMultiple(true);
options.setMultipleAppearance(MultipleAppearance.PICKLIST);
return options;
}