Examples of KeyedComboBoxModel


Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.KeyedComboBoxModel

        return;
      }
      final NamedDataSourceDialogModel dialogModel = getDialogModel();
      try
      {
        final KeyedComboBoxModel model = dialogModel.getQueries();
        final int itemIndex = model.getSelectedItemIndex();
        if (itemIndex == -1)
        {
          return;
        }

        inUpdate = true;
        model.update(itemIndex, getQuery(), getQueryName());
      }
      finally
      {
        inUpdate = false;
      }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.KeyedComboBoxModel

    }

    private void update()
    {
      final NamedDataSourceDialogModel dialogModel = getDialogModel();
      final KeyedComboBoxModel model = dialogModel.getQueries();
      final int itemIndex = model.getSelectedItemIndex();
      if (itemIndex == -1)
      {
        return;
      }

      model.update(itemIndex, getQuery(), getQueryName());
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.KeyedComboBoxModel

    final AbstractNamedMDXDataFactory factory = createDataFactory();
    if (factory == null)
    {
      return null;
    }
    final KeyedComboBoxModel queries = getDialogModel().getQueries();
    for (int i = 0; i < queries.getSize(); i++)
    {
      factory.setQuery((String) queries.getElementAt(i), (String) queries.getKeyAt(i));
    }
    factory.setJdbcUserField(getDialogModel().getJdbcUserField());
    factory.setJdbcPasswordField(getDialogModel().getJdbcPasswordField());
    factory.setRoleField(connectionComponent.getRoleField());
    return factory;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.KeyedComboBoxModel

    }

    private void update()
    {
      final NamedDataSourceDialogModel dialogModel = getDialogModel();
      final KeyedComboBoxModel model = dialogModel.getQueries();
      final int itemIndex = model.getSelectedItemIndex();
      if (itemIndex == -1)
      {
        return;
      }

      model.update(itemIndex, getQuery(), getQueryName());
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.KeyedComboBoxModel

    }

    public void actionPerformed(final ActionEvent e)
    {
      final NamedDataSourceDialogModel dialogModel = getDialogModel();
      final KeyedComboBoxModel queries = dialogModel.getQueries();
      queries.remove(queries.getSelectedItemIndex());
      queries.setSelectedItem(null);
      queryNameList.clearSelection();
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.KeyedComboBoxModel

        return;
      }
      final NamedDataSourceDialogModel dialogModel = getDialogModel();
      try
      {
        final KeyedComboBoxModel model = dialogModel.getQueries();
        final int itemIndex = model.getSelectedItemIndex();
        if (itemIndex == -1)
        {
          return;
        }

        inUpdate = true;
        model.update(itemIndex, getQuery(), getQueryName());
      }
      finally
      {
        inUpdate = false;
      }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.KeyedComboBoxModel

    else
    {
      return null;
    }

    final KeyedComboBoxModel queries = getDialogModel().getQueries();
    for (int i = 0; i < queries.getSize(); i++)
    {
      returnDataFactory.setQuery((String) queries.getElementAt(i), (String) queries.getKeyAt(i));
    }
    return returnDataFactory;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.KeyedComboBoxModel

    }

    public void actionPerformed(final ActionEvent e)
    {
      final NamedDataSourceDialogModel dialogModel = getDialogModel();
      final KeyedComboBoxModel queries = dialogModel.getQueries();
      queries.remove(queries.getSelectedItemIndex());
      queries.setSelectedItem(null);
      queryNameList.clearSelection();
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.KeyedComboBoxModel

        return;
      }
      final NamedDataSourceDialogModel dialogModel = getDialogModel();
      try
      {
        final KeyedComboBoxModel model = dialogModel.getQueries();
        final int itemIndex = model.getSelectedItemIndex();
        if (itemIndex == -1)
        {
          return;
        }

        inUpdate = true;
        model.update(itemIndex, getQuery(), getQueryName());
      }
      finally
      {
        inUpdate = false;
      }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.KeyedComboBoxModel

    }

    private void update()
    {
      final NamedDataSourceDialogModel dialogModel = getDialogModel();
      final KeyedComboBoxModel model = dialogModel.getQueries();
      final int itemIndex = model.getSelectedItemIndex();
      if (itemIndex == -1)
      {
        return;
      }

      model.update(itemIndex, getQuery(), getQueryName());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.