Initialize the handler list of this component. May only be called
when {@link #component()} can be relied on to return the
correct value.
516914
@SuppressWarnings("PMD.AvoidDuplicateLiterals")
    protected void initComponentsHandlers(
            ChannelReplacements channelReplacements) {
        handlers = new ArrayList<HandlerReference>();
        // Have a look at all methods.
        for (Method m : component().getClass().getMethods()) {
            maybeAddHandler(m, channelReplacements);
        }
        handlers = Collections.synchronizedList(handlers);
    }
1273547
public void init() {
      registerListener();
      for (int i = 0; i < entries.length; ++i) {
         final int index = i;
         awaitCounterOperation(readOnlyMap.eval(entries[index].key, ReadFunction.getInstance())
               .thenAccept(value -> initEntry(index, value)));
      }
      selector.updatePreferredKeys();
   }
949937
public void init()
    {
        ServletContext config=getServletContext();
        _servletHandler=((ServletHandler.Context)config).getServletHandler();

        Enumeration e = getInitParameterNames();
        while(e.hasMoreElements())
        {
            String param=(String)e.nextElement();
            String value=getInitParameter(param);
            String lvalue=value.toLowerCase();
            if ("nonContextServlets".equals(param))
            {
                _nonContextServlets=value.length()>0 && lvalue.startsWith("t");
            }
            if ("verbose".equals(param))
            {
                _verbose=value.length()>0 && lvalue.startsWith("t");
            }
            else
            {
                if (_parameters==null)
                    _parameters=new HashMap();
                _parameters.put(param,value);
            }
        }
    }
1216916
public function init()
    {
        $this->loadResources();
        $this->prepRequestData();

        // initialize the output component by loading it, the component will register
        // handlers on construction
        $this["output.service"];

        $this["logger.service"]("System")->info("Application initialized");

        $this["hooks.service"]->setParams([$this]);
        $this["hooks.service"]->exec("application.init.after");
    }
1096389
public void init()
	{
		pipeline = pipeline();
		
		pipeline.addLast("messageBufferEventDecoder", messageBufferEventDecoder);
		pipeline.addLast("upstream", upstream);
		
		// Downstream handlers - Filter for data which flows from server to
		// client. Note that the last handler added is actually the first
		// handler for outgoing data.
		pipeline.addLast("messageBufferEventEncoder",messageBufferEventEncoder);
	}
325368
@Override
	public void initialize() {
		final List<IResourceProvider> providers = new ArrayList<IResourceProvider>();
		providers.add(new SomeResourceProvider());
		setResourceProviders(providers);


		registerInterceptor(new ResponseHighlighterInterceptor());

	}
40874
private void initComponents() {

		splMainSplitter = new javax.swing.JSplitPane();
		pnlDataBrowser = new javax.swing.JPanel();
		splSqlQuery = new javax.swing.JSplitPane();
		pnlEditor = new javax.swing.JPanel();
		pnlDataSet = new javax.swing.JPanel();
		lblDataSet = new javax.swing.JLabel();
		cboDataSet = new javax.swing.JComboBox();
		cmdExecute = new javax.swing.JButton();
		pnlQueryEditor = new javax.swing.JPanel();
		scrQueryEditor = new javax.swing.JScrollPane();
		txtQueryEditor = new javax.swing.JEditorPane();
		pnlResultFilter = new javax.swing.JPanel();
		lblShow = new javax.swing.JLabel();
		txtRowCount = new javax.swing.JTextField();
		lblRows = new javax.swing.JLabel();
		pnlResult = new javax.swing.JPanel();
		scrQueryResult = new javax.swing.JScrollPane();
		pnlOntologyBrowser = new javax.swing.JPanel();
		pnlConcept = new javax.swing.JPanel();
		pnlFocusURI = new javax.swing.JPanel();
		lblFocusOnURI = new javax.swing.JLabel();
		txtClassUriTemplate = new javax.swing.JTextField();
		pnlClassMap = new javax.swing.JPanel();
		pnlClassSeachComboBox = new javax.swing.JPanel();
		lblClass = new javax.swing.JLabel();
		pnlProperties = new javax.swing.JPanel();
		pnlPropertiesLabel = new javax.swing.JPanel();
		lblProperties = new javax.swing.JLabel();
		pnlPropertyList = new javax.swing.JPanel();
		pnlCommandButtons = new javax.swing.JPanel();
		cmdClearAll = new javax.swing.JButton();
		cmdCreateMapping = new javax.swing.JButton();

		setAlignmentX(5.0F);
		setAlignmentY(5.0F);
		setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N
		setName("panel_master"); // NOI18N
		setPreferredSize(new java.awt.Dimension(640, 480));
		setLayout(new java.awt.BorderLayout());

		splMainSplitter.setDividerLocation(0.75);
		splMainSplitter.setResizeWeight(0.75);

		pnlDataBrowser.setName("panel_databrowser"); // NOI18N
		pnlDataBrowser.setLayout(new java.awt.BorderLayout());

		splSqlQuery.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 2, 2, 2));
		splSqlQuery.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
		splSqlQuery.setResizeWeight(0.25);
		splSqlQuery.setMinimumSize(new java.awt.Dimension(550, 400));
		splSqlQuery.setPreferredSize(new java.awt.Dimension(550, 400));

		pnlEditor.setMinimumSize(new java.awt.Dimension(156, 100));
		pnlEditor.setPreferredSize(new java.awt.Dimension(156, 100));
		pnlEditor.setLayout(new java.awt.BorderLayout());

		pnlDataSet.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));

		lblDataSet.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
		lblDataSet.setForeground(new java.awt.Color(53, 113, 163));
		lblDataSet.setText("Data Set:");
		pnlDataSet.add(lblDataSet);

		cboDataSet.setMinimumSize(new java.awt.Dimension(23, 23));
		cboDataSet.setPreferredSize(new java.awt.Dimension(240, 23));
		cboDataSet.setRenderer(new DataSetItemRenderer());
		cboDataSet.addActionListener(this::cboDataSetActionPerformed);
		pnlDataSet.add(cboDataSet);

		cmdExecute.setToolTipText("Execute query");
		cmdExecute.setIcon(IconLoader.getImageIcon("images/execute.png"));
		cmdExecute.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		cmdExecute.setContentAreaFilled(false);
		cmdExecute.setPreferredSize(new java.awt.Dimension(25, 25));
		cmdExecute.addActionListener(this::cmdExecuteActionPerformed);
		pnlDataSet.add(cmdExecute);

		pnlEditor.add(pnlDataSet, java.awt.BorderLayout.PAGE_START);

		pnlQueryEditor.setLayout(new java.awt.BorderLayout());

		txtQueryEditor.setBorder(null);
		txtQueryEditor.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N
		txtQueryEditor.setMinimumSize(new java.awt.Dimension(100, 20));
		txtQueryEditor.setPreferredSize(new java.awt.Dimension(100, 20));
		txtQueryEditor.addKeyListener(new java.awt.event.KeyAdapter() {
			@Override
			public void keyPressed(java.awt.event.KeyEvent evt) {
				txtQueryEditorKeyPressed(evt);
			}
		});
		scrQueryEditor.setViewportView(txtQueryEditor);

		pnlQueryEditor.add(scrQueryEditor, java.awt.BorderLayout.CENTER);

		pnlEditor.add(pnlQueryEditor, java.awt.BorderLayout.CENTER);

		pnlResultFilter.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));

		lblShow.setText("Show");
		pnlResultFilter.add(lblShow);

		txtRowCount.setText("20");
		txtRowCount.setToolTipText("Insert the limit for data preview or 0 to present all data");
		txtRowCount.setMinimumSize(new java.awt.Dimension(25, 18));
		txtRowCount.setPreferredSize(new java.awt.Dimension(25, 18));
		txtRowCount.addFocusListener(new java.awt.event.FocusAdapter() {
			@Override
			public void focusLost(java.awt.event.FocusEvent evt) {
				txtRowCountFocusLost(evt);
			}
		});
		txtRowCount.addKeyListener(new java.awt.event.KeyAdapter() {
			@Override
			public void keyPressed(java.awt.event.KeyEvent evt) {
				txtRowCountKeyPressed(evt);
			}
		});
		pnlResultFilter.add(txtRowCount);

		lblRows.setText("rows");
		pnlResultFilter.add(lblRows);

		pnlEditor.add(pnlResultFilter, java.awt.BorderLayout.PAGE_END);

		splSqlQuery.setLeftComponent(pnlEditor);

		pnlResult.setLayout(new java.awt.BorderLayout());

		tblQueryResult = new SQLResultTable();
		tblQueryResult.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
		scrQueryResult.setViewportView(tblQueryResult);
		scrQueryResult.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
		pnlResult.add(scrQueryResult, java.awt.BorderLayout.CENTER);

		splSqlQuery.setRightComponent(pnlResult);

		pnlDataBrowser.add(splSqlQuery, java.awt.BorderLayout.CENTER);

		splMainSplitter.setLeftComponent(pnlDataBrowser);

		pnlOntologyBrowser.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 3, 0, 3));
		pnlOntologyBrowser.setName("panel_ontologybrowser"); // NOI18N
		pnlOntologyBrowser.setLayout(new java.awt.BorderLayout(0, 2));

		pnlConcept.setLayout(new java.awt.BorderLayout(0, 2));

		pnlFocusURI.setLayout(new java.awt.BorderLayout());

		lblFocusOnURI.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
		lblFocusOnURI.setForeground(new java.awt.Color(53, 113, 163));
		lblFocusOnURI.setText("Focus on URI:");
		pnlFocusURI.add(lblFocusOnURI, java.awt.BorderLayout.NORTH);

		txtClassUriTemplate.setFont(new java.awt.Font("Dialog", 0, 14)); // NOI18N
		txtClassUriTemplate.setText(defaultUriTemplate());
		txtClassUriTemplate.setMargin(new java.awt.Insets(0, 0, 0, 0));
		txtClassUriTemplate.setMinimumSize(new java.awt.Dimension(240, 23));
		txtClassUriTemplate.setPreferredSize(new java.awt.Dimension(240, 23));
		txtClassUriTemplate.addFocusListener(new java.awt.event.FocusAdapter() {
			@Override
			public void focusGained(java.awt.event.FocusEvent evt) {
				txtClassUriTemplateFocusGained(evt);
			}
			@Override
			public void focusLost(java.awt.event.FocusEvent evt) {
				txtClassUriTemplateFocusLost(evt);
			}
		});
		txtClassUriTemplate.addKeyListener(new java.awt.event.KeyAdapter() {
			@Override
			public void keyPressed(java.awt.event.KeyEvent evt) {
				txtClassUriTemplateKeyPressed(evt);
			}
		});
		pnlFocusURI.add(txtClassUriTemplate, java.awt.BorderLayout.SOUTH);

		pnlConcept.add(pnlFocusURI, java.awt.BorderLayout.NORTH);

		pnlClassMap.setBackground(new Color(240, 245, 240));
		pnlClassMap.setLayout(new java.awt.BorderLayout());

		pnlClassSeachComboBox.setLayout(new java.awt.BorderLayout());
		Vector<Object> v = new Vector<>();
		for (IRI c : obdaModel.getCurrentVocabulary().classes()) {
			v.addElement(new PredicateItem(c, CLASS, prefixManager));
		}
		cboClassAutoSuggest = new AutoSuggestComboBox(v);
		cboClassAutoSuggest.setRenderer(new ClassListCellRenderer());
		cboClassAutoSuggest.setMinimumSize(new java.awt.Dimension(195, 23));
		cboClassAutoSuggest.setPreferredSize(new java.awt.Dimension(195, 23));
		cboClassAutoSuggest.addItemListener(new java.awt.event.ItemListener () {
			@Override
			public void itemStateChanged(java.awt.event.ItemEvent evt) {
				cboClassAutoSuggestItemStateChanged(evt);
			}
		});
		JTextField txtComboBoxEditor = (JTextField) cboClassAutoSuggest.getEditor().getEditorComponent();
		txtComboBoxEditor.addKeyListener(new java.awt.event.KeyAdapter() {
			@Override
			public void keyPressed(java.awt.event.KeyEvent evt) {
				cboClassAutoSuggestKeyPressed(evt);
			}
		});
		pnlClassSeachComboBox.add(cboClassAutoSuggest, java.awt.BorderLayout.CENTER);
		pnlClassMap.add(pnlClassSeachComboBox, java.awt.BorderLayout.SOUTH);

		lblClass.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
		lblClass.setForeground(new java.awt.Color(53, 113, 163));
		lblClass.setText("Mapping for class (optional):");
		lblClass.setOpaque(true);
		pnlClassMap.add(lblClass, java.awt.BorderLayout.NORTH);

		pnlConcept.add(pnlClassMap, java.awt.BorderLayout.CENTER);

		pnlOntologyBrowser.add(pnlConcept, java.awt.BorderLayout.NORTH);

		pnlProperties.setLayout(new java.awt.BorderLayout(0, 3));

		pnlPropertiesLabel.setMinimumSize(new java.awt.Dimension(63, 30));
		pnlPropertiesLabel.setLayout(new java.awt.BorderLayout());

		lblProperties.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
		lblProperties.setForeground(new java.awt.Color(53, 113, 163));
		lblProperties.setText("Add new property mapping:");
		lblProperties.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 2, 2, 2));
		lblProperties.setOpaque(true);
		lblProperties.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
		pnlPropertiesLabel.add(lblProperties, java.awt.BorderLayout.CENTER);

		pnlProperties.add(pnlPropertiesLabel, java.awt.BorderLayout.NORTH);

		pnlPropertyList.setLayout(new java.awt.BorderLayout());

		pnlPropertyEditorList = new PropertyMappingPanel(obdaModel);
		pnlPropertyList.add(pnlPropertyEditorList);

		pnlProperties.add(pnlPropertyList, java.awt.BorderLayout.CENTER);

		pnlOntologyBrowser.add(pnlProperties, java.awt.BorderLayout.CENTER);

		pnlCommandButtons.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 0, 0, 0));
		pnlCommandButtons.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));

		cmdClearAll.setText("Clear All");
		cmdClearAll.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		cmdClearAll.setContentAreaFilled(false);
		cmdClearAll.setPreferredSize(new java.awt.Dimension(70, 25));
		cmdClearAll.addActionListener(this::cmdClearAllActionPerformed);
		pnlCommandButtons.add(cmdClearAll);

		cmdCreateMapping.setText("Create Mapping");
		cmdCreateMapping.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		cmdCreateMapping.setContentAreaFilled(false);
		cmdCreateMapping.setPreferredSize(new java.awt.Dimension(100, 25));
		cmdCreateMapping.addActionListener(this::cmdCreateMappingActionPerformed);
		pnlCommandButtons.add(cmdCreateMapping);

		pnlOntologyBrowser.add(pnlCommandButtons, java.awt.BorderLayout.SOUTH);

		splMainSplitter.setRightComponent(pnlOntologyBrowser);

		add(splMainSplitter, java.awt.BorderLayout.CENTER);
	}
1274341
private void initComponents(List<CmsSetupComponent> components) {

        for (CmsSetupComponent component : components) {
            CheckBox checkbox = new CheckBox();
            checkbox.setValue(component.isChecked());
            checkbox.setCaption(component.getName() + " - " + component.getDescription());
            checkbox.setDescription(component.getDescription());
            checkbox.setData(component);
            checkbox.setWidth("100%");
            m_components.addComponent(checkbox);
            m_componentCheckboxes.add(checkbox);
            m_componentMap.put(component.getId(), component);

        }
    }
817828
private function initRenderersList(): void
    {
        if (!$this->initDone) {
            foreach ($this->customRendererInstanceNames as $instanceName) {
                $this->customRenderers[$instanceName] = $this->container->get($instanceName);
            }
            foreach ($this->packageRendererInstanceNames as $instanceName) {
                $this->packageRenderers[$instanceName] = $this->container->get($instanceName);
            }

            // Note: We ignore template renderers on purpose.
            $this->initDone = true;
        }
    }
1030059
def _handle_init_list(self, node, scope, ctxt, stream):
        
        self._dlog("handling init list")
        res = []
        for _,init_child in node.children():
            init_field = self._handle_node(init_child, scope, ctxt, stream)
            res.append(init_field)
        return res
530704
public void init(Reader reader, Record record, SaxHtmlHandler handler)
    {
        m_handler = null;
        m_handler = handler;
        super.init(reader, record);
    }
795954
private void initComponents() {// GEN-BEGIN:initComponents
        java.awt.GridBagConstraints gridBagConstraints;

        aboutTabPane = new javax.swing.JTabbedPane();
        aboutScrollPane = new javax.swing.JScrollPane();
        aboutEditorPane = new javax.swing.JEditorPane();
        licenseScrollPane = new javax.swing.JScrollPane();
        licenseEditorPane = new javax.swing.JEditorPane();
        acknowledgmentsScrollPane = new javax.swing.JScrollPane();
        acknowldgementsEditorPane = new javax.swing.JEditorPane();
        jSeparator1 = new javax.swing.JSeparator();
        okButton = new javax.swing.JButton();

        getContentPane().setLayout(new java.awt.GridBagLayout());

        addWindowListener(new java.awt.event.WindowAdapter() {
            @Override
            public void windowClosing(java.awt.event.WindowEvent evt) {
                closeDialog(evt);
            }
        });

        aboutEditorPane.setEditable(false);
        aboutEditorPane.addHyperlinkListener(evt -> editorPaneHyperlinkUpdate(evt));

        aboutScrollPane.setViewportView(aboutEditorPane);

        aboutTabPane.addTab("About", aboutScrollPane);

        licenseEditorPane.setEditable(false);
        licenseEditorPane.addHyperlinkListener(evt -> editorPaneHyperlinkUpdate(evt));

        licenseScrollPane.setViewportView(licenseEditorPane);

        aboutTabPane.addTab("License", licenseScrollPane);

        acknowldgementsEditorPane.setEditable(false);
        acknowldgementsEditorPane.addHyperlinkListener(evt -> editorPaneHyperlinkUpdate(evt));

        acknowledgmentsScrollPane.setViewportView(acknowldgementsEditorPane);

        aboutTabPane.addTab("Acknowledgments", acknowledgmentsScrollPane);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        getContentPane().add(aboutTabPane, gridBagConstraints);

        {
            aboutTabPane.setTitleAt(0, edu.umd.cs.findbugs.L10N.getLocalString("dlg.about_tab", "About"));
            aboutTabPane.setTitleAt(1, edu.umd.cs.findbugs.L10N.getLocalString("dlg.license_tab", "License"));
            aboutTabPane.setTitleAt(2, edu.umd.cs.findbugs.L10N.getLocalString("dlg.acknowledgements_tab", "Acknowledgements"));
        }
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        getContentPane().add(jSeparator1, gridBagConstraints);

        okButton.setMnemonic('O');
        okButton.setText(edu.umd.cs.findbugs.L10N.getLocalString("dlg.ok_btn", "OK"));
        okButton.addActionListener(evt -> okButtonActionPerformed(evt));

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 0);
        getContentPane().add(okButton, gridBagConstraints);

        pack();
    }
24083
private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        headerControlsPanel = new JPanel();
        buttonPreviousYear = new JButton();
        buttonPreviousMonth = new JButton();
        monthAndYearOuterPanel = new JPanel();
        monthAndYearInnerPanel = new JPanel();
        labelMonth = new JLabel();
        labelYear = new JLabel();
        buttonNextMonth = new JButton();
        buttonNextYear = new JButton();
        centerPanel = new JPanel();
        footerPanel = new JPanel();
        labelSetDateToToday = new JLabel();
        labelClearDate = new JLabel();
        yearEditorPanel = new JPanel();
        doneEditingYearButton = new JButton();

        //======== this ========
        setLayout(new GridBagLayout());
        ((GridBagLayout) getLayout()).columnWidths = new int[]{5, 0, 5, 0};
        ((GridBagLayout) getLayout()).rowHeights = new int[]{6, 0, 5, 80, 5, 0, 5, 0};
        ((GridBagLayout) getLayout()).columnWeights = new double[]{0.0, 0.0, 0.0, 1.0E-4};
        ((GridBagLayout) getLayout()).rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};

        //======== headerControlsPanel ========
        {
            headerControlsPanel.setLayout(new FormLayout(
                "3*(pref), pref:grow, 3*(pref)",
                "fill:pref:grow"));
            ((FormLayout) headerControlsPanel.getLayout()).setColumnGroups(new int[][]{{1, 2, 6, 7}});

            //---- buttonPreviousYear ----
            buttonPreviousYear.setText("<<");
            buttonPreviousYear.setFocusable(false);
            buttonPreviousYear.setFocusPainted(false);
            buttonPreviousYear.setHorizontalTextPosition(SwingConstants.CENTER);
            buttonPreviousYear.setMargin(new Insets(5, 6, 5, 6));
            buttonPreviousYear.setFont(new Font("Monospaced", Font.BOLD, 12));
            buttonPreviousYear.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    buttonPreviousYearActionPerformed(e);
                }
            });
            headerControlsPanel.add(buttonPreviousYear, CC.xy(1, 1));

            //---- buttonPreviousMonth ----
            buttonPreviousMonth.setText(" < ");
            buttonPreviousMonth.setFocusable(false);
            buttonPreviousMonth.setFocusPainted(false);
            buttonPreviousMonth.setHorizontalTextPosition(SwingConstants.CENTER);
            buttonPreviousMonth.setMargin(new Insets(5, 6, 5, 6));
            buttonPreviousMonth.setFont(new Font("Monospaced", Font.BOLD, 12));
            buttonPreviousMonth.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    buttonPreviousMonthActionPerformed(e);
                }
            });
            headerControlsPanel.add(buttonPreviousMonth, CC.xy(2, 1));

            //======== monthAndYearOuterPanel ========
            {
                monthAndYearOuterPanel.setLayout(new FormLayout(
                    "pref:grow, pref, pref:grow",
                    "fill:pref:grow"));

                //======== monthAndYearInnerPanel ========
                {
                    monthAndYearInnerPanel.setLayout(new FormLayout(
                        "pref, [1px,pref], pref",
                        "fill:pref:grow"));

                    //---- labelMonth ----
                    labelMonth.setText("September");
                    labelMonth.setHorizontalAlignment(SwingConstants.RIGHT);
                    labelMonth.setOpaque(true);
                    labelMonth.addMouseListener(new MouseAdapter() {
                        @Override
                        public void mouseEntered(MouseEvent e) {
                            labelIndicatorMouseEntered(e);
                        }

                        @Override
                        public void mouseExited(MouseEvent e) {
                            labelIndicatorMouseExited(e);
                        }

                        @Override
                        public void mousePressed(MouseEvent e) {
                            labelMonthIndicatorMousePressed(e);
                        }
                    });
                    monthAndYearInnerPanel.add(labelMonth, CC.xy(1, 1));

                    //---- labelYear ----
                    labelYear.setText("2100");
                    labelYear.setOpaque(true);
                    labelYear.addMouseListener(new MouseAdapter() {
                        @Override
                        public void mouseEntered(MouseEvent e) {
                            labelIndicatorMouseEntered(e);
                        }

                        @Override
                        public void mouseExited(MouseEvent e) {
                            labelIndicatorMouseExited(e);
                        }

                        @Override
                        public void mousePressed(MouseEvent e) {
                            labelYearIndicatorMousePressed(e);
                        }
                    });
                    monthAndYearInnerPanel.add(labelYear, CC.xy(3, 1));
                }
                monthAndYearOuterPanel.add(monthAndYearInnerPanel, CC.xy(2, 1));
            }
            headerControlsPanel.add(monthAndYearOuterPanel, CC.xy(4, 1));

            //---- buttonNextMonth ----
            buttonNextMonth.setText(" > ");
            buttonNextMonth.setFocusable(false);
            buttonNextMonth.setFocusPainted(false);
            buttonNextMonth.setHorizontalTextPosition(SwingConstants.CENTER);
            buttonNextMonth.setMargin(new Insets(5, 6, 5, 6));
            buttonNextMonth.setFont(new Font("Monospaced", Font.BOLD, 12));
            buttonNextMonth.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    buttonNextMonthActionPerformed(e);
                }
            });
            headerControlsPanel.add(buttonNextMonth, CC.xy(6, 1));

            //---- buttonNextYear ----
            buttonNextYear.setText(">>");
            buttonNextYear.setFocusable(false);
            buttonNextYear.setFocusPainted(false);
            buttonNextYear.setHorizontalTextPosition(SwingConstants.CENTER);
            buttonNextYear.setMargin(new Insets(5, 6, 5, 6));
            buttonNextYear.setFont(new Font("Monospaced", Font.BOLD, 12));
            buttonNextYear.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    buttonNextYearActionPerformed(e);
                }
            });
            headerControlsPanel.add(buttonNextYear, CC.xy(7, 1));
        }
        add(headerControlsPanel, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0,
            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
            new Insets(0, 0, 0, 0), 0, 0));

        //======== centerPanel ========
        {
            centerPanel.setBackground(new Color(210, 210, 210));
            centerPanel.setLayout(new FormLayout(
                "3*(min), 7*(default:grow), min",
                "fill:min, fill:2px, fill:default:grow, fill:1px, fill:min, 6*(fill:default:grow), fill:min"));
            ((FormLayout) centerPanel.getLayout()).setColumnGroups(new int[][]{{4, 5, 6, 7, 8, 9, 10}});
            ((FormLayout) centerPanel.getLayout()).setRowGroups(new int[][]{{3, 6, 7, 8, 9, 10, 11}});
        }
        add(centerPanel, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0,
            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
            new Insets(0, 0, 0, 0), 0, 0));

        //======== footerPanel ========
        {
            footerPanel.setLayout(new GridBagLayout());
            ((GridBagLayout) footerPanel.getLayout()).columnWidths = new int[]{6, 0, 0, 0, 6, 0};
            ((GridBagLayout) footerPanel.getLayout()).rowHeights = new int[]{0, 0};
            ((GridBagLayout) footerPanel.getLayout()).columnWeights = new double[]{0.0, 0.0, 1.0, 0.0, 0.0, 1.0E-4};
            ((GridBagLayout) footerPanel.getLayout()).rowWeights = new double[]{1.0, 1.0E-4};

            //---- labelSetDateToToday ----
            labelSetDateToToday.setText("Today: Feb 12, 2016");
            labelSetDateToToday.setHorizontalAlignment(SwingConstants.CENTER);
            labelSetDateToToday.setOpaque(true);
            footerPanel.add(labelSetDateToToday, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 0, 0), 0, 0));

            //---- labelClearDate ----
            labelClearDate.setText("Clear");
            labelClearDate.setOpaque(true);
            footerPanel.add(labelClearDate, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 0, 0), 0, 0));
        }
        add(footerPanel, new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0,
            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
            new Insets(0, 0, 0, 0), 0, 0));

        //======== yearEditorPanel ========
        {
            yearEditorPanel.setLayout(new GridBagLayout());
            ((GridBagLayout) yearEditorPanel.getLayout()).columnWidths = new int[]{40, 1, 26, 0};
            ((GridBagLayout) yearEditorPanel.getLayout()).rowHeights = new int[]{0, 0};
            ((GridBagLayout) yearEditorPanel.getLayout()).columnWeights = new double[]{1.0, 0.0, 0.0, 1.0E-4};
            ((GridBagLayout) yearEditorPanel.getLayout()).rowWeights = new double[]{1.0, 1.0E-4};

            //---- doneEditingYearButton ----
            doneEditingYearButton.setFocusPainted(false);
            doneEditingYearButton.setFocusable(false);
            doneEditingYearButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    doneEditingYearButtonActionPerformed(e);
                }
            });
            yearEditorPanel.add(doneEditingYearButton, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 0, 0), 0, 0));
        }
        // JFormDesigner - End of component initialization  //GEN-END:initComponents
    }
731482
protected void initEventAdaptors()
    {
        if ( _implDecl == null || _implDecl.getMethods() == null )
            return;
        
        for (MethodDeclaration implMethod : _implDecl.getMethods())
        {
            //
            // Do a quick check for the presence of the EventHandler annotation on methods
            //
            if (implMethod.getAnnotation(EventHandler.class) == null ||
                implMethod.toString().equals("<clinit>()"))
                continue;
            
            //
            // EventHandler annotations on private methods cause compilation error.
            //
            if (isPrivateMethod(implMethod))
            {
                _ap.printError(implMethod, "eventhandler.method.is.private");
                continue;
            }

            //
            // If found, we must actually read the value using an AnnotationMirror, since it
            // contains a Class element (eventSet) that cannot be loaded
            //
            AnnotationMirror handlerMirror = null;
            for (AnnotationMirror annot : implMethod.getAnnotationMirrors())
            {
                if ( annot == null ||
                    annot.getAnnotationType() == null ||
                    annot.getAnnotationType().getDeclaration() == null ||
                    annot.getAnnotationType().getDeclaration().getQualifiedName() == null )
                    return;

                if ( annot.getAnnotationType().getDeclaration().getQualifiedName().equals(
                        "org.apache.beehive.controls.api.events.EventHandler"))
                {
                    handlerMirror = annot;
                    break;
                }
            }
            if (handlerMirror == null)
            {
                throw new CodeGenerationException("Unable to find EventHandler annotation on " +
                                                  implMethod);
            }

            AptAnnotationHelper handlerAnnot = new AptAnnotationHelper(handlerMirror);

            //
            // Locate the EventField based upon the field element value
            //
            String fieldName = (String)handlerAnnot.getObjectValue("field");
            AptEventField eventField = (AptEventField)getField(fieldName);
            if (eventField == null)
            {
                // eventField == null means this field isn't interesting for the purposes
                // of this processor (control impls).  However, only emit an error message
                // if the field isn't on a nested control
                if ( getControlField(fieldName) == null )
                    _ap.printError( implMethod, "eventhandler.field.not.found", fieldName );

                continue;
            }

            //
            // Locate the EventSet based upon the eventSet element value
            //
            TypeMirror tm = (TypeMirror)( handlerAnnot.getObjectValue("eventSet") );
            if ( tm == null )
                continue;
            String setName = tm.toString();
            AptControlInterface controlIntf = eventField.getControlInterface();

            // todo: remove workaround once bug has been resolved.
            /* Workaround for JIRA issue BEEHIVE-1143, eventset name may
               contain a '$' seperator between the outer class and inner class.
               Should be a '.' seperator. Only applies to Eclipse APT. This
               workaround is also present in AptControlClient.initEventAdapters
             */
            if (tm.getClass().getName().startsWith("org.eclipse.")) {
                setName = setName.replace('$', '.');
            }
            // end of workaround

            AptEventSet eventSet = controlIntf.getEventSet(setName);
            if (eventSet == null)
            {
                _ap.printError( implMethod, "eventhandler.eventset.not.found", setName );
                continue;
            }

            //
            // Register a new EventAdaptor for the EventSet, if none exists already
            //
            EventAdaptor adaptor = eventField.getEventAdaptor(eventSet);
            if (adaptor == null)
            {
                adaptor = new EventAdaptor(eventField, eventSet);
                eventField.addEventAdaptor(eventSet, adaptor);
            }

            //
            // Locate the EventSet method based upon the eventName element value.  Once
            // found, add a new AptEventHandler to the adaptor for this event.
            //
            boolean found = false;
            String eventName = (String)handlerAnnot.getObjectValue("eventName");
            AptMethod handlerMethod = new AptMethod(implMethod, _ap);
            for (AptEvent controlEvent : eventSet.getEvents())
            {
                if (controlEvent == null || controlEvent.getName() == null || 
                    !controlEvent.getName().equals(eventName))
                    continue;
                if ( controlEvent.getArgTypes() == null )
                    continue;

                //
                // BUGBUG: If the arguments are parameterized, then the event handler
                // might declare a specific bound version of the type, so a direct
                // comparison will fail.  If parameterized, we don't validate.
                //
                if (controlEvent.hasParameterizedArguments() ||
                    controlEvent.getArgTypes().equals(handlerMethod.getArgTypes()))
                {
                    adaptor.addHandler(controlEvent, 
                                       new AptEventHandler(controlEvent, implMethod, _ap));
                    found = true;
                    break;
                }
            }
            if (!found)
            {
                _ap.printError( implMethod, "eventhandler.method.not.found", setName );
            }
        } 
    }
1135608
private void init() {

		handlers.put(FlowType.Action,   	new ActionHandler());
		handlers.put(FlowType.Decision, 	new DecisionHandler());
		handlers.put(FlowType.Return,   	new ReturnHandler());
		handlers.put(FlowType.ForEach,  	new ForEachHandler());
		handlers.put(FlowType.Store, 		new StoreHandler());
		handlers.put(FlowType.Aggregation,  new AggregationHandler());
		handlers.put(FlowType.Exception, 	new ExceptionHandler());
		handlers.put(FlowType.Filter,		new FilterHandler());
		handlers.put(FlowType.Fork,			new ForkHandler());
	}
804422
@SuppressWarnings( "deprecation" )
    protected void initArtefactHandlers() {

        List<ArtefactHandler> additionalArtefactHandlers = GrailsFactoriesLoader.loadFactories(ArtefactHandler.class, getClassLoader());

        for (ArtefactHandler artefactHandler : additionalArtefactHandlers) {
            registerArtefactHandler(artefactHandler);
        }

        updateArtefactHandlers();
    }
1146670
public void initImpl()
    throws ConfigException
  {
    if (_handler != null) {
    }
    else if (_pathHandler != null) {
    }
    else {
      setPath(Paths.get("."));
    }

    /*
    if (_formatter instanceof ELFormatter) {
      ((ELFormatter)_formatter).init();
    }
    */

    if (_formatter != null) {
    }
    else if (_handler != null && _handler.getFormatter() != null) {
    }
    else {
      _formatter = new PatternFormatter(PatternFormatter.DEFAULT_PATTERN);
    }
    
    if (_pathHandler != null) {
      _pathHandler.init();

      _handler = _pathHandler;
    }
    
    if (_handler == null) {
      throw new ConfigException(L.l("<log-handler> requires a configured log handler"));
    }
    
    // env/02s9
    if (_level != null) {
      _handler.setLevel(_level);
    }

    /* JDK defaults to Level.ALL
    if (_level != null)
      _handler.setLevel(_level);
    else
      _handler.setLevel(Level.INFO);
    */

    if (_formatter != null) {
      _handler.setFormatter(_formatter);
    }

    if (_filter != null) {
      _handler.setFilter(_filter);
    }
    
    if (_names.size() == 0) {
      _names.add("");
    }

    for (String name : _names) {
      Logger logger = Logger.getLogger(name);

      if (! (logger instanceof EnvironmentLogger)) {
        if (_handler instanceof AutoCloseable) {
          EnvLoader.addCloseListener((AutoCloseable) _handler);
        }
      }

      logger.addHandler(_handler);
    }
  }