Search in sources :

Example 1 with DefaultComponentGenerationStrategy

use of com.haulmont.cuba.gui.components.DefaultComponentGenerationStrategy in project cuba by cuba-platform.

the class DesktopFieldGroupTest method createComponentsFactory.

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

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

Example 2 with DefaultComponentGenerationStrategy

use of com.haulmont.cuba.gui.components.DefaultComponentGenerationStrategy in project cuba by cuba-platform.

the class WebFieldGroupTest method createComponentsFactory.

@Override
protected ComponentsFactory createComponentsFactory() {
    return new WebComponentsFactory() {

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

Aggregations

ComponentGenerationStrategy (com.haulmont.cuba.gui.components.ComponentGenerationStrategy)2 DefaultComponentGenerationStrategy (com.haulmont.cuba.gui.components.DefaultComponentGenerationStrategy)2 DesktopComponentsFactory (com.haulmont.cuba.desktop.gui.DesktopComponentsFactory)1 WebComponentsFactory (com.haulmont.cuba.web.gui.WebComponentsFactory)1