com.japisoft.framework.dialog.report
Class BugReportingAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bycom.japisoft.framework.dialog.report.BugReportingAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
Direct Known Subclasses:
RequestReportingAction

public class BugReportingAction
extends javax.swing.AbstractAction

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com
See Also:
Serialized Form

Field Summary
protected  java.lang.String dialogTitle
           
protected  java.lang.String image
           
protected  java.lang.String type
           
protected  java.lang.String userInformation
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
BugReportingAction()
           
BugReportingAction(java.lang.String url)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 java.lang.String getType()
           
 java.lang.String getURLReport()
           
 java.lang.String getUserInformation()
           
 void setType(java.lang.String type)
          Override the default type of error
 void setURLReport(java.lang.String url)
           
 void setUserInformation(java.lang.String userInformation)
          Reset the user information available in the dialog header
protected  void showDialog(DialogActionModel model, javax.swing.JPanel panel)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected java.lang.String type

userInformation

protected java.lang.String userInformation

image

protected java.lang.String image

dialogTitle

protected java.lang.String dialogTitle
Constructor Detail

BugReportingAction

public BugReportingAction(java.lang.String url)
Parameters:
url - Remote server processing user information

BugReportingAction

public BugReportingAction()
Method Detail

setURLReport

public void setURLReport(java.lang.String url)
Parameters:
url - Remote server processing user information

getURLReport

public java.lang.String getURLReport()

getType

public java.lang.String getType()
Returns:
the current type of error. By default BUG

setType

public void setType(java.lang.String type)
Override the default type of error


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)

showDialog

protected void showDialog(DialogActionModel model,
                          javax.swing.JPanel panel)

getUserInformation

public java.lang.String getUserInformation()
Returns:
the user information available in the dialog header

setUserInformation

public void setUserInformation(java.lang.String userInformation)
Reset the user information available in the dialog header