com.talk2object.plum.interaction.viewbuilder.AbstractDelegateViewBuilder Maven / Gradle / Ivy
package com.talk2object.plum.interaction.viewbuilder;
import com.talk2object.plum.interaction.application.PlumApplicationContextUtils;
import com.talk2object.plum.interaction.viewgeneneration.AbstractViewBuilder;
import com.talk2object.plum.interaction.viewgeneneration.ViewBuildContext;
import com.talk2object.plum.interaction.viewgeneneration.ViewFactory;
import com.talk2object.plum.view._abstract.window.UIComponent;
public abstract class AbstractDelegateViewBuilder extends AbstractViewBuilder {
protected abstract Class getDelegateModelClass();
@Override
public UIComponent build(Object model, String viewClass,
ViewBuildContext context, UIComponent parentView) {
ViewFactory factory = PlumApplicationContextUtils.getViewFactory();
return factory.create(model, getDelegateModelClass(), viewClass,
context, parentView);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy