public abstract class GenericInflater<T,P extends GenericInflater.Parent<T>> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
GenericInflater.Factory<T> |
static interface |
GenericInflater.Parent<T> |
| Modifier and Type | Field and Description |
|---|---|
protected Object[] |
constructorArgs |
protected static HashMap<String,Constructor<?>> |
constructorMap |
protected static Class<?>[] |
constructorSignature |
protected android.content.Context |
context |
| Modifier | Constructor and Description |
|---|---|
protected |
GenericInflater(android.content.Context context) |
protected |
GenericInflater(GenericInflater<T,P> original,
android.content.Context newContext) |
| Modifier and Type | Method and Description |
|---|---|
abstract GenericInflater<T,P> |
cloneInContext(android.content.Context newContext) |
T |
createItem(String name,
String prefix,
android.util.AttributeSet attrs) |
protected Constructor<?> |
findConstructor(Class<?> clazz) |
android.content.Context |
getContext() |
String |
getDefaultPackage() |
GenericInflater.Factory<T> |
getFactory() |
T |
inflate(int resource,
P root) |
T |
inflate(int resource,
P root,
boolean attachToRoot) |
T |
inflate(org.xmlpull.v1.XmlPullParser parser,
P root) |
T |
inflate(org.xmlpull.v1.XmlPullParser parser,
P root,
boolean attachToRoot) |
protected boolean |
onCreateCustomFromTag(org.xmlpull.v1.XmlPullParser parser,
T parent,
android.util.AttributeSet attrs) |
protected T |
onCreateItem(String name,
android.util.AttributeSet attrs) |
protected P |
onMergeRoots(P givenRoot,
boolean attachToGivenRoot,
P xmlRoot) |
void |
setDefaultPackage(String defaultPackage) |
void |
setFactory(GenericInflater.Factory<T> factory) |
protected static final HashMap<String,Constructor<?>> constructorMap
protected static final Class<?>[] constructorSignature
protected final Object[] constructorArgs
protected final android.content.Context context
protected GenericInflater(android.content.Context context)
protected GenericInflater(GenericInflater<T,P> original, android.content.Context newContext)
public abstract GenericInflater<T,P> cloneInContext(android.content.Context newContext)
public final T createItem(String name, String prefix, android.util.AttributeSet attrs) throws ClassNotFoundException, android.view.InflateException
ClassNotFoundExceptionandroid.view.InflateExceptionprotected Constructor<?> findConstructor(Class<?> clazz) throws NoSuchMethodException
NoSuchMethodExceptionpublic android.content.Context getContext()
public String getDefaultPackage()
public final GenericInflater.Factory<T> getFactory()
protected boolean onCreateCustomFromTag(org.xmlpull.v1.XmlPullParser parser,
T parent,
android.util.AttributeSet attrs)
throws org.xmlpull.v1.XmlPullParserException
org.xmlpull.v1.XmlPullParserExceptionprotected T onCreateItem(String name, android.util.AttributeSet attrs) throws ClassNotFoundException
ClassNotFoundExceptionpublic void setDefaultPackage(String defaultPackage)
public void setFactory(GenericInflater.Factory<T> factory)
Copyright © 2012-2013. All Rights Reserved.