Java Code Examples for com.smartgwt.client.widgets.form.fields.TextAreaItem#setValue()
The following examples show how to use
com.smartgwt.client.widgets.form.fields.TextAreaItem#setValue() .
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: SearchIndexCheckStatus.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
public SearchIndexCheckStatus(String result) { super(); setWidth100(); setHeight100(); setHeaderControls(HeaderControls.HEADER_LABEL, HeaderControls.CLOSE_BUTTON); setTitle(I18N.message("checkfulltextindex")); setIsModal(true); setShowModalMask(true); centerInPage(); final DynamicForm form = new DynamicForm(); form.setHeight100(); form.setWidth100(); form.setTitleOrientation(TitleOrientation.TOP); final TextAreaItem status = new TextAreaItem(); status.setWidth(700); status.setHeight("100%"); status.setValue(result); status.setShowTitle(false); form.setFields(status); addItem(form); }
Example 2
Source File: ItemFactory.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
/** * Creates a new TextAreaItem * * @param name The item name (mandatory) * @param title The item title (mandatory) * @param value The item value (optional) * * @return the new item */ public static TextAreaItem newTextAreaItem(String name, String title, String value) { TextAreaItem item = new TextAreaItem(); item.setName(filterItemName(name)); item.setTitle(I18N.message(title)); item.setHeight("*"); if (value != null) item.setValue(value); else item.setValue(""); return item; }
Example 3
Source File: FirewallPanel.java From document-management-software with GNU Lesser General Public License v3.0 | 4 votes |
private void init() { form = new DynamicForm(); form.setValuesManager(vm); form.setTitleOrientation(TitleOrientation.TOP); if (user != null) form.setNumCols(2); else form.setNumCols(1); final TextAreaItem whitelist = ItemFactory.newTextAreaItem("whitelist", "whitelist", null); whitelist.setHeight(120); whitelist.setWidth(350); whitelist.setHint(I18N.message("blacklisthint")); if (changedHandler != null) whitelist.addChangedHandler(changedHandler); if (Session.get().isDemo()) whitelist.setDisabled(true); final TextAreaItem blacklist = ItemFactory.newTextAreaItem("blacklist", "blacklist", null); blacklist.setHeight(120); blacklist.setWidth(350); blacklist.setHint(I18N.message("blacklisthint")); if (changedHandler != null) blacklist.addChangedHandler(changedHandler); if (Session.get().isDemo()) blacklist.setDisabled(true); form.setItems(whitelist, blacklist); if (user == null) { /* * We are operating on general filters */ SettingService.Instance.get().loadSettingsByNames( new String[] { "firewall.whitelist", "firewall.blacklist" }, new AsyncCallback<GUIParameter[]>() { @Override public void onFailure(Throwable caught) { Log.serverError(caught); } @Override public void onSuccess(GUIParameter[] params) { whitelist.setValue(params[0].getValue().replace(',', '\n')); blacklist.setValue(params[1].getValue().replace(',', '\n')); } }); } else { /* * We are operating on user's specific filters */ whitelist.setValue(user.getIpWhitelist() != null ? user.getIpWhitelist().replace(',', '\n') : ""); blacklist.setValue(user.getIpBlacklist() != null ? user.getIpBlacklist().replace(',', '\n') : ""); } }