/*
Initialize the list view
555530
function() {
            ListView.__super__.initialize.apply(this, arguments);

            this._filter = null;
            this.items = {};


            if (this.options.collection instanceof Collection) {
                this.collection = this.options.collection;
            } else {
                this.collection = new this.Collection(this.options.collection);
            }
            this.listenTo(this.collection, "reset", function() {
                this.resetModels();
            });
            this.listenTo(this.collection, "sort", function() {
                this.orderItems();
            });
            this.listenTo(this.collection, "add", function(elementmodel, collection, options) {
                this.addModel(elementmodel, options);
            });
            this.listenTo(this.collection, "remove", function(elementmodel) {
                this.removeModel(elementmodel)
            });
            this.listenTo(this.collection.queue, "tasks", function() {
                this.update();
            });

            this.resetModels({
                silent: true
            });

            if (this.options.loadAtInit) this.getItems();
            if (this.options.baseFilter) this.filter(this.options.baseFilter);

            return this.update();
        }
244355
private void initialize() {
		this.setLayout(new CardLayout());
		this.setName(getPanelName(getContextIndex()));
		this.add(getPanelSession(), getPanelSession().getName());
	}
490297
private void init() {
        this.setOrientation(LinearLayout.VERTICAL);
        mLayoutParams = new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
    }
640669
private void initialize() {
		this.setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));
		this.setResizable(false);
		this.setContentPane(getAboutPanel());
		this.pack();
		centerFrame();
	}
643531
private void initialize() {
        this.setLayout(new CardLayout());
        this.setName(PANEL_NAME);
        regexesPanel = new MultipleRegexesOptionsPanel(View.getSingleton().getSessionDialog());
        this.add(getPanelSession(), getPanelSession().getName());
	}
308567
def initialize_view(self):
        """"""
        self.clear()
        self.item_depth = 0   # To be use for collapsing/expanding one level
        self.item_list = []  # To be use for collapsing/expanding one level
        self.items_to_be_shown = {}
        self.current_view_depth = 0
1213644
@Override
    public void onScroll(
            AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
        SimpleMonthView child = (SimpleMonthView) view.getChildAt(0);
        if (child == null) {
            return;
        }

        // Figure out where we are
        long currScroll = view.getFirstVisiblePosition() * child.getHeight() - child.getBottom();
        mPreviousScrollPosition = currScroll;
        mPreviousScrollState = mCurrentScrollState;
    }
325177
private void initListBlock(final Block root)
    {
        Line line = root.lines;
        line = line.next;
        while (line != null)
        {
            final LineType t = line.getLineType(this.config);
            if ((t == LineType.OLIST || t == LineType.ULIST)
                    || (!line.isEmpty && (line.prevEmpty && line.leading == 0 && !(t == LineType.OLIST || t == LineType.ULIST))))
            {
                root.split(line.previous).type = BlockType.LIST_ITEM;
            }
            line = line.next;
        }
        root.split(root.lineTail).type = BlockType.LIST_ITEM;
    }
137540
protected void setUpListView() {
        // Transparent background on scroll
        setCacheColorHint(0);
        // No dividers
        setDivider(null);
        // Items are clickable
        setItemsCanFocus(true);
        // The thumb gets in the way, so disable it
        setFastScrollEnabled(false);
        setVerticalScrollBarEnabled(false);
        setOnScrollListener(this);
        setFadingEdgeLength(0);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            // Make the scrolling behavior nicer
            setFriction(ViewConfiguration.getScrollFriction() * mFriction);
        }
    }
126645
private void initialize() {
        this.setTitle(Constant.messages.getString("history.managetags.title"));
        this.setContentPane(getJPanel());
        if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {
        	this.setSize(panelWidth, panelHeight);
        }
        this.addWindowListener(new java.awt.event.WindowAdapter() {   
        	@Override
        	public void windowOpened(java.awt.event.WindowEvent e) {    
        	} 

        	@Override
        	public void windowClosing(java.awt.event.WindowEvent e) {
        	}
        });

		pack();
	}
372548
private void initComponents() {

        foundModel = new DefaultListModel<>();
        progressModel = new DefaultListModel<>();
        contentPanel = new JPanel();
        secondPanel = new JPanel();
        jScrollPane1 = new JScrollPane();
        jScrollPane2 = new JScrollPane();
        jList1 = new JList<>();
        jList2 = new JList<>();
        jLabel1 = new JLabel();
        jLabel2 = new JLabel();
        jLabel3 = new JLabel();
        firstPanel = new JPanel();
        sourceRootLabel = new JLabel();
        sourceRootBox = new JTextField();
        srcFileIconLabel = new JLabel();
        card1TitleLabel = new JLabel();
        chooser = new JFileChooser();
        browseButton = new JButton();
        card1Explanation1Label = new JLabel();
        card1Explanation2Label = new JLabel();
        card1Explanation3Label = new JLabel();
        previousButton = new JButton();
        nextButton = new JButton();
        finshButton = new JButton();
        errorMessageLabel = new JLabel();
        Dimension d = new Dimension(600, 425);
        this.setPreferredSize(d);
        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("SpotBugs Source Directory Configuration Wizard");
        getContentPane().setLayout(null);

        jList2.setModel(progressModel);

        contentPanel.setLayout(new CardLayout());

        secondPanel.setLayout(null);

        jScrollPane1.setViewportView(jList1);

        secondPanel.add(jScrollPane1);
        jScrollPane1.setBounds(250, 50, 258, 130);

        jLabel1.setFont(new java.awt.Font("SansSerif", 0, 14));
        jLabel1.setText("Source directories found:");
        secondPanel.add(jLabel1);
        jLabel1.setBounds(250, 30, 173, 17);

        jLabel2.setFont(new java.awt.Font("SansSerif", 0, 14));
        jLabel2.setText("Click Finish to accept this");
        secondPanel.add(jLabel2);
        jLabel2.setBounds(40, 90, 173, 17);

        jLabel3.setFont(new java.awt.Font("SansSerif", 0, 14));
        jLabel3.setText("list of source directories");
        secondPanel.add(jLabel3);
        jLabel3.setBounds(40, 110, 165, 17);

        contentPanel.add(secondPanel, "card2");

        jScrollPane2.setViewportView(jList2);

        firstPanel.add(jScrollPane2);
        jScrollPane2.setBounds(200, 250, 250, 75);

        firstPanel.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
        firstPanel.setLayout(null);

        sourceRootLabel.setText("Top-level source directory:");
        firstPanel.add(sourceRootLabel);
        sourceRootLabel.setBounds(30, 220, 168, 17);
        firstPanel.add(sourceRootBox);
        sourceRootBox.setBounds(200, 210, 250, 29);

        srcFileIconLabel.setIcon(new ImageIcon("/usr/share/icons/default.kde/128x128/mimetypes/source_java.png")); // NOI18N
        firstPanel.add(srcFileIconLabel);
        srcFileIconLabel.setBounds(50, 80, 128, 128);

        card1TitleLabel.setFont(new java.awt.Font("Dialog", 1, 24));
        card1TitleLabel.setText("Where are your source files?");
        firstPanel.add(card1TitleLabel);
        card1TitleLabel.setBounds(150, 20, 353, 29);

        browseButton.setText("Browse...");
        firstPanel.add(browseButton);

        browseButton.addActionListener(evt -> {
            chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            chooser.setMultiSelectionEnabled(true);
            chooser.setApproveButtonText("Choose");
            chooser.setDialogTitle("Choose the directory");

            if (chooser.showOpenDialog(SourceDirectoryWizard.this) == JFileChooser.APPROVE_OPTION) {
                File[] selectedFiles = chooser.getSelectedFiles();
                for (File selectedFile : selectedFiles) {
                    sourceRootBox.setText(selectedFile.getAbsolutePath());
                }
                nextButton.setEnabled(!"".equals(sourceRootBox.getText()));
            }
        });

        browseButton.setBounds(450, 210, 100, 28);

        card1Explanation1Label.setFont(new java.awt.Font("SansSerif", 0, 14));
        card1Explanation1Label.setText("Enter the top-level directory");
        firstPanel.add(card1Explanation1Label);
        card1Explanation1Label.setBounds(230, 80, 193, 17);

        card1Explanation2Label.setFont(new java.awt.Font("SansSerif", 0, 14));
        card1Explanation2Label.setText("containing your application's");
        firstPanel.add(card1Explanation2Label);
        card1Explanation2Label.setBounds(230, 100, 198, 17);

        card1Explanation3Label.setFont(new java.awt.Font("SansSerif", 0, 14));
        card1Explanation3Label.setText("source files.");
        firstPanel.add(card1Explanation3Label);
        card1Explanation3Label.setBounds(230, 120, 82, 17);

        contentPanel.add(firstPanel, "card1");

        getContentPane().add(contentPanel);
        contentPanel.setBounds(0, 0, 750, 300);

        previousButton.setText("<< Previous");
        previousButton.addActionListener(evt -> previousButtonActionPerformed(evt));
        getContentPane().add(previousButton);
        previousButton.setBounds(150, 350, 100, 29);

        nextButton.setText("Next >>");
        nextButton.addActionListener(evt -> nextButtonActionPerformed(evt));
        getContentPane().add(nextButton);
        nextButton.setBounds(250, 350, 100, 29);

        finshButton.setText("Finish");
        finshButton.addActionListener(evt -> finshButtonActionPerformed(evt));
        getContentPane().add(finshButton);
        finshButton.setBounds(350, 350, 100, 29);

        errorMessageLabel.setFont(new java.awt.Font("SansSerif", 1, 14)); // NOI18N
        errorMessageLabel.setForeground(new java.awt.Color(255, 0, 0));
        getContentPane().add(errorMessageLabel);
        errorMessageLabel.setBounds(0, 300, 500, 20);

        pack();
    }
1073085
protected function init()
    {
        $this->addToStoreList('active', ActiveListStore::class);
        $this->addToStoreList('sorting', SortingListStore::class);
        $this->addToStoreList('hidden', HiddenListStore::class);
        $this->addToStoreList('not_hidden', NotHiddenListStore::class);
    }
1038582
private void initializeListDialog() {
        MaterialDialog.Builder builder = new MaterialDialog.Builder(getActivity());
        configureHeaderDialogBuilder(builder);
        configureButtonBarDialogBuilder(builder);
        builder.setItems(R.array.list_items, createSingleChoiceListener());
        listDialog = builder.create();
    }
1318562
def init_layout(self):
        
        super(AndroidListView, self).init_layout()
        d = self.declaration
        w = self.widget

        # Prepare adapter
        adapter = self.adapter = BridgedRecyclerAdapter(w)

        # I'm sure this will make someone upset haha
        adapter.setRecyleListener(adapter.getId())
        adapter.onRecycleView.connect(self.on_recycle_view)
        #adapter.onVisibleCountChanged.connect(self.on_visible_count_changed)
        #adapter.onScrollStateChanged.connect(self.on_scroll_state_changed)
        self.set_items(d.items)
        w.setAdapter(adapter)
        #self.set_selected(d.selected)
        self.refresh_views()
21583
private void initialize() {
        this.setTitle(Constant.messages.getString("filter.changeua.title"));
        this.setContentPane(getJPanel());
	    if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {
	    	this.setSize(375, 173);
	    }
	    this.setPreferredSize(new Dimension(375, 173));
        
        for (int i=0; i<FilterChangeUserAgent.userAgentName.length; i++) {
            cmbUserAgent.addItem(FilterChangeUserAgent.userAgentName[i]);
        }
		this.pack();
	}
1261230
private void initListeners() {
        listViewProperty().addListener((listObj, oldList, newList) -> {
            if (newList != null) {
                if (getListView() instanceof JFXListView) {
                    ((JFXListView<?>) newList).currentVerticalGapProperty().addListener((o, oldVal, newVal) -> {
                        cellRippler.rippler.setClip(null);
                        if (newVal.doubleValue() != 0) {
                            playExpandAnimation = true;
                            getListView().requestLayout();
                        } else {
                            // fake expand state
                            double gap = clip.getY() * 2;
                            gapAnimation = new Timeline(
                                new KeyFrame(Duration.millis(240),
                                    new KeyValue(this.translateYProperty(),
                                        -gap / 2 - (gap * (getIndex())),
                                        Interpolator.EASE_BOTH)
                                ));
                            gapAnimation.play();
                            gapAnimation.setOnFinished((finish) -> {
                                requestLayout();
                                Platform.runLater(() -> getListView().requestLayout());
                            });
                        }
                    });

                    selectedProperty().addListener((o, oldVal, newVal) -> {
                        if (newVal) {
                            selectionChanged = true;
                        }
                    });
                }
1330427
private void init( List<T> list ) {
		this.list = list;
		indexes = new int[ list.size() ];
		counters = new int[ list.size() ];

		for( int i = 0; i < indexes.length ; i++ ) {
			counters[i] = indexes[i] = i;
		}

		total = 1;
		for( int i = 2; i <= indexes.length ; i++ ) {
			total *= i;
		}

		permutation = 0;
	}