Java Code Examples for com.smartgwt.client.widgets.form.DynamicForm#setHeight100()
The following examples show how to use
com.smartgwt.client.widgets.form.DynamicForm#setHeight100() .
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: AutomationDialog.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
private Tab prepareScriptTab() { scriptForm = new DynamicForm(); scriptForm.setWidth100(); scriptForm.setHeight100(); scriptForm.setTitleOrientation(TitleOrientation.TOP); scriptForm.setNumCols(1); final TextAreaItem automation = ItemFactory.newTextAreaItemForAutomation("automation", "automation", null, null, false); automation.setShowTitle(false); automation.setStartRow(false); automation.setRequired(true); automation.setWidth("*"); automation.setHeight("*"); scriptForm.setItems(automation); Tab tab = new Tab(I18N.message("script")); tab.setPane(scriptForm); return tab; }
Example 2
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 3
Source File: TextEditor.java From proarc with GNU General Public License v3.0 | 5 votes |
private DynamicForm createForm(TextDataSource dataSource) { DynamicForm form = new DynamicForm(); form.setDataSource(dataSource); form.setWidth100(); form.setHeight100(); TextAreaItem textAreaItem = new TextAreaItem(TextDataSource.FIELD_CONTENT); textAreaItem.setColSpan("*"); textAreaItem.setHeight("*"); textAreaItem.setWrap(TextAreaWrap.OFF); textAreaItem.setShowTitle(false); textAreaItem.setWidth("*"); form.setFields(textAreaItem); return form; }
Example 4
Source File: AutomationTriggerProperties.java From document-management-software with GNU Lesser General Public License v3.0 | 4 votes |
private void refresh() { vm.clearValues(); vm.clearErrors(false); if (formsContainer.getMembers() != null) formsContainer.removeMembers(formsContainer.getMembers()); DynamicForm form2 = new DynamicForm(); form2.setWidth100(); form2.setTitleOrientation(TitleOrientation.TOP); form2.setValuesManager(vm); form2.setNumCols(1); final TextAreaItem automation = ItemFactory.newTextAreaItemForAutomation("automation", "automation", trigger.getAutomation(), changedHandler, false); automation.setStartRow(false); automation.setWidth("*"); automation.setDisabled(trigger.getRoutine()!=null); form2.setItems(automation); DynamicForm form1 = new DynamicForm(); form1.setNumCols(2); form1.setTitleOrientation(TitleOrientation.TOP); form1.setValuesManager(vm); form1.setHeight100(); SelectItem events = ItemFactory.newEventsSelector("events", I18N.message("triggeron"), changedHandler, true, true, true); events.setRowSpan(3); events.setValues(trigger.getEventsArray()); SpacerItem spacer = new SpacerItem(); spacer.setHeight(100); SelectItem routine = ItemFactory.newAutomationRoutineSelector("routine", trigger.getRoutine() != null ? trigger.getRoutine().getId() : null, changedHandler, true); routine.setEndRow(true); routine.addChangedHandler(changedHandler); ChangedHandler cngHandler = new ChangedHandler() { @Override public void onChanged(ChangedEvent event) { if (event == null) { automation.setDisabled(false); } else { automation.setDisabled(event.getValue() != null && !event.getValue().toString().isEmpty()); } } }; routine.addChangedHandler(cngHandler); form1.setItems(events, folderSelector, routine, spacer); formsContainer.setMembers(form1, form2); }