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

com.talk2object.plum.viewgeneration.AbstractSimpleViewBuilder Maven / Gradle / Ivy

package com.talk2object.plum.viewgeneration;

import com.talk2object.plum.view.component.Component;

public abstract class AbstractSimpleViewBuilder implements SimpleViewBuilder {

	@Override
	public Component build(Object model, Class modelClass, Class viewClass,
			ViewBuildContext context) {
		return build(model, context);

	}

	public abstract Component build(Object model, ViewBuildContext context);

	@Override
	public String toString() {

		String modelClassName = (getModelClass() == null) ? "null"
				: getModelClass().getName();
		String viewClassName = (getViewClass() == null) ? "null"
				: getViewClass().getSimpleName();
		return String.format("%-32s: %-64s --> %-32s", this.getClass()
				.getSimpleName(), modelClassName, viewClassName);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy