Lines Matching defs:factory
260 * name. If the factory returns a View, add that to the hierarchy. If it
268 * Return the current {@link Factory2}. Returns null if no factory is set
269 * or the set factory does not implement the {@link Factory2} interface.
271 * name. If the factory returns a View, add that to the hierarchy. If it
281 * after setting, you can not change the factory. This is
282 * called on each element name as the xml is parsed. If the factory returns
284 * factory default {@link #onCreateView} method is called.
287 * LayoutInflater and want to add your own factory to it, use
290 * merge your own factory with whatever factory the original instance is
293 public void setFactory(Factory factory) {
295 throw new IllegalStateException("A factory has already been set on this LayoutInflater");
297 if (factory == null) {
298 throw new NullPointerException("Given factory can not be null");
302 mFactory = factory;
304 mFactory = new FactoryMerger(factory, null, mFactory, mFactory2);
312 public void setFactory2(Factory2 factory) {
314 throw new IllegalStateException("A factory has already been set on this LayoutInflater");
316 if (factory == null) {
317 throw new NullPointerException("Given factory can not be null");
321 mFactory = mFactory2 = factory;
323 mFactory = mFactory2 = new FactoryMerger(factory, factory, mFactory, mFactory2);
330 public void setPrivateFactory(Factory2 factory) {
332 mPrivateFactory = factory;
334 mPrivateFactory = new FactoryMerger(factory, factory, mPrivateFactory, mPrivateFactory);