com.sybase.uep.bobclient.actions
Class AlertQuestionAction

java.lang.Object
  extended by com.sybase.uep.bobclient.actions.Action
      extended by com.sybase.uep.bobclient.actions.AlertQuestionAction
All Implemented Interfaces:
IBOBAction, java.lang.Runnable

public class AlertQuestionAction
extends Action

This is the question alert action class

This will popup a question alert dialog that ask the user for a response.

Author:
tdang
See Also:
Action

Constructor Summary
AlertQuestionAction(int messageRID, IBOBAction onOkAction, IBOBAction onCancelAction)
          Constructor to create an alert question action
AlertQuestionAction(int messageRID, IBOBAction onOkAction, IBOBAction onCancelAction, boolean closeCurrentScreen)
          Constructor to create an alert question action
AlertQuestionAction(int messageRID, IBOBAction onOkAction, IBOBAction onCancelAction, boolean closeCurrentScreen, int okLabelRID, int cancelLabelRID)
          Constructor to create an alert question action
AlertQuestionAction(java.lang.String message, IBOBAction onOkAction, IBOBAction onCancelAction)
          Constructor to create an alert question action
AlertQuestionAction(java.lang.String message, IBOBAction onOkAction, IBOBAction onCancelAction, boolean closeCurrentScreen)
          Constructor to create an alert question action
AlertQuestionAction(java.lang.String message, IBOBAction onOkAction, IBOBAction onCancelAction, boolean closeCurrentScreen, java.lang.String okLabel, java.lang.String cancelLabel)
          Constructor to create an alert question action
 
Method Summary
 void run()
          (non-Javadoc)
 void setCloseScreenOnCancel(boolean bol)
          Set the close screen cancel action
 
Methods inherited from class com.sybase.uep.bobclient.actions.Action
finish, hasFailed, isProcessing, setHasFailed, setIsProcessing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlertQuestionAction

public AlertQuestionAction(int messageRID,
                           IBOBAction onOkAction,
                           IBOBAction onCancelAction)
Constructor to create an alert question action

Parameters:
messageRID - int value for the localization resource ID of the message to be displayed
onOkAction - IBOBAction action to perform the ok action
onCancelAction - IBOBAction action to perform the canel action

AlertQuestionAction

public AlertQuestionAction(java.lang.String message,
                           IBOBAction onOkAction,
                           IBOBAction onCancelAction)
Constructor to create an alert question action

Parameters:
message - String value for the question message to be displayed
onOkAction - IBOBAction action to perform the ok action
onCancelAction - IBOBAction action to perform the canel action

AlertQuestionAction

public AlertQuestionAction(int messageRID,
                           IBOBAction onOkAction,
                           IBOBAction onCancelAction,
                           boolean closeCurrentScreen)
Constructor to create an alert question action

Parameters:
messageRID - int value for the localization resource ID of the message to be displayed
onOkAction - IBOBAction action to perform the ok action
onCancelAction - IBOBAction action to perform the canel action
closeCurrentScreen - true to close the current screen, otherwise false

AlertQuestionAction

public AlertQuestionAction(java.lang.String message,
                           IBOBAction onOkAction,
                           IBOBAction onCancelAction,
                           boolean closeCurrentScreen)
Constructor to create an alert question action

Parameters:
message - String value for the question message to be displayed
onOkAction - IBOBAction action to perform the ok action
onCancelAction - IBOBAction action to perform the canel action
closeCurrentScreen - true to close the current screen, otherwise false

AlertQuestionAction

public AlertQuestionAction(int messageRID,
                           IBOBAction onOkAction,
                           IBOBAction onCancelAction,
                           boolean closeCurrentScreen,
                           int okLabelRID,
                           int cancelLabelRID)
Constructor to create an alert question action

Parameters:
messageRID - int value for the localization resource ID of the message to be displayed
onOkAction - IBOBAction action to perform the ok action
onCancelAction - IBOBAction action to perform the canel action
closeCurrentScreen - true to close the current screen, otherwise false
okLabelRID - int value for the localization resource ID of the ok label that goes in the alert window
cancelLabelRID - int value for the localization resource ID of the cancel label that goes in the alert window

AlertQuestionAction

public AlertQuestionAction(java.lang.String message,
                           IBOBAction onOkAction,
                           IBOBAction onCancelAction,
                           boolean closeCurrentScreen,
                           java.lang.String okLabel,
                           java.lang.String cancelLabel)
Constructor to create an alert question action

Parameters:
message - String value for the question message to be displayed
onOkAction - IBOBAction action to perform the ok action
onCancelAction - IBOBAction action to perform the canel action
closeCurrentScreen - true to close the current screen, otherwise false
okLabel - String value for the ok label that goes in the alert window
cancelLabel - String value for the cancel label that goes in the question alert window
Method Detail

setCloseScreenOnCancel

public void setCloseScreenOnCancel(boolean bol)
Set the close screen cancel action

Parameters:
bol - true to create a cancel action to close the dialog, otherwise false

run

public void run()
(non-Javadoc)

See Also:
Runnable.run()