Search in sources :

Example 1 with DesktopComponentsFactory

use of com.haulmont.cuba.desktop.gui.DesktopComponentsFactory in project cuba by cuba-platform.

the class DesktopFieldGroupTest method createComponentsFactory.

@Override
protected UiComponents createComponentsFactory() {
    return new DesktopComponentsFactory() {

        @Override
        public List<ComponentGenerationStrategy> getComponentGenerationStrategies() {
            DefaultComponentGenerationStrategy strategy = new DefaultComponentGenerationStrategy(messages);
            strategy.setUiComponents(this);
            return Collections.singletonList(strategy);
        }
    };
}
Also used : ComponentGenerationStrategy(com.haulmont.cuba.gui.components.ComponentGenerationStrategy) DefaultComponentGenerationStrategy(com.haulmont.cuba.gui.components.factories.DefaultComponentGenerationStrategy) DesktopComponentsFactory(com.haulmont.cuba.desktop.gui.DesktopComponentsFactory) DefaultComponentGenerationStrategy(com.haulmont.cuba.gui.components.factories.DefaultComponentGenerationStrategy)

Aggregations

DesktopComponentsFactory (com.haulmont.cuba.desktop.gui.DesktopComponentsFactory)1 ComponentGenerationStrategy (com.haulmont.cuba.gui.components.ComponentGenerationStrategy)1 DefaultComponentGenerationStrategy (com.haulmont.cuba.gui.components.factories.DefaultComponentGenerationStrategy)1