Package org.pentaho.reporting.tools.configeditor.model

Examples of org.pentaho.reporting.tools.configeditor.model.ConfigDescriptionModel


  private JPanel createEntryList()
  {
    final Action addEntryAction = new AddEntryAction();
    final Action removeEntryAction = new RemoveEntryAction();

    model = new ConfigDescriptionModel();
    entryList = new JList(model);
    entryList.addListSelectionListener(new ConfigListSelectionListener());

    final JToolBar toolbar = new JToolBar();
    toolbar.setFloatable(false);
View Full Code Here


      if (configurationToEdit == null)
      {
        return;
      }

      final ConfigDescriptionModel model = getModel();
      model.importFromConfig(configurationToEdit);
      model.sort();
      setStatusText(getResources().getString("config-description-editor.import-complete")); //$NON-NLS-1$
    }
View Full Code Here

    public void actionPerformed(final ActionEvent e)
    {
      final TextConfigDescriptionEntry te =
          new TextConfigDescriptionEntry
              (getResources().getString("config-description-editor.unnamed-entry")); //$NON-NLS-1$
      final ConfigDescriptionModel model = getModel();
      model.add(te);
      getEntryList().setSelectedIndex(model.getSize() - 1);
    }
View Full Code Here

     */
    public void actionPerformed(final ActionEvent e)
    {
      final int[] selectedEntries = getEntryList().getSelectedIndices();
      setSelectedEntry(null);
      final ConfigDescriptionModel model = getModel();
      model.removeAll(selectedEntries);
      getEntryList().clearSelection();
    }
View Full Code Here

  private JPanel createEntryList()
  {
    final Action addEntryAction = new AddEntryAction();
    final Action removeEntryAction = new RemoveEntryAction();

    model = new ConfigDescriptionModel();
    entryList = new JList(model);
    entryList.addListSelectionListener(new ConfigListSelectionListener());

    final JToolBar toolbar = new JToolBar();
    toolbar.setFloatable(false);
View Full Code Here

      if (configurationToEdit == null)
      {
        return;
      }

      final ConfigDescriptionModel model = getModel();
      model.importFromConfig(configurationToEdit);
      model.sort();
      setStatusText(getResources().getString("config-description-editor.import-complete")); //$NON-NLS-1$
    }
View Full Code Here

    public void actionPerformed(final ActionEvent e)
    {
      final TextConfigDescriptionEntry te =
          new TextConfigDescriptionEntry
              (getResources().getString("config-description-editor.unnamed-entry")); //$NON-NLS-1$
      final ConfigDescriptionModel model = getModel();
      model.add(te);
      getEntryList().setSelectedIndex(model.getSize() - 1);
    }
View Full Code Here

     */
    public void actionPerformed(final ActionEvent e)
    {
      final int[] selectedEntries = getEntryList().getSelectedIndices();
      setSelectedEntry(null);
      final ConfigDescriptionModel model = getModel();
      model.removeAll(selectedEntries);
      getEntryList().clearSelection();
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.tools.configeditor.model.ConfigDescriptionModel

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.