use of com.haulmont.cuba.gui.components.ComponentGenerationStrategy 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);
}
};
}
use of com.haulmont.cuba.gui.components.ComponentGenerationStrategy 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);
}
};
}
Aggregations