Package com.eviware.soapui.support.components

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


    return toolbar;
  }

  public static JXToolBar createSmallToolbar()
  {
    JXToolBar toolbar = new JXToolBar();
    toolbar.addSpace( 1 );
    toolbar.setRollover( true );
    toolbar.putClientProperty( Options.HEADER_STYLE_KEY, HeaderStyle.SINGLE );
    toolbar.setBorder( BorderFactory.createEmptyBorder( 2, 2, 2, 2 ) );
    toolbar.setMinimumSize( new Dimension( 20, 20 ) );
    return toolbar;
  }
View Full Code Here


    panel.add( responseScriptEditor, BorderLayout.CENTER );
  }

  private JComponent buildScriptToolbar()
  {
    JXToolBar toolBar = UISupport.createToolbar();
    JButton runButton = UISupport.createToolbarButton( runScriptAction );
    toolBar.add( runButton );
    toolBar.add( Box.createHorizontalGlue() );
    JLabel label = new JLabel( "<html>Script is invoked with <code>log</code>, <code>context</code>, "
        + "<code>requestContext</code>, <code>mockRequest</code> and <code>mockResponse</code> variables</html>" );
    label.setToolTipText( label.getText() );
    label.setMaximumSize( label.getPreferredSize() );

    toolBar.add( label );
    toolBar.addUnrelatedGap();
    toolBar.addFixed( UISupport.createActionButton(
        new ShowOnlineHelpAction( HelpUrls.MOCKRESPONSE_SCRIPT_HELP_URL ), true ) );

    return toolBar;
  }
View Full Code Here

    add( new JScrollPane( paramsTable ), BorderLayout.CENTER );
  }

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

    toolbar.add( UISupport.createToolbarButton( defaultParamsAction, paramsTable.getRowCount() > 0 ) );
    toolbar.add( UISupport.createToolbarButton( clearParamsAction, paramsTable.getRowCount() > 0 ) );
    toolbar.addSeparator();

    insertAdditionalButtons( toolbar );

    toolbar.addGlue();

    toolbar.add( UISupport.createToolbarButton( new ShowOnlineHelpAction( HelpUrls.WADL_PARAMS_HELP_URL ) ) );

    return toolbar;
  }
View Full Code Here

    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 );
View Full Code Here

    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

    restMethod.addPropertyChangeListener( "representations", this );
  }

  protected JXToolBar buildToolbar()
  {
    JXToolBar toolbar = UISupport.createToolbar();
    if( !readOnly )
    {
      addRepresentationAction = new AddRepresentationAction();
      toolbar.addFixed( UISupport.createToolbarButton( addRepresentationAction ) );

      removeRepresentationAction = new RemoveRepresentationAction();
      removeRepresentationAction.setEnabled( false );
      representationsTable.getSelectionModel().addListSelectionListener( new ListSelectionListener()
      {
        public void valueChanged( ListSelectionEvent e )
        {
          removeRepresentationAction.setEnabled( representationsTable.getSelectedRow() != -1 );
        }
      } );
      toolbar.addFixed( UISupport.createToolbarButton( removeRepresentationAction ) );
    }

    return toolbar;
  }
View Full Code Here

    pathArea = new JUndoableTextArea();
    pathArea.setToolTipText( "Specifies the XPath expression to select from the message for validation" );

    JPanel pathPanel = new JPanel( new BorderLayout() );
    JXToolBar pathToolbar = UISupport.createToolbar();
    addPathEditorActions( pathToolbar );

    pathPanel.add( pathToolbar, BorderLayout.NORTH );
    pathPanel.add( new JScrollPane( pathArea ), BorderLayout.CENTER );

    splitPane.setTopComponent( UISupport.addTitledBorder( pathPanel, "XPath Expression" ) );

    contentArea = new JUndoableTextArea();
    contentArea.setToolTipText( "Specifies the expected result of the XPath expression" );

    JPanel matchPanel = new JPanel( new BorderLayout() );
    JXToolBar contentToolbar = UISupport.createToolbar();
    addMatchEditorActions( contentToolbar );

    matchPanel.add( contentToolbar, BorderLayout.NORTH );
    matchPanel.add( new JScrollPane( contentArea ), BorderLayout.CENTER );
View Full Code Here

    return modelItem.getName();
  }

  private Component buildToolbar()
  {
    JXToolBar toolbar = UISupport.createToolbar();

    methodCombo = new JComboBox( RestRequestInterface.RequestMethod.getMethods() );

    methodCombo.setSelectedItem( getModelItem().getMethod() );
    methodCombo.setToolTipText( "Set desired HTTP method" );
    methodCombo.addItemListener( new ItemListener()
    {
      public void itemStateChanged( ItemEvent e )
      {
        updatingRequest = true;
        getModelItem().setMethod( ( RestRequestInterface.RequestMethod )methodCombo.getSelectedItem() );
        updatingRequest = false;
      }
    } );

    toolbar.addLabeledFixed( "HTTP method", methodCombo );
    toolbar.addSeparator();

    toolbar.addFixed( createActionButton( SwingActionDelegate.createDelegate( NewRestRequestAction.SOAPUI_ACTION_ID,
        getModelItem(), null, "/create_empty_request.gif" ), true ) );

    toolbar.addSeparator();

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

    return toolbar;
  }
View Full Code Here

    representationTable = new RestRepresentationsTable( restMethod,
        types.toArray( new RestRepresentation.Type[] {} ), true )
    {
      protected JXToolBar buildToolbar()
      {
        JXToolBar toolbar = super.buildToolbar();
        addToToolbar( toolbar );
        return toolbar;
      }
    };
  }
View Full Code Here

      return builder.getPanel();
    }

    private JComponent buildToolbar()
    {
      JXToolBar toolBar = UISupport.createToolbar();
      JButton runButton = UISupport.createToolbarButton( runAction );
      toolBar.add( runButton );
      toolBar.add( Box.createHorizontalGlue() );
      JLabel label = new JLabel( "<html>Script is invoked with <code>log</code>, <code>context</code> "
          + "and <code>messageExchange</code> variables</html>" );
      label.setToolTipText( label.getText() );
      label.setMaximumSize( label.getPreferredSize() );

      toolBar.addFixed( label );
      toolBar.addSpace( 3 );

      return toolBar;
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.components.JXToolBar

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.