Package org.pentaho.reporting.designer.core.util

Examples of org.pentaho.reporting.designer.core.util.ExpressionListCellRenderer


    model = new DefaultComboBoxModel(knownExpressions);
    model.addListDataListener(new ExpressionSelectionHandler());

    expressionEditor = new JComboBox(model);
    expressionEditor.setEditable(false);
    expressionEditor.setRenderer(new ExpressionListCellRenderer());

    super.init();

    setExpressionsOnly(true);
    setExpression(null);
View Full Code Here


    final EllipsisButton ellipsisButton = new EllipsisButton("...");
    ellipsisButton.addActionListener(new ExtendedEditorAction());

    expressionEditor = new SmartComboBox<ExpressionMetaData>();
    expressionEditor.setEditable(false);
    expressionEditor.setEditor(new ValuePassThroughCellEditor(expressionEditor, new ExpressionListCellRenderer()));
    expressionEditor.setRenderer(new ExpressionListCellRenderer());
    expressionEditor.getInputMap().put(UtilMessages.getInstance().getKeyStroke
        ("PropertyCellEditorWithEllipsis.PopupEditor.Accelerator"), POPUP_EDITOR);
    expressionEditor.getActionMap().put(POPUP_EDITOR, new ExtendedEditorAction());
    expressionEditor.setBorder(BorderFactory.createEmptyBorder());
View Full Code Here

  {
    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

  {
    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

    final EllipsisButton ellipsisButton = new EllipsisButton("...");
    ellipsisButton.addActionListener(new ExtendedEditorAction());

    expressionEditor = new JComboBox();
    expressionEditor.setEditable(true);
    expressionEditor.setRenderer(new ExpressionListCellRenderer());
    expressionEditor.setEditor(new ExpressionComboBoxEditor());
    expressionEditor.getInputMap().put
        (UtilMessages.getInstance().getKeyStroke("PropertyCellEditorWithEllipsis.PopupEditor.Accelerator"), POPUP_EDITOR);
    expressionEditor.getActionMap().put(POPUP_EDITOR, new ExtendedEditorAction());
    expressionEditor.setBorder(BorderFactory.createEmptyBorder());
View Full Code Here

    final EllipsisButton ellipsisButton = new EllipsisButton("...");
    ellipsisButton.addActionListener(new ExtendedEditorAction());

    expressionEditor = new SmartComboBox();
    expressionEditor.setEditable(false);
    expressionEditor.setEditor(new ValuePassThroughCellEditor(expressionEditor, new ExpressionListCellRenderer()));
    expressionEditor.setRenderer(new ExpressionListCellRenderer());
    expressionEditor.getInputMap().put(UtilMessages.getInstance().getKeyStroke
        ("PropertyCellEditorWithEllipsis.PopupEditor.Accelerator"), POPUP_EDITOR);
    expressionEditor.getActionMap().put(POPUP_EDITOR, new ExtendedEditorAction());
    expressionEditor.setBorder(BorderFactory.createEmptyBorder());
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.util.ExpressionListCellRenderer

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.