public abstract class GenericInflater<T,P extends GenericInflater.Parent<T>>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
GenericInflater.Factory<T> |
static interface |
GenericInflater.Parent<T> |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object[] |
mConstructorArgs |
protected java.lang.Class<?>[] |
mConstructorSignature |
| 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 |
|---|---|
void |
addFactory(GenericInflater.Factory<T> factory) |
abstract GenericInflater<T,P> |
cloneInContext(android.content.Context newContext) |
T |
createItem(java.lang.String name,
java.lang.String prefix,
android.util.AttributeSet attrs) |
protected java.lang.reflect.Constructor<?> |
findConstructor(java.lang.Class<?> clazz) |
java.lang.ClassLoader |
getClassLoader() |
android.content.Context |
getContext() |
GenericInflater.Factory<T> |
getFactory()
Deprecated.
|
GenericInflater.Factory<T> |
getFactory(int position) |
int |
getFactoryCount() |
T |
inflate(int resource) |
T |
inflate(int resource,
P root) |
T |
inflate(int resource,
P root,
boolean attachToRoot) |
T |
inflate(org.xmlpull.v1.XmlPullParser parser) |
T |
inflate(org.xmlpull.v1.XmlPullParser parser,
P root) |
T |
inflate(org.xmlpull.v1.XmlPullParser parser,
P root,
boolean attachToRoot) |
protected java.lang.Object[] |
obtainConstructorArgs(java.lang.String name,
android.util.AttributeSet attrs,
java.lang.reflect.Constructor<?> constructor) |
protected boolean |
onCreateCustomFromTag(org.xmlpull.v1.XmlPullParser parser,
T parent,
android.util.AttributeSet attrs) |
protected T |
onCreateItem(java.lang.String name,
android.util.AttributeSet attrs) |
protected P |
onMergeRoots(P givenRoot,
boolean attachToGivenRoot,
P xmlRoot) |
void |
registerPackage(java.lang.String name) |
void |
removeFactory(GenericInflater.Factory<T> factory) |
void |
setClassLoader(java.lang.ClassLoader classLoader) |
void |
setFactory(GenericInflater.Factory<T> factory) |
void |
unregisterPackage(java.lang.String string) |
protected final java.lang.Object[] mConstructorArgs
protected final java.lang.Class<?>[] mConstructorSignature
protected GenericInflater(android.content.Context context)
protected GenericInflater(GenericInflater<T,P> original, android.content.Context newContext)
public void addFactory(GenericInflater.Factory<T> factory)
public abstract GenericInflater<T,P> cloneInContext(android.content.Context newContext)
public final T createItem(java.lang.String name, java.lang.String prefix, android.util.AttributeSet attrs) throws java.lang.ClassNotFoundException, android.view.InflateException
java.lang.ClassNotFoundExceptionandroid.view.InflateExceptionprotected java.lang.reflect.Constructor<?> findConstructor(java.lang.Class<?> clazz)
throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodExceptionpublic java.lang.ClassLoader getClassLoader()
public android.content.Context getContext()
@Deprecated public final GenericInflater.Factory<T> getFactory()
public final GenericInflater.Factory<T> getFactory(int position)
public final int getFactoryCount()
public T inflate(int resource)
public T inflate(org.xmlpull.v1.XmlPullParser parser)
protected java.lang.Object[] obtainConstructorArgs(java.lang.String name,
android.util.AttributeSet attrs,
java.lang.reflect.Constructor<?> constructor)
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(java.lang.String name, android.util.AttributeSet attrs) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic void registerPackage(java.lang.String name)
public void removeFactory(GenericInflater.Factory<T> factory)
public void setClassLoader(java.lang.ClassLoader classLoader)
public void setFactory(GenericInflater.Factory<T> factory)
public void unregisterPackage(java.lang.String string)
Copyright © 2012-2013. All Rights Reserved.