This method is only called, when this pagerAdapter is initialized.
9997
@Override
    public final Object instantiateItem(final ViewGroup container, final int position) {
        if (Constants.DEBUG) {
            Log.i("InfiniteViewPager", String.format("instantiating position %s", position));
        }
        final PageModel<T> model = createPageModel(position);
        mPageModels[position] = model;
        container.addView(model.getParentView());
        return model;
    }
1057125
private void initialize() {
        this.setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));
        this.setContentPane(getJPanel());
        if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {
        	this.setSize(282, 118);
        }
        this.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        this.setResizable(false);
			
	}
668914
private void initListeners() {
		
		setOnTouchListener(new OnTouchListener() {

			@Override
			public boolean onTouch(View v, MotionEvent event) {

				if (event.getAction() == MotionEvent.ACTION_DOWN)
					scrollDisabled = true;

				else if (event.getAction() == MotionEvent.ACTION_UP)
					scrollDisabled = false;

				return false;
			}
		});
	}
190901
public void init() {
        this.session.getAgenda().getAgendaGroup( "register neighbor" ).setFocus();
        this.session.fireAllRules();
        this.session.getAgenda().getAgendaGroup( "calculate" ).clear();
    }
30417
private void initialize() {
		// ZAP: Rebrand
		this.setIconImages(DisplayUtils.getZapIconImages());

		this.setVisible(false);
		this.setTitle(Constant.PROGRAM_NAME);

    	final Dimension dim = restoreWindowSize();
    	if (dim == null) {
    		this.setSize(WINDOW_DEFAULT_WIDTH, WINDOW_DEFAULT_HEIGHT);
    	}
    	final Point point = restoreWindowLocation();
    	if (point == null) {
    		centerFrame();
    	}
    	restoreWindowState();
    	this.addWindowStateListener(new FrameWindowStateListener());
    	this.addComponentListener(new FrameResizedListener());
	}
240936
function () {
				BaseController.prototype.onInit.call(this);

				// manually call the handler once at startup as device API won't do this for us
				this._onOrientationChange({
					landscape: Device.orientation.landscape
				});

				this.handleDocumentationDisclaimer();
			}
895045
def init_widget(self):
        
        super(AndroidCalendarView, self).init_widget()

        #: Setup listener
        w = self.widget
        w.setOnDateChangeListener(w.getId())
        w.onSelectedDayChange.connect(self.on_selected_day_change)
339944
@Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        ensureContent();
    }
5802
private void initializeLandscapeListListener() {
    instructionLayoutText.setOnClickListener(new OnClickListener() {
      @Override
      public void onClick(View instructionLayoutText) {
        boolean instructionsVisible = instructionListLayout.getVisibility() == VISIBLE;
        if (!instructionsVisible) {
          showInstructionList();
        } else {
          hideInstructionList();
        }
      }
    });
  }
590516
@Override
  public void initializeListener(QueryBatcher queryBatcher) {
    HostAvailabilityListener hostAvailabilityListener = HostAvailabilityListener.getInstance(queryBatcher);
    if ( hostAvailabilityListener != null ) {
      BatchFailureListener<QueryBatch> retryListener = hostAvailabilityListener.initializeRetryListener(this);
      if ( retryListener != null )  onFailure(retryListener);
    }
    NoResponseListener noResponseListener = NoResponseListener.getInstance(queryBatcher);
    if ( noResponseListener != null ) {
      BatchFailureListener<QueryBatch> noResponseRetryListener = noResponseListener.initializeRetryListener(this);
      if ( noResponseRetryListener != null )  onFailure(noResponseRetryListener);
    }
  }
50708
public void init(PageContext pageContext, ComponentPageImpl componentPage, boolean executeConstr) throws PageException {
	this.pageSource = componentPage.getPageSource();

	// extends
	if (!StringUtil.isEmpty(properties.extend)) {
	    base = ComponentLoader.searchComponent(pageContext, componentPage.getPageSource(), properties.extend, Boolean.TRUE, null, true, executeConstr);
	}
	else {
	    CIPage p = ((ConfigWebImpl) pageContext.getConfig()).getBaseComponentPage(pageSource.getDialect(), pageContext);
	    if (!componentPage.getPageSource().equals(p.getPageSource())) {
		base = ComponentLoader.loadComponent(pageContext, p, "Component", false, false, true, executeConstr);
	    }
	}

	if (base != null) {
	    this.dataMemberDefaultAccess = base.dataMemberDefaultAccess;
	    this._static = new StaticScope(base._static, this, componentPage, dataMemberDefaultAccess);
	    // this._triggerDataMember=base._triggerDataMember;
	    this.absFin = base.absFin;
	    _data = base._data;
	    _udfs = new HashMapPro<Key, UDF>(base._udfs);
	    setTop(this, base);
	}
	else {
	    this.dataMemberDefaultAccess = pageContext.getCurrentTemplateDialect() == CFMLEngine.DIALECT_CFML ? pageContext.getConfig().getComponentDataMemberDefaultAccess()
		    : Component.ACCESS_PRIVATE;
	    this._static = new StaticScope(null, this, componentPage, dataMemberDefaultAccess);
	    // TODO get per CFC setting
	    // this._triggerDataMember=pageContext.getConfig().getTriggerComponentDataMember();
	    _udfs = new HashMapPro<Key, UDF>();
	    _data = MapFactory.getConcurrentMap();
	}
	// implements
	if (!StringUtil.isEmpty(properties.implement)) {
	    if (absFin == null) absFin = new AbstractFinal();
	    absFin.add(InterfaceImpl.loadInterfaces(pageContext, getPageSource(), properties.implement));
	    // abstrCollection.implement(pageContext,getPageSource(),properties.implement);
	}

	/*
	 * print.e("--------------------------------------"); print.e(_getPageSource().getDisplayPath());
	 * print.e(abstrCollection.getUdfs());
	 */

	// scope
	useShadow = base == null ? (pageSource.getDialect() == CFMLEngine.DIALECT_CFML ? pageContext.getConfig().useComponentShadow() : false) : base.useShadow;
	if (useShadow) {
	    if (base == null) scope = new ComponentScopeShadow(this, MapFactory.getConcurrentMap());
	    else scope = new ComponentScopeShadow(this, (ComponentScopeShadow) base.scope, false);
	}
	else {
	    scope = new ComponentScopeThis(this);
	}
	initProperties();

	// invoke static constructor
	if (!componentPage._static.isInit()) {
	    componentPage._static.setInit(true);// this needs to happen before the call
	    try {
		componentPage.staticConstructor(pageContext, this);
	    }
	    catch (Throwable t) {
		ExceptionUtil.rethrowIfNecessary(t);
		componentPage._static.setInit(false);
		throw Caster.toPageException(t);
	    }
	}
    }
305339
private void initializeFragmentSwitcher() {
    mFragmentSwitcher = (FragmentSwitcher) findViewById(R.id.fragment_switcher);
    mFragmentAdapter = new FragmentStateArrayPagerAdapter(getSupportFragmentManager());
    mFragmentSwitcher.setAdapter(mFragmentAdapter);
  }
970680
public function init()
    {
        if ($this->countRows < 1) {
            $this->totalPages = 0;
            $this->currentPage = 0;

            return;
        }

        if ($this->limit < 10) {
            $this->limit = 10;
        }

        $this->totalPages = (int)($this->countRows / $this->limit);

        if ($this->countRows % $this->limit) {
            $this->totalPages++;
        }

        if ($this->totalPages === 0) {
            $this->totalPages = 1;
        }

        if ($this->currentPage < 0) {
            $this->currentPage = 0;
        }

        if ($this->currentPage > $this->totalPages) {
            $this->currentPage = $this->totalPages;
        }
    }
1139294
public synchronized static void init(final NewExtensionListener _listener)
    {
        PeerMonitor.listener = _listener;

        if (PeerMonitor.self == null)
        {
            PeerMonitor.self = new PeerMonitor();
        }
        else if (_listener != null)
        {
            logger.error("Call to PeerMonitor.init, but it's already initialized. Listener will not be set");
        }
    }
927680
@Override public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_tv_shows_sample);
    ButterKnife.inject(this);
    initializeDraggableView();
    initializeGridView();
    hookListeners();
  }
1027815
private void initializePortraitListListener() {
    instructionLayout.setOnClickListener(new OnClickListener() {
      @Override
      public void onClick(View instructionView) {
        boolean instructionsVisible = instructionListLayout.getVisibility() == VISIBLE;
        if (!instructionsVisible) {
          showInstructionList();
        } else {
          hideInstructionList();
        }
      }
    });
  }
234420
public void init(PageContext pageContext) {

        ServletContext servCtx = pageContext.getServletContext();
        ServletConfig servConfig = pageContext.getServletConfig();

        init(servCtx, servConfig);
    }