Lines Matching refs:name

76          * @param name Tag name to be inflated.
81 public T onCreateItem(String name, Context context, AttributeSet attrs);
92 public T onCreateItem(String name, Context context, AttributeSet attrs) {
93 T v = mF1.onCreateItem(name, context, attrs);
95 return mF2.onCreateItem(name, context, attrs);
144 * tag name, so it should end with a period.
170 * name. If the factory returns an item, add that to the hierarchy. If it
171 * returns null, proceed to call onCreateItem(name).
181 * each element name as the XML is parsed. If the factory returns an item,
351 * Low-level function for instantiating by name. This attempts to
352 * instantiate class of the given <var>name</var> found in this
359 * the first time createItem() is called for a class of a particular name,
360 * the latter every time there-after for that class name.
362 * @param name The full name of the class to be instantiated.
367 public final T createItem(String name, String prefix, AttributeSet attrs)
369 Constructor constructor = (Constructor) sConstructorMap.get(name);
376 prefix != null ? (prefix + name) : name);
378 sConstructorMap.put(name, constructor);
389 + (prefix != null ? (prefix + name) : name));
408 * given the xml element name. Override it to handle custom item objects. If
410 * super.onCreateItem(name) for names you do not recognize.
412 * @param name The fully qualified class name of the item to be create.
416 protected T onCreateItem(String name, AttributeSet attrs) throws ClassNotFoundException {
417 return createItem(name, mDefaultPackage, attrs);
420 private final T createItemFromTag(XmlPullParser parser, String name, AttributeSet attrs) {
421 if (DEBUG) System.out.println("******** Creating item: " + name);
424 T item = (mFactory == null) ? null : mFactory.onCreateItem(name, mContext, attrs);
427 if (-1 == name.indexOf('.')) {
428 item = onCreateItem(name, attrs);
430 item = createItem(name, null, attrs);
443 + ": Error inflating class " + name);
450 + ": Error inflating class " + name);
479 String name = parser.getName();
481 T item = createItemFromTag(parser, name, attrs);