Java 类com.vaadin.ui.FormFieldFactory 实例源码

项目:openeos    文件:AbstractFormVaadinERPWindowFactory.java   
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;
}
项目:openeos    文件:VaadinWindowImpl.java   
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());
    }
}
项目:lodms-plugins    文件:SPARQLUpdateTransformDialog.java   
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);
}
项目:openeos    文件:DefaultVaadinERPWindowFactory.java   
public DefaultVaadinERPWindowFactory(IDictionaryService dictionaryService, IVaadinContainerFactory containerFactory,
        FormFieldFactory formFieldFactory) {
    this.dictionaryService = dictionaryService;
    this.containerFactory = containerFactory;
    this.formFieldFactory = formFieldFactory;
}
项目:openeos    文件:DefaultVaadinERPWindowFactory.java   
public FormFieldFactory getFormFieldFactory() {
    return formFieldFactory;
}
项目:openeos    文件:VaadinTabImpl.java   
public VaadinTabImpl(ITabDefinition tabDefinition, IVaadinContainerFactory containerFactory,
        UIApplication<IUnoVaadinApplication> application, FormFieldFactory formFieldFactory) {
    super(tabDefinition, containerFactory, application);
    this.formFieldFactory = formFieldFactory;
}