com.smartgwt.client.types.TitleOrientation Java Examples
The following examples show how to use
com.smartgwt.client.types.TitleOrientation.
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: CreateSimpleRuleLayout.java From SensorWebClient with GNU General Public License v2.0 | 6 votes |
private void setEntryOperatorRuleItem() { this.entryOperatorItem = new SelectItem(); this.entryOperatorItem.setWidth(this.entryItemWidth); this.entryOperatorItem.setTitle(i18n.operator()); this.entryOperatorItem.setTitleOrientation(TitleOrientation.TOP); this.entryOperatorItem.setValueMap(getMathSymbols()); this.entryOperatorItem.setDefaultValue(">"); this.entryOperatorItem.setTextAlign(Alignment.CENTER); this.entryOperatorItem.addChangedHandler(new ChangedHandler() { public void onChanged(ChangedEvent event) { if (exitOperatorItem != null) { TextItem exitOperatorTextItem = (TextItem) event.getSource(); exitOperatorItem.setValue(getInverse(exitOperatorTextItem.getValueAsString())); } } }); }
Example #2
Source File: ImportSettingsPanel.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
public ImportSettingsPanel(GUIArchive archive, ChangedHandler changedHandler) { this.archive = archive; form.setValuesManager(vm); form.setTitleOrientation(TitleOrientation.TOP); TextItem description = ItemFactory.newTextItem("description", "description", archive.getDescription()); description.addChangedHandler(changedHandler); description.setDisabled(archive.getStatus() != GUIArchive.STATUS_OPENED); RadioGroupItem importTemplates = ItemFactory.newBooleanSelector("importtemplates", "importtemplates"); importTemplates.setValue(archive.getImportTemplate() == 1 ? "yes" : "no"); importTemplates.addChangedHandler(changedHandler); importTemplates.setDisabled(archive.getStatus() != GUIArchive.STATUS_OPENED); SelectItem options = ItemFactory.newImportCustomIds(); options.setWidth(200); options.setValue(Integer.toString(archive.getImportCustomId())); options.addChangedHandler(changedHandler); options.setDisabled(archive.getStatus() != GUIArchive.STATUS_OPENED); form.setFields(description, importTemplates, options); addMember(form); }
Example #3
Source File: DcEditor.java From proarc with GNU General Public License v3.0 | 6 votes |
private DynamicForm createFullForm() { DynamicForm f = new DynamicForm(); f.setWidth100(); f.setNumCols(2); f.setBrowserSpellCheck(false); f.setWrapItemTitles(false); f.setTitleOrientation(TitleOrientation.TOP); ArrayList<FormItem> items = new ArrayList<FormItem>(); addElement(items, DcConstants.CONTRIBUTOR, null, true); addElement(items, DcConstants.COVERAGE, null, true); addElement(items, DcConstants.CREATOR, null, true); addElement(items, DcConstants.DATE, null, true); addElement(items, DcConstants.DESCRIPTION, null, true); addElement(items, DcConstants.FORMAT, null, true); addElement(items, DcConstants.IDENTIFIER, null, true); addElement(items, DcConstants.LANGUAGE, null, true); addElement(items, DcConstants.PUBLISHER, null, true); addElement(items, DcConstants.RELATION, null, true); addElement(items, DcConstants.RIGHTS, null, true); addElement(items, DcConstants.SOURCE, null, true); addElement(items, DcConstants.SUBJECT, null, true); addElement(items, DcConstants.TITLE, null, true); addElement(items, DcConstants.TYPE, null, true); f.setFields(items.toArray(new FormItem[items.size()])); return f; }
Example #4
Source File: AttributeSetPropertiesPanel.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
protected void addMetadata() { form1 = new DynamicForm(); form1.setNumCols(1); form1.setValuesManager(vm); form1.setTitleOrientation(TitleOrientation.LEFT); StaticTextItem id = ItemFactory.newStaticTextItem("id", "id", Long.toString(attributeSet.getId())); id.setDisabled(true); TextItem name = ItemFactory.newSimpleTextItem("name", I18N.message("name"), attributeSet.getName()); name.setRequired(true); name.setDisabled(attributeSet.isReadonly()); if (!attributeSet.isReadonly()) name.addChangedHandler(changedHandler); TextAreaItem description = ItemFactory.newTextAreaItem("description", "description", attributeSet.getDescription()); description.setDisabled(attributeSet.isReadonly()); if (!attributeSet.isReadonly()) description.addChangedHandler(changedHandler); form1.setItems(id, name, description); form1.setWidth(200); }
Example #5
Source File: DeviceManager.java From proarc with GNU General Public License v3.0 | 6 votes |
private DynamicForm createForm() { DynamicForm df = new DynamicForm(); df.setMargin(4); df.setNumCols(1); df.setTitleOrientation(TitleOrientation.TOP); df.setBrowserSpellCheck(false); df.setDataSource(DeviceDataSource.getInstance()); TextItem fieldId = new TextItem(DeviceDataSource.FIELD_ID); fieldId.setWidth(280); fieldId.setCanEdit(false); fieldId.setReadOnlyDisplay(ReadOnlyDisplayAppearance.STATIC); TextItem fieldModel = new TextItem(DeviceDataSource.FIELD_MODEL); fieldModel.setCanEdit(false); fieldModel.setRequired(true); TextItem fieldLabel = new TextItem(DeviceDataSource.FIELD_LABEL); fieldLabel.setRequired(true); fieldLabel.setWidth("*"); df.setItems(fieldId, fieldModel, fieldLabel); return df; }
Example #6
Source File: UrnNbnAction.java From proarc with GNU General Public License v3.0 | 6 votes |
private DynamicForm createOptionResolver() { DynamicForm form = new DynamicForm(); SelectItem selection = new SelectItem(UrnNbnResourceApi.FIND_RESOLVER_PARAM, i18n.UrnNbnAction_Window_Select_Title()); selection.setRequired(true); selection.setOptionDataSource(UrnNbnResolverDataSource.getInstance()); selection.setValueField(UrnNbnResourceApi.RESOLVER_ID); selection.setDisplayField(UrnNbnResourceApi.RESOLVER_NAME); selection.setAutoFetchData(true); selection.setDefaultToFirstOption(true); selection.setWidth(350); selection.setAutoFetchData(true); form.setFields(selection); form.setBrowserSpellCheck(false); form.setWrapItemTitles(false); form.setTitleOrientation(TitleOrientation.TOP); return form; }
Example #7
Source File: UploadFile.java From proarc with GNU General Public License v3.0 | 6 votes |
private DynamicForm createForm() { DynamicForm form = new DynamicForm(); form.setEncoding(Encoding.MULTIPART); form.setBrowserSpellCheck(false); form.setNumCols(2); form.setTitleOrientation(TitleOrientation.TOP); form.setCanSubmit(true); TextItem mimeItem = new TextItem(FIELD_MIMETYPE, i18n.DigitalObjectEditor_MediaEditor_Uploader_Mimetype_Title()); mimeItem.setWidth(400); mimeItem.setColSpan(2); TextItem filenameItem = new TextItem(FIELD_FILE, i18n.DigitalObjectEditor_MediaEditor_Uploader_Filename_Title()); filenameItem.setWidth(400); filenameItem.setColSpan(2); filenameItem.setRequired(Boolean.TRUE); HiddenItem pidItem = new HiddenItem(FIELD_PID); HiddenItem batchIdItem = new HiddenItem(FIELD_BATCHID); form.setFields(filenameItem, mimeItem, pidItem, batchIdItem); return form; }
Example #8
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 #9
Source File: CreateSimpleRuleLayout.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private void setCountConditionItem() { this.countConditionItem = new TextItem(); this.countConditionItem.setWidth(this.entryItemWidth); this.countConditionItem.setTitle(i18n.count()); this.countConditionItem.setTitleOrientation(TitleOrientation.TOP); this.countConditionItem.setKeyPressFilter("[0-9]"); }
Example #10
Source File: CreateSimpleRuleLayout.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private void setEntryTimeItem() { this.entryTimeItem = new TextItem(); this.entryTimeItem.setWidth(this.entryItemWidth); this.entryTimeItem.setTitle("<nobr>" + i18n.timeValue() + "</nobr>"); this.entryTimeItem.setTitleOrientation(TitleOrientation.TOP); this.entryTimeItem.setKeyPressFilter("[0-9]"); }
Example #11
Source File: CreateSimpleRuleLayout.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private void setEntryValueUnitConditionItem() { this.entryValueUnitConditionItem = new SelectItem(); this.entryValueUnitConditionItem.setWidth(this.entryItemWidth); this.entryValueUnitConditionItem.setTitle(i18n.unit()); this.entryValueUnitConditionItem.setTitleOrientation(TitleOrientation.TOP); this.entryValueUnitConditionItem.setValueMap(this.unitHashMap); this.entryValueUnitConditionItem.setTextAlign(Alignment.CENTER); ArrayList<String> list = new ArrayList<String>(this.unitHashMap.values()); if (list.size() != 0) { this.entryValueUnitConditionItem.setDefaultValue(list.get(0)); } }
Example #12
Source File: CreateSimpleRuleLayout.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private void setEntryValueConditionItem() { this.entryValueConditionItem = new TextItem(); this.entryValueConditionItem.setWidth(this.entryItemWidth); this.entryValueConditionItem.setTitle(i18n.value()); this.entryValueConditionItem.setTitleOrientation(TitleOrientation.TOP); this.entryValueConditionItem.setKeyPressFilter("[0-9]"); }
Example #13
Source File: CreateSimpleRuleLayout.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private void setEntryValueUnitItem() { this.entryValueUnitItem = new SelectItem(); this.entryValueUnitItem.setWidth(this.entryItemWidth); this.entryValueUnitItem.setTitle(i18n.unit()); this.entryValueUnitItem.setTitleOrientation(TitleOrientation.TOP); this.entryValueUnitItem.setValueMap(this.unitHashMap); this.entryValueUnitItem.setTextAlign(Alignment.CENTER); ArrayList<String> list = new ArrayList<String>(this.unitHashMap.values()); if (list.size() != 0) { this.entryValueUnitItem.setDefaultValue(list.get(0)); } }
Example #14
Source File: WorkflowDialog.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
public WorkflowDialog(final long[] ids) { setHeaderControls(HeaderControls.HEADER_LABEL, HeaderControls.CLOSE_BUTTON); setTitle(I18N.message("startworkflow")); setCanDragResize(true); setIsModal(true); setShowModalMask(true); setAutoSize(true); centerInPage(); workflow = ItemFactory.newWorkflowSelector(); workflow.setTitle(I18N.message("chooseworkflow")); workflow.setWrapTitle(false); workflow.setRequired(true); tag = ItemFactory.newTextItem("tag", I18N.message("tag"), null); tag.setWrapTitle(false); tag.setRequired(false); ButtonItem start = new ButtonItem(); start.setTitle(I18N.message("startworkflow")); start.setAutoFit(true); start.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { onStart(ids); } }); form.setTitleOrientation(TitleOrientation.TOP); form.setFields(workflow, tag, start); addItem(form); }
Example #15
Source File: PeriodicalVolumeForm.java From proarc with GNU General Public License v3.0 | 5 votes |
public PeriodicalVolumeForm(ClientMessages i18n) { setWidth100(); setHeight100(); setTitleOrientation(TitleOrientation.TOP); setNumCols(1); TextItem volumeNumber = new TextItem(ModsCustomDataSource.FIELD_PER_VOLUME_NUMBER, i18n.PeriodicalVolumeForm_Number_Title()); volumeNumber.setRequired(true); // javascript regexp ^([1-9]\d{0,4}(-[1-9]\d{0,4})?)$ volumeNumber.setValidators(new StringTrimValidator(), new RegExpValidator("^([1-9]\\d{0,4}(-[1-9]\\d{0,4})?)$")); TextItem date = new TextItem(ModsCustomDataSource.FIELD_PER_VOLUME_YEAR, i18n.PeriodicalVolumeForm_Date_Title()); date.setRequired(true); // issue 43; see https://docs.google.com/document/d/1zSriHPdnUY5d_tKv0M8a6nEym560DKh2H6XZ24tGAEw/edit?pli=1 // javascript regexp ^([1-9]\d{3}(-[1-9]\d{3})?)$ date.setValidators(new StringTrimValidator(), new RegExpValidator("^([1-9]\\d{3}(-[1-9]\\d{3})?)$")); date.setEndRow(true); // identifiers final RepeatableFormItem identifiers = new RepeatableFormItem(ModsCustomDataSource.FIELD_IDENTIFIERS, i18n.PeriodicalVolumeForm_Identifiers_Title()); identifiers.setDataSource(IdentifierDataSource.getInstance()); identifiers.setValidators( new IdentifiersValidator(i18n, Arrays.asList(IdentifierDataSource.TYPE_UUID))); DynamicForm identifierForm = new DynamicForm(); identifierForm.setUseAllDataSourceFields(true); identifierForm.setNumCols(4); identifiers.setFormPrototype(identifierForm); identifiers.setEndRow(true); identifiers.setColSpan("2"); TextAreaItem note = new TextAreaItem(ModsCustomDataSource.FIELD_NOTE, i18n.PeriodicalVolumeForm_Note_Title()); note.setWidth("*"); note.setHeight("*"); note.setColSpan("*"); setFields(volumeNumber, date, identifiers, note); }
Example #16
Source File: CreateSimpleRuleLayout.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private void setEntryValueItem() { this.entryValueItem = new TextItem(); this.entryValueItem.setWidth(this.entryItemWidth); this.entryValueItem.setTitle(i18n.value()); this.entryValueItem.setTitleOrientation(TitleOrientation.TOP); this.entryValueItem.setKeyPressFilter("[0-9]"); }
Example #17
Source File: WorkflowTaskFormView.java From proarc with GNU General Public License v3.0 | 5 votes |
private DynamicForm createParameterForm(Record[] records) { if (records == null || records.length == 0) { return createDefaultParameterForm(); } DynamicForm df = new DynamicForm(); df.setUseFlatFields(true); df.setWrapItemTitles(false); df.setTitleOrientation(TitleOrientation.TOP); df.setNumCols(3); df.setColWidths("*", "*", "*"); df.setItemHoverWidth(300); FormItem[] items = new FormItem[records.length]; Record values = new Record(); for (int i = 0; i < records.length; i++) { Record record = records[i]; ValueType valueType = ValueType.fromString( record.getAttribute(WorkflowModelConsts.PARAMETER_VALUETYPE)); DisplayType displayType = DisplayType.fromString( record.getAttribute(WorkflowModelConsts.PARAMETER_DISPLAYTYPE)); displayType = valueType == ValueType.DATETIME ? DisplayType.DATETIME : displayType; String paramName = record.getAttribute(WorkflowParameterDataSource.FIELD_NAME); String fieldName = "f" + i; items[i] = createFormItem(record, valueType, displayType); items[i].setName(fieldName); // use dataPath to solve cases where the valid JSON name is not a valid javascript ID (param.id). items[i].setDataPath("/" + paramName); items[i].setTitle(record.getAttribute(WorkflowModelConsts.PARAMETER_PROFILELABEL)); items[i].setTooltip(record.getAttribute(WorkflowModelConsts.PARAMETER_PROFILEHINT)); Object val = getParameterValue(record, valueType, displayType); if (val != null) { values.setAttribute(paramName, val); } } df.setItems(items); df.editRecord(values); df.addItemChangedHandler(itemChangedHandler); return df; }
Example #18
Source File: CreateSimpleRuleLayout.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private void setCountItem() { this.countItem = new TextItem(); this.countItem.setWidth(this.entryItemWidth); this.countItem.setTitle(i18n.count()); this.countItem.setTitleOrientation(TitleOrientation.TOP); this.countItem.setKeyPressFilter("[0-9]"); }
Example #19
Source File: MonographUnitForm.java From proarc with GNU General Public License v3.0 | 5 votes |
public MonographUnitForm(final ClientMessages i18n) { setWidth100(); setHeight100(); setTitleOrientation(TitleOrientation.TOP); setNumCols(1); // identifiers final RepeatableFormItem identifiers = new RepeatableFormItem(ModsCustomDataSource.FIELD_IDENTIFIERS, i18n.MonographUnitForm_Identifiers_Title()); identifiers.setDataSource(IdentifierDataSource.getInstance()); identifiers.setValidators( new IdentifiersValidator(i18n, Arrays.asList(IdentifierDataSource.TYPE_UUID))); DynamicForm identifierForm = new DynamicForm(); identifierForm.setUseAllDataSourceFields(true); identifierForm.setNumCols(4); identifiers.setFormPrototype(identifierForm); identifiers.setEndRow(true); identifiers.setColSpan("2"); TextItem unitNumber = new TextItem(ModsCustomDataSource.FIELD_MONOGRAPHUNIT_NUMBER); unitNumber.setTitle(i18n.MonographUnitForm_UnitNumber_Title()); unitNumber.setRequired(true); unitNumber.setValidators(new IsIntegerValidator()); TextAreaItem note = new TextAreaItem(ModsCustomDataSource.FIELD_NOTE, i18n.MonographUnitForm_Note_Title()); note.setWidth("*"); note.setHeight("*"); note.setColSpan("*"); setFields(unitNumber, identifiers, note); }
Example #20
Source File: CreateSimpleRuleLayout.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private void setExitTimeItem() { this.exitTimeItem = new TextItem(); this.exitTimeItem.setWidth(this.entryItemWidth); this.exitTimeItem.setTitle("<nobr>" + i18n.timeValue() + "</nobr>"); this.exitTimeItem.setTitleOrientation(TitleOrientation.TOP); this.exitTimeItem.setKeyPressFilter("[0-9]"); }
Example #21
Source File: CreateSimpleRuleLayout.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private void setExitTimeUnitItem() { this.exitTimeUnitItem = new SelectItem(); this.exitTimeUnitItem.setWidth(this.entryItemWidth); this.exitTimeUnitItem.setTitle(i18n.timeUnit()); this.exitTimeUnitItem.setTitleOrientation(TitleOrientation.TOP); this.exitTimeUnitItem.setTooltip("<nobr>" + i18n.unitsTime() + "</nobr>"); this.exitTimeUnitItem.setValueMap(this.timeUnitHashMap); this.exitTimeUnitItem.setDefaultValue("H"); this.exitTimeUnitItem.setTextAlign(Alignment.CENTER); }
Example #22
Source File: CreateSimpleRuleLayout.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private void setExitOperatorItem() { this.exitOperatorItem = new SelectItem(); this.exitOperatorItem.setWidth(this.entryItemWidth); this.exitOperatorItem.setTitle(i18n.operator()); this.exitOperatorItem.setTitleOrientation(TitleOrientation.TOP); this.exitOperatorItem.setValueMap(getMathSymbols()); this.exitOperatorItem.setTextAlign(Alignment.CENTER); String entryOperator = entryOperatorItem.getValueAsString(); this.exitOperatorItem.setDefaultValue(getInverse(entryOperator)); }
Example #23
Source File: CreateSimpleRuleLayout.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private void setEntryTimeUnitItem() { this.entryTimeUnitItem = new SelectItem(); this.entryTimeUnitItem.setWidth(this.entryItemWidth); this.entryTimeUnitItem.setTitle(i18n.timeUnit()); this.entryTimeUnitItem.setTitleOrientation(TitleOrientation.TOP); this.entryTimeUnitItem.setTooltip("<nobr>" + i18n.unitsTime() + "</nobr>"); this.entryTimeUnitItem.setValueMap(this.timeUnitHashMap); this.entryTimeUnitItem.setDefaultValue("H"); this.entryTimeUnitItem.setTextAlign(Alignment.CENTER); }
Example #24
Source File: LoginWindow.java From proarc with GNU General Public License v3.0 | 5 votes |
private DynamicForm createForm() { DynamicForm f = new DynamicForm(); f.setWidth(400); f.setBrowserSpellCheck(false); f.setNumCols(1); f.setTitleOrientation(TitleOrientation.TOP); f.setSaveOnEnter(true); TextItem user = new TextItem(USERNAME, i18nSgwt.dialog_UserNameTitle()); user.setRequired(true); user.setWidth("*"); user.setReadOnlyDisplay(ReadOnlyDisplayAppearance.STATIC); PasswordItem passwd = new PasswordItem(PASSWORD, i18nSgwt.dialog_PasswordTitle()); passwd.setRequired(true); passwd.setWidth("*"); TextItem producerCode = new TextItem(PRODUCER_CODE, i18n.LoginWindow_ProducerCode()); producerCode.setWidth("*"); producerCode.setReadOnlyDisplay(ReadOnlyDisplayAppearance.STATIC); StaticTextItem error = new StaticTextItem(ERROR); error.setShowTitle(false); error.setShowErrorText(true); f.setItems(user, producerCode, passwd, error); f.addSubmitValuesHandler(new SubmitValuesHandler() { @Override public void onSubmitValues(SubmitValuesEvent event) { submitCredentials(); } }); return f; }
Example #25
Source File: FormGenerator.java From proarc with GNU General Public License v3.0 | 5 votes |
public DynamicForm createDefaultForm() { AbstractModelForm df = new AbstractModelForm() {}; df.setBrowserSpellCheck(false); df.setTitleOrientation(TitleOrientation.TOP); df.setNumCols(1); df.setWrapItemTitles(false); df.setWidth100(); df.setHoverWrap(false); df.setItemHoverWidth(defaultHoverWidth); df.setHoverWidth(defaultHoverWidth); return df; }
Example #26
Source File: PatchPanel.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
private void displayNotes(String fileName) { UpdateService.Instance.get().getPatchNotes(fileName, new AsyncCallback<String[]>() { @Override public void onFailure(Throwable caught) { Log.serverError(caught); } @Override public void onSuccess(String[] infos) { DynamicForm form = new DynamicForm(); form.setTitleOrientation(TitleOrientation.TOP); form.setColWidths("*"); form.setNumCols(1); TextAreaItem changelog = ItemFactory.newTextAreaItem("changelog", "changelog", infos[0]); changelog.setWidth("100%"); changelog.setHeight(220); TextAreaItem patchNotes = ItemFactory.newTextAreaItem("patchnotes", "patchnotes", infos[1]); patchNotes.setWidth("100%"); patchNotes.setHeight(220); form.setItems(patchNotes, changelog); notesPanel.addMember(form); } }); }
Example #27
Source File: UpdatePanel.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
private void displayNotes(String fileName) { UpdateService.Instance.get().getUpdateNotes(fileName, new AsyncCallback<String[]>() { @Override public void onFailure(Throwable caught) { Log.serverError(caught); } @Override public void onSuccess(String[] infos) { DynamicForm form = new DynamicForm(); form.setTitleOrientation(TitleOrientation.TOP); form.setColWidths("*"); form.setNumCols(1); TextAreaItem changelog = ItemFactory.newTextAreaItem("changelog", "changelog", infos[0]); changelog.setWidth("100%"); changelog.setHeight(220); TextAreaItem updatenotes = ItemFactory.newTextAreaItem("updatenotes", "updatenotes", infos[1]); updatenotes.setWidth("100%"); updatenotes.setHeight(220); form.setItems(updatenotes, changelog); notesPanel.addMember(form); } }); }
Example #28
Source File: ConverterAssociationsDialog.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
public ConverterAssociationsDialog(final ListGrid srcGrid) { this.srcGrid = srcGrid; setHeaderControls(HeaderControls.HEADER_LABEL, HeaderControls.CLOSE_BUTTON); setTitle(I18N.message("associations")); setWidth(320); setHeight(360); setCanDragResize(true); setIsModal(true); setShowModalMask(true); centerInPage(); converter = ItemFactory.newFormatConverterSelector(); converter.setWidth(290); converter.setRequired(true); converter.setValue(DEFAULT_CONVERTER); converter.addChangedHandler(new ChangedHandler() { @Override public void onChanged(ChangedEvent event) { refresh(); } }); DynamicForm form = new DynamicForm(); form.setTitleOrientation(TitleOrientation.TOP); form.setNumCols(1); form.setItems(converter); addItem(form); refresh(); }
Example #29
Source File: IncrementalSettingsPanel.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
public IncrementalSettingsPanel(GUIIncrementalArchive incremental, ChangedHandler changedHandler, FolderChangeListener folderListener) { this.incremental = incremental; form.setValuesManager(vm); form.setTitleOrientation(TitleOrientation.TOP); prefix = ItemFactory.newSimpleTextItem("prefix", "prefix", incremental.getPrefix()); prefix.setRequired(true); prefix.addChangedHandler(changedHandler); frequency = ItemFactory.newIntegerItem("frequency", "frequency", incremental.getFrequency()); IntegerRangeValidator min = new IntegerRangeValidator(); min.setMin(1); frequency.setValidators(min); frequency.addChangedHandler(changedHandler); frequency.setHint(I18N.message("ddays")); folderSelector.setFolder(incremental.getFolder()); folderSelector.setRequired(true); folderSelector.addFolderChangeListener(folderListener); folderSelector.setWidth(200); templates = ItemFactory.newTemplateSelector(false, null); templates.addChangedHandler(changedHandler); templates.setValues(incremental.getTemplateIds()); form.setFields(prefix, frequency, folderSelector, templates); addMember(form); }
Example #30
Source File: AddForm.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
public AddForm() { setHeaderControls(HeaderControls.HEADER_LABEL, HeaderControls.CLOSE_BUTTON); setTitle(I18N.message("addform")); setAutoSize(true); setCanDragResize(true); setIsModal(true); setShowModalMask(true); centerInPage(); formSelector = ItemFactory.newFormSelector(); formSelector.setWrapTitle(false); formSelector.setRequired(true); TextItem title = ItemFactory.newTextItem("title", "title", null); title.setRequired(true); ButtonItem save = new ButtonItem(); save.setTitle(I18N.message("save")); save.setAutoFit(true); save.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { onSave(); } }); form.setNumCols(2); form.setTitleOrientation(TitleOrientation.TOP); form.setFields(title, formSelector, save); addItem(form); }