Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jempeg.empeg.emplode.action
Class PopupConfirmationListener  view PopupConfirmationListener download PopupConfirmationListener.java

java.lang.Object
  extended byorg.jempeg.empeg.emplode.action.PopupConfirmationListener
All Implemented Interfaces:
ConfirmationListenerIfc

public class PopupConfirmationListener
extends java.lang.Object
implements ConfirmationListenerIfc

ConfirmationListener that is implemented with a Swing Popup.

Version:
$Revision: 1.9 $

Field Summary
static java.lang.String[] CONFIRM_VALUES
           
private  javax.swing.JCheckBox myCheckbox
           
private  java.lang.String myCheckboxMessage
           
private  int myDefaultValue
           
private  javax.swing.JFrame myFrame
           
private  java.lang.String myMessage
           
private  int mySelectedValue
           
private  java.lang.String myTitle
           
static int OPTION_CANCEL
           
static int OPTION_NO
           
static int OPTION_NO_TO_ALL
           
static int OPTION_YES
           
static int OPTION_YES_TO_ALL
           
 
Fields inherited from interface org.jempeg.empeg.emplode.action.ConfirmationListenerIfc
CANCEL, NO, YES, YES_CHECKED
 
Constructor Summary
PopupConfirmationListener(javax.swing.JFrame _frame, java.lang.String _title, java.lang.String _message)
           
PopupConfirmationListener(javax.swing.JFrame _frame, java.lang.String _title, java.lang.String _message, int _defaultValue)
           
 
Method Summary
 int confirm(java.lang.Object _target)
          Confirm whether or not to perform the particular operation using the default message.
 int confirm(java.lang.String _message, java.lang.Object _target)
          Confirm whether or not to perform the particular operation.
 int confirm(java.lang.String _message, java.lang.String _checkboxMessage, java.lang.Object _target)
          Confirm whether or not to perform the particular operation.
 void setCheckboxMessage(java.lang.String _checkboxMessage)
           
 void setMessage(java.lang.String _message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTION_YES

public static final int OPTION_YES
See Also:
Constant Field Values

OPTION_NO

public static final int OPTION_NO
See Also:
Constant Field Values

OPTION_YES_TO_ALL

public static final int OPTION_YES_TO_ALL
See Also:
Constant Field Values

OPTION_NO_TO_ALL

public static final int OPTION_NO_TO_ALL
See Also:
Constant Field Values

OPTION_CANCEL

public static final int OPTION_CANCEL
See Also:
Constant Field Values

CONFIRM_VALUES

public static final java.lang.String[] CONFIRM_VALUES

myFrame

private javax.swing.JFrame myFrame

myCheckbox

private javax.swing.JCheckBox myCheckbox

myTitle

private java.lang.String myTitle

myMessage

private java.lang.String myMessage

myDefaultValue

private int myDefaultValue

mySelectedValue

private int mySelectedValue

myCheckboxMessage

private java.lang.String myCheckboxMessage
Constructor Detail

PopupConfirmationListener

public PopupConfirmationListener(javax.swing.JFrame _frame,
                                 java.lang.String _title,
                                 java.lang.String _message)

PopupConfirmationListener

public PopupConfirmationListener(javax.swing.JFrame _frame,
                                 java.lang.String _title,
                                 java.lang.String _message,
                                 int _defaultValue)
Method Detail

setMessage

public void setMessage(java.lang.String _message)

setCheckboxMessage

public void setCheckboxMessage(java.lang.String _checkboxMessage)

confirm

public int confirm(java.lang.Object _target)
Description copied from interface: ConfirmationListenerIfc
Confirm whether or not to perform the particular operation using the default message.

Specified by:
confirm in interface ConfirmationListenerIfc

confirm

public int confirm(java.lang.String _message,
                   java.lang.Object _target)
Description copied from interface: ConfirmationListenerIfc
Confirm whether or not to perform the particular operation.

Specified by:
confirm in interface ConfirmationListenerIfc

confirm

public int confirm(java.lang.String _message,
                   java.lang.String _checkboxMessage,
                   java.lang.Object _target)
Description copied from interface: ConfirmationListenerIfc
Confirm whether or not to perform the particular operation.

Specified by:
confirm in interface ConfirmationListenerIfc