public AbstractFormVaadinERPWindowFactory(IDictionaryService dictionaryService, IVaadinContainerFactory containerFactory, FormFieldFactory formFieldFactory, VaadinBindingFormToolkit vaadinToolkit, BindingToolkit bindingToolkit, FormRegistryService formRegistryService, UIEntityActionManager uiEntityActionManager) { super(dictionaryService, containerFactory, formFieldFactory); this.vaadinToolkit = vaadinToolkit; this.bindingToolkit = bindingToolkit; this.formRegistryService = formRegistryService; this.uiEntityActionManager = uiEntityActionManager; }
public VaadinWindowImpl(IWindowDefinition windowDefinition, IVaadinContainerFactory containerFactory, IDictionaryService dictionaryService, UIApplication<IUnoVaadinApplication> application, FormFieldFactory formFieldFactory) { super(windowDefinition, containerFactory, dictionaryService, application); this.formFieldFactory = formFieldFactory; this.multipleLevels = windowDefinition.getRootTab().getChildren().size() > 0; vaadinRootTab = createTabs(windowDefinition.getRootTab()); firstContainer.setContent(vaadinRootTab.getMainContainer()); if (multipleLevels) { secondContainer.setContent(tabMap.get(windowDefinition.getRootTab().getChildren().get(0).getId()).getMainContainer()); } }
public SPARQLUpdateTransformDialog(SPARQLUpdateTransformConfig oldConfig) { this.config = oldConfig; queryForm = new Form(); queryForm.setSizeFull(); queryForm.setFormFieldFactory(new FormFieldFactory() { @Override public Field createField(Item item, Object propertyId, Component uiContext) { if (propertyId.equals("query")) { TextArea query = new TextArea("SPARQL Query"); query.setSizeFull(); query.setRows(25); query.addValidator(new AbstractStringValidator("Must be a valid UPDATE query!") { @Override protected boolean isValidString(String value) { SPARQLParser parser = new SPARQLParser(); try { ParsedUpdate parsed = parser.parseUpdate(value, null); } catch (Exception ex) { setErrorMessage(ex.getMessage()); return false; } return true; } }); return query; } return null; } }); queryForm.setItemDataSource(new BeanItem<SPARQLUpdateTransformConfig>(config)); addComponent(queryForm); }
public DefaultVaadinERPWindowFactory(IDictionaryService dictionaryService, IVaadinContainerFactory containerFactory, FormFieldFactory formFieldFactory) { this.dictionaryService = dictionaryService; this.containerFactory = containerFactory; this.formFieldFactory = formFieldFactory; }
public FormFieldFactory getFormFieldFactory() { return formFieldFactory; }
public VaadinTabImpl(ITabDefinition tabDefinition, IVaadinContainerFactory containerFactory, UIApplication<IUnoVaadinApplication> application, FormFieldFactory formFieldFactory) { super(tabDefinition, containerFactory, application); this.formFieldFactory = formFieldFactory; }