Examples of JXToolBar


Examples of com.eviware.soapui.support.components.JXToolBar

  private void buildUI()
  {
    propertiesTable = createPropertyHolderTable();
    add( propertiesTable, BorderLayout.CENTER );

    JXToolBar toolbar = propertiesTable.getToolbar();

    toolbar.addRelatedGap();
    JButton reloadButton = UISupport.createToolbarButton( new ReloadPropertiesFromSourceAction() );
    toolbar.add( reloadButton );

    toolbar.addSeparator();
    toolbar.add( new JLabel( "Load from:" ) );
    sourceField = new JTextField( testStep.getSource(), 20 )
    {
      @Override
      public String getToolTipText( MouseEvent event )
      {
        return testStep.getSource( true );
      }
    };
    sourceField.setToolTipText( "The filename/url or referring system-property to load properties from" );
    sourceField.getDocument().addDocumentListener( new DocumentListenerAdapter()
    {
      public void update( Document document )
      {
        if( updatingSource )
          return;

        updatingSource = true;
        testStep.setSource( sourceField.getText() );
        updatingSource = false;
      }
    } );

    toolbar.addRelatedGap();
    toolbar.addFixed( sourceField );
    JButton setSourceButton = UISupport.createToolbarButton( new SetPropertiesSourceAction() );
    toolbar.addRelatedGap();
    toolbar.add( setSourceButton );

    toolbar.addSeparator();
    toolbar.add( new JLabel( "Save to:" ) );
    targetField = new JTextField( testStep.getTarget(), 20 )
    {
      @Override
      public String getToolTipText( MouseEvent event )
      {
        return testStep.getTarget( true );
      }
    };

    targetField.setToolTipText( "The filename/url or referring system-property to save properties to" );
    targetField.getDocument().addDocumentListener( new DocumentListenerAdapter()
    {
      public void update( Document document )
      {
        if( updatingTarget )
          return;

        updatingTarget = true;
        testStep.setTarget( targetField.getText() );
        updatingTarget = false;
      }
    } );

    toolbar.addRelatedGap();
    toolbar.addFixed( targetField );
    JButton setTargetButton = UISupport.createToolbarButton( new SetPropertiesTargetAction() );
    toolbar.addRelatedGap();
    toolbar.add( setTargetButton );

    toolbar.add( Box.createHorizontalGlue() );
    toolbar.addSeparator();
    toolbar.add( UISupport.createToolbarButton( new ShowOnlineHelpAction( HelpUrls.PROPERTIESSTEPEDITOR_HELP_URL ) ) );

    componentEnabler.add( sourceField );
    componentEnabler.add( targetField );
    componentEnabler.add( setTargetButton );
    componentEnabler.add( setSourceButton );
View Full Code Here

Examples of com.eviware.soapui.support.components.JXToolBar

  private JComponent buildToolbar()
  {
    exportButton = UISupport.createToolbarButton( new ExportStatisticsHistoryAction( statisticsGraph ) );

    JXToolBar toolbar = UISupport.createToolbar();

    toolbar.addSpace( 5 );
    toolbar.addLabeledFixed( "Select Step:", buildSelectStepCombo() );
    toolbar.addUnrelatedGap();
    toolbar.addLabeledFixed( "Resolution:", buildResolutionCombo() );
    toolbar.addGlue();
    toolbar.addFixed( exportButton );
    toolbar.addFixed( UISupport.createToolbarButton( new ShowOnlineHelpAction( HelpUrls.STATISTICSGRAPH_HELP_URL ) ) );

    return toolbar;
  }
View Full Code Here

Examples of com.eviware.soapui.support.components.JXToolBar

  private JComponent buildToolbar()
  {
    cancelAction.setEnabled( false );
    runAction.setEnabled( getModelItem().getTestCaseCount() > 0 );

    JXToolBar toolbar = UISupport.createToolbar();

    addToolbarActions( toolbar );
    toolbar.addGlue();
    toolbar.add( UISupport.createToolbarButton( new ShowOnlineHelpAction( HelpUrls.TESTSUITE_HELP_URL ) ) );

    progressBar = new JProgressBar( 0, getModelItem().getTestCaseCount() );
    JPanel progressPanel = UISupport.createProgressBarPanel( progressBar, 10, false );

    JPanel panel = new JPanel( new BorderLayout() );
View Full Code Here

Examples of com.eviware.soapui.support.components.JXToolBar

    return p;
  }

  private Component buildTestCaseListToolbar()
  {
    JXToolBar toolbar = UISupport.createToolbar();
    toolbar.add( UISupport.createToolbarButton( SwingActionDelegate.createDelegate(
        AddNewTestCaseAction.SOAPUI_ACTION_ID, getModelItem(), null, "/testCase.gif" ) ) );
    toolbar.add( UISupport.createToolbarButton( SwingActionDelegate.createDelegate(
        CreateWebTestCaseAction.SOAPUI_ACTION_ID, getModelItem(), null, "/webTestCase.gif" ) ) );
    toolbar.addGlue();
    toolbar.add( UISupport.createToolbarButton( new ShowOnlineHelpAction( HelpUrls.TESTSUITEEDITOR_HELP_URL ) ) );
    return toolbar;
  }
View Full Code Here

Examples of com.eviware.soapui.support.components.JXToolBar

    return UISupport.buildPanelWithToolbar( buildMockOperationListToolbar(), scrollPane );
  }

  private JComponent buildMockOperationListToolbar()
  {
    JXToolBar toolbar = UISupport.createToolbar();
    toolbar.add( UISupport.createToolbarButton( SwingActionDelegate.createDelegate(
        AddNewMockOperationAction.SOAPUI_ACTION_ID, getModelItem(), null, "/mockOperation.gif" ) ) );

    return toolbar;
  }
View Full Code Here

Examples of com.eviware.soapui.support.components.JXToolBar

  }

  protected JComponent buildLog()
  {
    JPanel panel = new JPanel( new BorderLayout() );
    JXToolBar builder = UISupport.createToolbar();

    enableLogCheckBox = new JCheckBox( " ", true );
    enableLogCheckBox.addActionListener( new ActionListener()
    {

      public void actionPerformed( ActionEvent arg0 )
      {
        testLogList.setEnabled( enableLogCheckBox.isSelected() );
        if( mockRunner != null )
          mockRunner.setLogEnabled( enableLogCheckBox.isSelected() );

        // border needs to be repainted..
        logScrollPane.repaint();
      }
    } );
    enableLogCheckBox.setOpaque( false );

    builder.addFixed( enableLogCheckBox );
    builder.addRelatedGap();
    builder.addFixed( new JLabel( "Enable" ) );
    builder.addRelatedGap();
    addLogActions( builder );

    builder.addGlue();
    builder.setBorder( BorderFactory.createEmptyBorder( 2, 3, 3, 3 ) );

    panel.add( builder, BorderLayout.NORTH );

    logListModel = new LogListModel();
    testLogList = new JList( logListModel );
View Full Code Here

Examples of com.eviware.soapui.support.components.JXToolBar

    builder.addFixed( UISupport.createToolbarButton( new SetLogOptionsAction() ) );
  }

  protected JXToolBar buildToolbar()
  {
    JXToolBar toolbar = UISupport.createToolbar();

    runButton = createActionButton( new RunMockServiceAction(), true );
    stopButton = createActionButton( new StopMockServiceAction(), false );
    optionsButton = createActionButton(
        SwingActionDelegate.createDelegate( new MockServiceOptionsAction(), getModelItem(), null, "/options.gif" ),
        true );
    showWsdlButton = createActionButton( new ShowWsdlAction(), false );

    toolbar.addFixed( runButton );
    toolbar.addFixed( stopButton );
    toolbar.addFixed( showWsdlButton );
    toolbar.addFixed( optionsButton );

    toolbar.addGlue();

    runInfoLabel = new JLabel( "", SwingConstants.RIGHT );
    toolbar.addFixed( UISupport.setFixedSize( runInfoLabel, 200, 20 ) );
    toolbar.addRelatedGap();

    progressBar = new JProgressBar();
    JPanel progressBarPanel = UISupport.createProgressBarPanel( progressBar, 2, false );
    progressBarPanel.setPreferredSize( new Dimension( 60, 20 ) );

    toolbar.addFixed( progressBarPanel );
    toolbar.addRelatedGap();

    toolbar.addFixed( createActionButton( new ShowOnlineHelpAction( HelpUrls.MOCKSERVICE_HELP_URL ), true ) );

    return toolbar;
  }
View Full Code Here

Examples of com.eviware.soapui.support.components.JXToolBar

    configureAssertionAction = new ConfigureAssertionAction();
    removeAssertionAction = new RemoveAssertionAction();
    moveAssertionUpAction = new MoveAssertionUpAction();
    moveAssertionDownAction = new MoveAssertionDownAction();

    JXToolBar toolbar = UISupport.createToolbar();
    addToolbarButtons( toolbar );

    toolbar.addGlue();
    toolbar.add( new ShowOnlineHelpAction(getHelpUrl()) );

    assertionList.addListSelectionListener( new ListSelectionListener()
    {

      public void valueChanged( ListSelectionEvent e )
View Full Code Here

Examples of com.eviware.soapui.support.components.JXToolBar

  {
    configureAssertionAction = new ConfigureAssertionAction();
    removeAssertionAction = new RemoveAssertionAction();
    addLoadTestAssertionAction = new AddLoadTestAssertionAction();

    JXToolBar toolbar = UISupport.createSmallToolbar();

    JButton button = UISupport.createToolbarButton( addLoadTestAssertionAction );
    toolbar.addFixed( button );
    button = UISupport.createToolbarButton( removeAssertionAction );
    toolbar.addFixed( button );
    button = UISupport.createToolbarButton( configureAssertionAction );
    toolbar.addFixed( button );
    toolbar.addGlue();
    toolbar.add( new ShowOnlineHelpAction( HelpUrls.LOADTEST_ASSERTIONS_URL ) );

    return toolbar;
  }
View Full Code Here

Examples of com.eviware.soapui.support.components.JXToolBar

    if( !model.isReadOnly() )
    {
      headersTable.setSurrendersFocusOnKeystroke( true );
      headersTable.putClientProperty( "terminateEditOnFocusLost", Boolean.TRUE );

      JXToolBar builder = UISupport.createSmallToolbar();
      builder.addFixed( UISupport.createToolbarButton( new AddAction() ) );
      removeButton = UISupport.createToolbarButton( new RemoveAction() );
      builder.addFixed( removeButton );
      builder.addGlue();
      builder.addFixed( UISupport.createToolbarButton( new ShowOnlineHelpAction( HelpUrls.HEADERS_HELP_URL ) ) );

      panel.add( builder, BorderLayout.NORTH );

      headersTable.getSelectionModel().addListSelectionListener( new ListSelectionListener()
      {
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.