/**
* WS-Attacker - A Modular Web Services Penetration Testing Framework Copyright
* (C) 2011 Christian Mainka
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wsattacker.plugin.signatureWrapping.option;
import wsattacker.gui.composition.AbstractOptionGUI;
import wsattacker.main.composition.ControllerInterface;
import wsattacker.main.composition.plugin.AbstractPlugin;
import wsattacker.main.composition.plugin.option.AbstractOption;
/**
* @author christian
*/
public class OptionViewButtonGUI_NB
extends AbstractOptionGUI
{
private ControllerInterface controller;
private AbstractPlugin plugin;
private AbstractOption option;
/**
* Creates new form OptionViewButtonGUI_NB
*/
public OptionViewButtonGUI_NB()
{
initComponents();
}
public OptionViewButtonGUI_NB( ControllerInterface controller, AbstractPlugin plugin, AbstractOption option )
{
this.controller = controller;
this.plugin = plugin;
this.option = option;
initComponents();
}
private String getOptionName()
{
return ( option != null ? option.getName() : "Error" );
}
private String getOptionDescription()
{
return ( option != null ? option.getDescription() : "Error" );
}
/**
* This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The
* content of this method is always regenerated by the Form Editor.
*/
@SuppressWarnings( "unchecked" )
// <editor-fold defaultstate="collapsed"
// desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents()
{
wrappingOracleGUI = new javax.swing.JDialog();
viewLabel = new javax.swing.JLabel();
viewButton = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
javax.swing.GroupLayout wrappingOracleGUILayout =
new javax.swing.GroupLayout( wrappingOracleGUI.getContentPane() );
wrappingOracleGUI.getContentPane().setLayout( wrappingOracleGUILayout );
wrappingOracleGUILayout.setHorizontalGroup( wrappingOracleGUILayout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING ).addGap( 0,
400,
Short.MAX_VALUE ) );
wrappingOracleGUILayout.setVerticalGroup( wrappingOracleGUILayout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING ).addGap( 0,
300,
Short.MAX_VALUE ) );
viewLabel.setText( getOptionName() );
viewButton.setText( "Open" );
viewButton.addActionListener( new java.awt.event.ActionListener()
{
@Override
public void actionPerformed( java.awt.event.ActionEvent evt )
{
viewButtonActionPerformed( evt );
}
} );
jLabel1.setFont( new java.awt.Font( "Dialog", 0, 12 ) ); // NOI18N
jLabel1.setText( getOptionDescription() );
javax.swing.GroupLayout layout = new javax.swing.GroupLayout( this );
this.setLayout( layout );
layout.setHorizontalGroup( layout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING ).addGroup( layout.createSequentialGroup().addContainerGap().addComponent( viewLabel ).addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.UNRELATED ).addComponent( jLabel1,
javax.swing.GroupLayout.DEFAULT_SIZE,
187,
Short.MAX_VALUE ).addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED ).addComponent( viewButton ).addContainerGap() ) );
layout.setVerticalGroup( layout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING ).addGroup( layout.createSequentialGroup().addContainerGap().addGroup( layout.createParallelGroup( javax.swing.GroupLayout.Alignment.BASELINE ).addComponent( viewLabel ).addComponent( viewButton ).addComponent( jLabel1 ) ).addContainerGap( javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE ) ) );
}// </editor-fold>//GEN-END:initComponents
private void viewButtonActionPerformed( java.awt.event.ActionEvent evt )
{// GEN-FIRST:event_viewButtonActionPerformed
// TODO add your handling code here:
}// GEN-LAST:event_viewButtonActionPerformed
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel jLabel1;
private javax.swing.JButton viewButton;
private javax.swing.JLabel viewLabel;
private javax.swing.JDialog wrappingOracleGUI;
// End of variables declaration//GEN-END:variables
@Override
public void saveValue()
{
}
@Override
public void checkValue()
{
}
@Override
public void reloadValue()
{
}
}