Java Code Examples for com.smartgwt.client.widgets.form.fields.FormItem#setValueMap()
The following examples show how to use
com.smartgwt.client.widgets.form.fields.FormItem#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: DcEditor.java From proarc with GNU General Public License v3.0 | 5 votes |
private void updateProfile(DynamicForm form, FormItem item, Field profile) { if (profile != null) { Boolean hidden = profile.getHidden(); form.setVisible(hidden == null || !hidden); String title = profile.getTitle(null); if (title != null) { if (title.isEmpty()) { item.setShowTitle(false); } item.setTitle(title); } String hint = profile.getHint(null); if (hint != null) { item.setPrompt(hint); } item.setRequired(profile.getRequired()); String width = profile.getWidth(); if (width != null) { item.setWidth(width); } Integer length = profile.getLength(); if (length != null && item instanceof TextItem) { ((TextItem) item).setLength(length); } LinkedHashMap<String, String> valueMap = profile.getValueMap(); if (valueMap != null) { // System.out.println("DCE.updateProfile.valueMap: " + valueMap); item.setValueMap(valueMap); } } }
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); }