Back to project page android-tools.
The source code is released under:
MIT License
If you think the Android project android-tools listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.comfreeze.lib.views; //ww w. j a v a 2 s . c om import android.view.LayoutInflater; import android.view.View; abstract public class CFZViewHelper<E> { private static final String TAG = CFZViewHelper.class.getSimpleName(); public static boolean silent = true; public View view; public Object data; public LayoutInflater inflater; private Class<E> clazz; public CFZViewHelper() { this.clazz = (Class<E>) this.getClass(); } public E setInflater(LayoutInflater inflater) { this.inflater = inflater; return (E) this; } public LayoutInflater getInflater() { return this.inflater; } public E setView(View view) { this.view = view; initView(); this.view.setTag(this); return (E) this; } public View getView() { return this.view; } public E loadData(Object data) { this.data = data; processData(this.data); return (E) this; } abstract public E processData(Object data); abstract public E initView(); }