Examples of DBDictionaryItemWrapper


Examples of pl.net.bluesoft.rnd.processtool.ui.dict.wrappers.DBDictionaryItemWrapper

        BeanItemContainer<DBDictionaryItemWrapper> container = new BeanItemContainer<DBDictionaryItemWrapper>(DBDictionaryItemWrapper.class);
        List<ProcessDBDictionaryItem> items = new ArrayList<ProcessDBDictionaryItem>(dict.getItems().values());
        container.addAll(from(items).select(new F<ProcessDBDictionaryItem, DBDictionaryItemWrapper>() {
      @Override
      public DBDictionaryItemWrapper invoke(ProcessDBDictionaryItem x) {
        return new DBDictionaryItemWrapper(x);
      }
    }));
        container.sort(new Object[] {"key"}, new boolean[] {false});
        dictItemContainers.put(dict, container);
    }
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.ui.dict.wrappers.DBDictionaryItemWrapper

                new BeanItemContainer<ProcessDBDictionary>(ProcessDBDictionary.class, dictSet), "languageCode");

        addButton.addListener(new ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                showItemDetails(new BeanItem<DBDictionaryItemWrapper>(new DBDictionaryItemWrapper()), new DictionaryItemTableBuilder.SaveCallback<DBDictionaryItemWrapper>() {
                    @Override
                    public void onSave(BeanItem<DBDictionaryItemWrapper> item) {
                        prepareAndSaveNewItem(item, (ProcessDBDictionary) localeSelect.getValue());
                    }
                });
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.ui.dict.wrappers.DBDictionaryItemWrapper

    public String getMessage(String key, String defaultValue) {
        return i18NSource.getMessage(key, defaultValue);
    }

    private void prepareAndSaveNewItem(BeanItem<DBDictionaryItemWrapper> item, ProcessDBDictionary dictionary) {
    DBDictionaryItemWrapper bean = item.getBean();
        ProcessDictionaryItem lookedUpItem = dictionary.lookup(bean.getKey());
        if (lookedUpItem != null) {
            validationNotification(application, i18NSource, getMessage("validate.dictentry.exists"));
        }
        else {
            bean.getWrappedObject().setDictionary(dictionary);
            dictionary.addItem(bean.getWrappedObject());
            dictItemContainers.get(dictionary).addBean(bean);
            handleItemSave(bean);
      builder.closeDetailsWindow();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.