Java Code Examples for com.smartgwt.client.widgets.form.fields.FormItem#setVisible()
The following examples show how to use
com.smartgwt.client.widgets.form.fields.FormItem#setVisible() .
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: FormGenerator.java From proarc with GNU General Public License v3.0 | 6 votes |
/** * Adds common properties to simple {@link #getFormItem items}. */ public FormItem customizeFormItem(FormItem item, Field f) { if (item.getTitle() == null) { item.setShowTitle(false); } item.setRequired(f.getRequired()); item.setPrompt(f.getHint(activeLocale)); item.setHoverWidth(defaultHoverWidth); if (f.getHidden() != null && f.getHidden()) { item.setVisible(false); } String width = f.getWidth(); if (width != null) { item.setWidth(width); } if (f.getHeight() != null) { item.setHeight(f.getHeight()); } if (f.getReadOnly() != null && f.getReadOnly()) { item.setCanEdit(!f.getReadOnly()); } return item; }
Example 2
Source File: NsesssV2Form.java From proarc with GNU General Public License v3.0 | 4 votes |
private void resetField(FormItem fi, boolean clear, boolean visible, boolean required) { fi.setVisible(visible); fi.setRequired(required); clearIfTrue(clear, fi); }