Package com.eviware.soapui.impl.wsdl.panels.teststeps.support

Examples of com.eviware.soapui.impl.wsdl.panels.teststeps.support.PropertyHolderTable$PropertyHolderTablePropertyExpansionDropTarget


        {
          // check for closed project -> this should be solved with a
          // separate ClosedWsdlProject modelItem
          if( !( modelItem instanceof WsdlProject ) || ( ( WsdlProject )modelItem ).isOpen() )
          {
            selectedPropertyHolderTable = new PropertyHolderTable( ( TestPropertyHolder )modelItem );
          }
        }

        PanelBuilder<ModelItem> panelBuilder = PanelBuilderRegistry.getPanelBuilder( modelItem );
        if( panelBuilder != null && panelBuilder.hasOverviewPanel() )
View Full Code Here


    return statusBar;
  }

  protected JComponent buildProperties()
  {
    propertyHolderTable = new PropertyHolderTable( getModelItem() )
    {
      protected JTable buildPropertiesTable()
      {
        propertiesModel = new DefaultPropertyTableHolderModel( holder )
        {
View Full Code Here

    return panel;
  }

  protected PropertyHolderTable buildPropertiesTable()
  {
    return new PropertyHolderTable( getModelItem() );
  }
View Full Code Here

  }

  private JComponent buildPropertiesPanel()
  {
    JPanel panel = new JPanel( new BorderLayout() );
    propertiesTable = new PropertyHolderTable( getModelItem() );
    panel.add( propertiesTable, BorderLayout.CENTER );
    return panel;
  }
View Full Code Here

    return testRunLog;
  }

  protected PropertyHolderTable createPropertiesTable()
  {
    propertiesTable = new PropertyHolderTable( getModelItem() );

    titledBorder = BorderFactory.createTitledBorder( createTitleForBorder() );
    propertiesTable.setBorder( titledBorder );

    return propertiesTable;
View Full Code Here

    return statusBar;
  }

  protected JComponent buildProperties()
  {
    propertyHolderTable = new PropertyHolderTable( getModelItem() )
    {
      protected JTable buildPropertiesTable()
      {
        propertiesModel = new DefaultPropertyTableHolderModel( holder )
        {
View Full Code Here

    setPreferredSize( new Dimension( 600, 400 ) );
  }

  protected PropertyHolderTable createPropertyHolderTable()
  {
    return new PropertyHolderTable( getModelItem() );
  }
View Full Code Here

    return panel;
  }

  protected PropertyHolderTable createPropertyHolderTable()
  {
    return new PropertyHolderTable( getModelItem() );
  }
View Full Code Here

  }

  protected JComponent buildPropertiesPanel()
  {
    JPanel panel = new JPanel( new BorderLayout() );
    propertiesTable = new PropertyHolderTable( getModelItem() );
    panel.add( propertiesTable, BorderLayout.CENTER );
    return panel;
  }
View Full Code Here

  {
    if( securityScansForm == null )
    {
      securityScansForm = new SimpleForm();

      PropertyHolderTable propertyHolderTable = new PropertyHolderTable(
          SecurityScanUtil.getGlobalSensitiveInformationExposureTokens() )
      {
        protected JTable buildPropertiesTable()
        {
          propertiesModel = new DefaultPropertyTableHolderModel( holder )
          {
            public String getColumnName( int columnIndex )
            {
              switch( columnIndex )
              {
              case 0 :
                return "Token";
              case 1 :
                return "Description";
              }

              return null;
            }

          };
          propertiesTable = new PropertiesHolderJTable();
          propertiesTable.setSurrendersFocusOnKeystroke( true );

          propertiesTable.putClientProperty( "terminateEditOnFocusLost", Boolean.TRUE );
          propertiesTable.getSelectionModel().addListSelectionListener( new ListSelectionListener()
          {
            public void valueChanged( ListSelectionEvent e )
            {
              int selectedRow = propertiesTable.getSelectedRow();
              if( removePropertyAction != null )
                removePropertyAction.setEnabled( selectedRow != -1 );

              if( movePropertyUpAction != null )
                movePropertyUpAction.setEnabled( selectedRow > 0 );

              if( movePropertyDownAction != null )
                movePropertyDownAction.setEnabled( selectedRow >= 0
                    && selectedRow < propertiesTable.getRowCount() - 1 );
            }
          } );

          propertiesTable.setDragEnabled( true );
          propertiesTable.setTransferHandler( new TransferHandler( "testProperty" ) );

          if( getHolder().getModelItem() != null )
          {
            DropTarget dropTarget = new DropTarget( propertiesTable,
                new PropertyHolderTablePropertyExpansionDropTarget() );
            dropTarget.setDefaultActions( DnDConstants.ACTION_COPY_OR_MOVE );
          }

          return propertiesTable;
        }
      };
      propertyHolderTable.setPreferredSize( new Dimension( 200, 300 ) );
      securityScansForm.append( new JLabel( title ) );
      securityScansForm.addSpace();
      securityScansForm.addComponent( propertyHolderTable );
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.panels.teststeps.support.PropertyHolderTable$PropertyHolderTablePropertyExpansionDropTarget

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.