Java Code Examples for com.smartgwt.client.widgets.grid.ListGridField#setValueMap()
The following examples show how to use
com.smartgwt.client.widgets.grid.ListGridField#setValueMap() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UrnNbnAction.java From proarc with GNU General Public License v3.0 | 4 votes |
public ExportResultWidget() { i18n = GWT.create(ClientMessages.class); VLayout vLayout = new VLayout(); vLayout.setWidth100(); vLayout.setHeight100(); grid = new ListGrid(); grid.setSelectionType(SelectionStyle.SINGLE); grid.setFixedRecordHeights(false); grid.setWrapCells(true); grid.setShowClippedValuesOnHover(true); ListGridField pidField = new ListGridField(DigitalObjectResourceApi.DIGITALOBJECT_PID, i18n.ExportResultWidget_PID_Title()); // ListGridField errorField = new ListGridField(DigitalObjectResourceApi.URNNBN_ITEM_MESSAGE, // i18n.ExportResultWidget_Message_Title()); ListGridField urnNbnField = new ListGridField(DigitalObjectResourceApi.URNNBN_ITEM_URNNBN, i18n.UrnNbnAction_Result_UrnNbn_Title()); ListGridField labelField = new ListGridField(DigitalObjectResourceApi.MEMBERS_ITEM_LABEL, i18n.UrnNbnAction_Result_Label_Title()); ListGridField modelField = new ListGridField(DigitalObjectResourceApi.DIGITALOBJECT_MODEL, i18n.UrnNbnAction_Result_Model_Title()); ListGridField statusField = new ListGridField(DigitalObjectResourceApi.URNNBN_ITEM_STATUSTYPE, i18n.UrnNbnAction_Result_Error_Title()); ListGridField warningField = new ListGridField(DigitalObjectResourceApi.URNNBN_ITEM_WARNING, i18n.UrnNbnAction_Result_Status_Title(), 50); warningField.setCellAlign(Alignment.CENTER); warningField.setEmptyCellValue(":-)"); HashMap<String, String> statusValues = new HashMap<String, String>(); statusValues.put("true", ":-|"); statusValues.put("false", ":-("); warningField.setValueMap(statusValues); grid.setFields(labelField, modelField, statusField, urnNbnField, warningField, pidField); grid.addSelectionUpdatedHandler(new SelectionUpdatedHandler() { @Override public void onSelectionUpdated(SelectionUpdatedEvent event) { logForm.editSelectedData(grid); } }); logForm = createLogForm(); vLayout.setMembers(grid, logForm); this.widget = vLayout; }
Example 2
Source File: DigitalObjectSearchView.java From proarc with GNU General Public License v3.0 | 4 votes |
public void setModels(LinkedHashMap<?, ?> valueMap) { ListGridField field = foundGrid.getField(SearchDataSource.FIELD_MODEL); field.setValueMap(valueMap); FormItem filterModel = filters.getField(DigitalObjectResourceApi.SEARCH_QUERY_MODEL_PARAM); filterModel.setValueMap(valueMap); }
Example 3
Source File: DigitalObjectTreeView.java From proarc with GNU General Public License v3.0 | 4 votes |
public void setModels(Map<?, ?> valueMap) { ListGridField field = treeSelector.getField(RelationDataSource.FIELD_MODEL); field.setValueMap(valueMap); }