All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.talk2object.plum.interaction.viewbuilder.AbstractDelegateViewBuilder Maven / Gradle / Ivy

There is a newer version: 0.1.22
Show newest version
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