Package org.pentaho.reporting.libraries.designtime.swing

Examples of org.pentaho.reporting.libraries.designtime.swing.SmartComboBox


  public BSFScriptingExpressionEditor()
  {
    setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);

    languageField = new SmartComboBox(new DefaultComboBoxModel(InternalBSFManager.getRegisteredLanguages()));
    languageField.getModel().addListDataListener(new UpdateLanguageHandler());

    final JPanel panel = new JPanel();
    panel.setLayout(new VerticalLayout(5, VerticalLayout.BOTH));
    panel.add(new JLabel(EditorExpressionsMessages.getString("BSFScriptingExpressionEditor.Language")));
View Full Code Here


    globalScriptTextArea = new RSyntaxTextArea();
    globalScriptTextArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_NONE);
    globalScriptTextArea.getDocument().addDocumentListener(new GlobalScriptUpdateHandler());

    globalLanguageField = new SmartComboBox(new DefaultComboBoxModel(DataFactoryEditorSupport.getScriptEngineLanguages()));
    globalLanguageField.setRenderer(new QueryLanguageListCellRenderer());
    globalLanguageField.addActionListener(new UpdateGlobalScriptLanguageHandler());

    queryScriptTextArea = new RSyntaxTextArea();
    queryScriptTextArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_NONE);
    queryScriptTextArea.getDocument().addDocumentListener(new QueryScriptUpdateHandler());

    queryLanguageField = new SmartComboBox(new DefaultComboBoxModel(DataFactoryEditorSupport.getScriptEngineLanguages()));

    queryLanguageListCellRenderer = new QueryLanguageListCellRenderer();
    queryLanguageField.setRenderer(queryLanguageListCellRenderer);
    queryLanguageField.addActionListener(new UpdateQueryScriptLanguageHandler());
View Full Code Here

  private JPanel createSecondaryDataSourcePanel()
  {
    final JPanel innerSecondaryDataSourcePanel = new JPanel(new BorderLayout());
    innerSecondaryDataSourcePanel.add(new SortHeaderPanel(secondaryDataSourcePropertiesTableModel),
        BorderLayout.NORTH);
    final JComboBox comboBox = new SmartComboBox(editModel.getSecondaryDataSourcesModel());
    comboBox.setRenderer(new ExpressionListCellRenderer());
    innerSecondaryDataSourcePanel.add(comboBox, BorderLayout.CENTER);

    final JPanel secondaryDataSourcePanel = new JPanel(new BorderLayout());
    secondaryDataSourcePanel.add(innerSecondaryDataSourcePanel, BorderLayout.NORTH);
    secondaryDataSourcePanel.add(configureExpressionTable(secondaryDataSourceTable,
View Full Code Here

  private JPanel createPrimaryDataSourcePanel()
  {
    final JPanel innerPrimaryDataSourcePanel = new JPanel(new BorderLayout());
    innerPrimaryDataSourcePanel.add(new SortHeaderPanel(primaryDataSourcePropertiesTableModel), BorderLayout.NORTH);
    final JComboBox comboBox = new SmartComboBox(editModel.getPrimaryDataSourcesModel());
    comboBox.setRenderer(new ExpressionListCellRenderer());
    innerPrimaryDataSourcePanel.add(comboBox, BorderLayout.CENTER);

    final JPanel primaryDataSourcePanel = new JPanel(new BorderLayout());
    primaryDataSourcePanel.add(innerPrimaryDataSourcePanel, BorderLayout.NORTH);
    primaryDataSourcePanel.add(configureExpressionTable(primaryDataSourceTable, primaryDataSourcePropertiesTableModel),
View Full Code Here

  private JPanel createChartPanel()
  {
    final JPanel innerChartExpressionPanel = new JPanel(new BorderLayout());
    innerChartExpressionPanel.add(new SortHeaderPanel(chartPropertiesTableModel), BorderLayout.NORTH);
    final JComboBox comboBox = new SmartComboBox(editModel.getChartExpressionsModel());
    comboBox.setRenderer(new ExpressionListCellRenderer());
    innerChartExpressionPanel.add(comboBox, BorderLayout.CENTER);

    final JPanel chartExpressionPanel = new JPanel(new BorderLayout());
    chartExpressionPanel.add(innerChartExpressionPanel, BorderLayout.NORTH);
    chartExpressionPanel.add
View Full Code Here

      public void focusLost(FocusEvent e) {
        checkBaseUrl();
      }
      public void focusGained(FocusEvent e) {}
    });
    baseUrlField = new SmartComboBox();
    baseUrlField.setEditable(true);
    final DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(context.getDataSchemaModel().getColumnNames());
    comboBoxModel.insertElementAt(null, 0);
    comboBoxModel.setSelectedItem(null);
    baseUrlField.setModel(comboBoxModel);
View Full Code Here

    queryDesignerButton.setBorder(new EmptyBorder(0, 0, 0, 0));

    globalScriptTextArea = new RSyntaxTextArea();
    globalScriptTextArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_NONE);

    globalLanguageField = new SmartComboBox(new DefaultComboBoxModel(getScriptEngineLanguages()));
    globalLanguageField.setRenderer(new QueryLanguageListCellRenderer());
    globalLanguageField.addActionListener(new UpdateScriptLanguageHandler());

    queryScriptTextArea = new RSyntaxTextArea();
    queryScriptTextArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_NONE);
    queryScriptTextArea.getDocument().addDocumentListener(new QueryScriptDocumentListener());

    queryLanguageListCellRenderer = new QueryLanguageListCellRenderer();

    queryLanguageField = new SmartComboBox(new DefaultComboBoxModel(getScriptEngineLanguages()));
    queryLanguageField.setRenderer(queryLanguageListCellRenderer);
    queryLanguageField.addActionListener(new UpdateScriptLanguageHandler());

    super.init();
  }
View Full Code Here

  private JPanel createSecondaryDataSourcePanel()
  {
    final JPanel innerSecondaryDataSourcePanel = new JPanel(new BorderLayout());
    innerSecondaryDataSourcePanel.add(new SortHeaderPanel(secondaryDataSourcePropertiesTableModel),
        BorderLayout.NORTH);
    final JComboBox comboBox = new SmartComboBox(editModel.getSecondaryDataSourcesModel());
    comboBox.setRenderer(new ExpressionListCellRenderer());
    innerSecondaryDataSourcePanel.add(comboBox, BorderLayout.CENTER);

    final JPanel secondaryDataSourcePanel = new JPanel(new BorderLayout());
    secondaryDataSourcePanel.add(innerSecondaryDataSourcePanel, BorderLayout.NORTH);
    secondaryDataSourcePanel.add(configureExpressionTable(secondaryDataSourceTable,
View Full Code Here

  private JPanel createPrimaryDataSourcePanel()
  {
    final JPanel innerPrimaryDataSourcePanel = new JPanel(new BorderLayout());
    innerPrimaryDataSourcePanel.add(new SortHeaderPanel(primaryDataSourcePropertiesTableModel), BorderLayout.NORTH);
    final JComboBox comboBox = new SmartComboBox(editModel.getPrimaryDataSourcesModel());
    comboBox.setRenderer(new ExpressionListCellRenderer());
    innerPrimaryDataSourcePanel.add(comboBox, BorderLayout.CENTER);

    final JPanel primaryDataSourcePanel = new JPanel(new BorderLayout());
    primaryDataSourcePanel.add(innerPrimaryDataSourcePanel, BorderLayout.NORTH);
    primaryDataSourcePanel.add(configureExpressionTable(primaryDataSourceTable, primaryDataSourcePropertiesTableModel),
View Full Code Here

  private JPanel createChartPanel()
  {
    final JPanel innerChartExpressionPanel = new JPanel(new BorderLayout());
    innerChartExpressionPanel.add(new SortHeaderPanel(chartPropertiesTableModel), BorderLayout.NORTH);
    final JComboBox comboBox = new SmartComboBox(editModel.getChartExpressionsModel());
    comboBox.setRenderer(new ExpressionListCellRenderer());
    innerChartExpressionPanel.add(comboBox, BorderLayout.CENTER);

    final JPanel chartExpressionPanel = new JPanel(new BorderLayout());
    chartExpressionPanel.add(innerChartExpressionPanel, BorderLayout.NORTH);
    chartExpressionPanel.add
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.designtime.swing.SmartComboBox

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.