Examples of JXToolBar


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

    }
  }

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

    toolbar.addFixed( UISupport.createToolbarButton( new BackwardAction() ) );
    toolbar.addFixed( UISupport.createToolbarButton( new ForwardAction() ) );
    toolbar.addUnrelatedGap();
    // JButton button = UISupport.createToolbarButton(
    // SwingActionDelegate.createDelegate(
    // UpdateInterfaceAction.SOAPUI_ACTION_ID, getModelItem(), null,
    // "/updateDefinition.gif" ) );
    // button.setText( null );
    // toolbar.addFixed( button );
    JButton button = UISupport.createToolbarButton( SwingActionDelegate.createDelegate(
        ExportWadlAction.SOAPUI_ACTION_ID, getModelItem(), null, "/exportDefinition.gif" ) );
    button.setText( null );
    toolbar.addFixed( button );
    toolbar.addFixed( UISupport.createToolbarButton( SwingActionDelegate.createDelegate(
        CreateWadlDocumentationAction.SOAPUI_ACTION_ID, restService, null, "/export.gif" ) ) );

    toolbar.addFixed( button );

    if( restService.isGenerated() )
    {
      toolbar.addUnrelatedGap();
      toolbar.addFixed( UISupport.createToolbarButton( new RecreateWadlAction() ) );
    }

    toolbar.addGlue();
    button = UISupport.createToolbarButton( new ShowOnlineHelpAction( HelpUrls.INTERFACE_HELP_URL ) );
    button.setText( null );

    return toolbar;
  }
View Full Code Here

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

    postQueryCheckBox.setEnabled( httpRequest.hasRequestBody() );
  }

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

    addMediaTypeCombo( toolbar );
    toolbar.addSeparator();

    addPostQueryCheckBox( toolbar );

    toolbar.setMinimumSize( new Dimension( 50, 20 ) );

    return toolbar;
  }
View Full Code Here

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

    if( getRequest().getResource() != null )
    {
      JPanel panel = new JPanel( new BorderLayout() );
      panel.add( super.buildToolbar(), BorderLayout.NORTH );

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

      panel.add( toolbar, BorderLayout.SOUTH );
      return panel;
    }
View Full Code Here

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

      return modelItem.getName();
  }

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

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

    toolbar.addSeparator();

    pathTextField = new JUndoableTextField( getModelItem().getPath(), 20 );
    pathTextField.getDocument().addDocumentListener( new DocumentListenerAdapter()
    {
      public void update( Document document )
      {
        if( !updating )
        {
          updating = true;
          getModelItem().setPath( getText( document ) );
          updating = false;
        }
      }
    } );
    pathTextField.addFocusListener( new FocusListener()
    {
      public void focusLost( FocusEvent e )
      {
        for( String p : RestUtils.extractTemplateParams( getModelItem().getPath() ) )
        {
          if( !getModelItem().hasProperty( p ) )
          {
            if( UISupport.confirm( "Add template parameter [" + p + "] to resource?", "Add Parameter" ) )
            {
              RestParamProperty property = getModelItem().addProperty( p );
              property.setStyle( ParameterStyle.TEMPLATE );
              String value = UISupport.prompt( "Specify default value for parameter [" + p + "]",
                  "Add Parameter", "" );
              if( value != null )
                property.setDefaultValue( value );
            }
          }
        }
      }

      public void focusGained( FocusEvent e )
      {
      }
    } );

    toolbar.addLabeledFixed( "Resource Path", pathTextField );

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

    return toolbar;
  }
View Full Code Here

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

  protected JComponent buildToolbar()
  {
    endpointComponent = buildEndpointComponent();

    JXToolBar toolbar = UISupport.createToolbar();
    toolbar.add( submitButton );

    insertButtons( toolbar );

    toolbar.add( cancelButton );

    if( endpointComponent != null )
    {
      toolbar.addSeparator();
      toolbar.add( endpointComponent );
    }

    toolbar.add( Box.createHorizontalGlue() );
    toolbar.add( tabsButton );
    toolbar.add( splitButton );
    toolbar.add( UISupport.createToolbarButton( new ShowOnlineHelpAction( getHelpUrl() ) ) );

    return toolbar;
  }
View Full Code Here

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

      paramDetailsModel.setBean( null );
  }

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

    toolbar.add( UISupport.createToolbarButton( addParamAction ) );
    toolbar.add( UISupport.createToolbarButton( removeParamAction, false ) );
    toolbar.add( UISupport.createToolbarButton( clearParamsAction, paramsTable.getRowCount() > 0 ) );
    toolbar.addSeparator();
    toolbar.add( UISupport.createToolbarButton( movePropertyDownAction, false ) );
    toolbar.add( UISupport.createToolbarButton( movePropertyUpAction, false ) );
    toolbar.addSeparator();
    toolbar.add( UISupport.createToolbarButton( updateParamsAction ) );
    toolbar.addSeparator();

    insertAdditionalButtons( toolbar );

    toolbar.addGlue();

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

    return toolbar;
  }
View Full Code Here

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

    out.write( rawResponse );
  }

  private Component buildToolbar()
  {
    JXToolBar toolbar = UISupport.createToolbar();
    recordButton = new JToggleButton( new RecordHttpTraficAction() );

    toolbar.addLabeledFixed( "Record HTTP trafic", recordButton );
    return toolbar;
  }
View Full Code Here

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

    return saveReportAction;
  }

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

    toolbar.addFixed( UISupport.createToolbarButton( saveReportAction ) );
    toolbar.addGlue();
    toolbar.setBorder( BorderFactory.createEmptyBorder( 3, 3, 3, 3 ) );

    return toolbar;
  }
View Full Code Here

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

    setBorder( BorderFactory.createEmptyBorder( 0, 0, 0, 0 ) );
  }

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

    JToggleButton toggleButton = new JToggleButton( new TogglePropertiesAction() );
    toggleButton.setToolTipText( "Toggles displaying of Test Properties in tree" );
    toggleButton.setSize( 10, 12 );
    toolbar.addFixed( toggleButton );
    toolbar.addGlue();

    return toolbar;
  }
View Full Code Here

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

    uiUtils.invokeAndWait( runnable );
  }

  public static JXToolBar createToolbar()
  {
    JXToolBar toolbar = new JXToolBar();
    toolbar.addSpace( 1 );
    toolbar.setRollover( true );
    toolbar.putClientProperty( Options.HEADER_STYLE_KEY, HeaderStyle.SINGLE );
    toolbar.setBorder( BorderFactory.createEmptyBorder( 3, 0, 3, 0 ) );
    toolbar.setMinimumSize( new Dimension( 20, 20 ) );
    return toolbar;
  }
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.