psdi.util

Class MXApplicationYesNoCancelException

  • All Implemented Interfaces:
    java.io.Serializable


    public class MXApplicationYesNoCancelException
    extends MXApplicationException
    Represents a yes/no/cancel exception that can occur during filed setValue() validation or any action. When an exception of this type is thrown, the client programs can take input from the user to either not proceed, or pass yes or no back to the server by calling the same server method again after posting the answer to the bulletin board.
    See Also:
    Serialized Form
    • Constructor Detail

      • MXApplicationYesNoCancelException

        public MXApplicationYesNoCancelException(java.lang.String id,
                                                 java.lang.String eg,
                                                 java.lang.String ek)
        Construct an exception with the error group and key
      • MXApplicationYesNoCancelException

        public MXApplicationYesNoCancelException(java.lang.String id,
                                                 java.lang.String eg,
                                                 java.lang.String ek,
                                                 java.lang.Object[] params)
        Construct an exception with the error group, key and additonal params
      • MXApplicationYesNoCancelException

        public MXApplicationYesNoCancelException(java.lang.String id,
                                                 java.lang.String eg,
                                                 java.lang.String ek,
                                                 java.lang.Throwable t)
        Construct an exception with the error group,key and nested exception
      • MXApplicationYesNoCancelException

        public MXApplicationYesNoCancelException(java.lang.String id,
                                                 java.lang.String eg,
                                                 java.lang.String ek,
                                                 java.lang.Object[] p,
                                                 java.lang.Throwable t)
        Construct an exception with the error group, key, parameters and the nested exception
    • Method Detail

      • getId

        public java.lang.String getId()
        Get the identifier of the exception. The identifier is understood by both the creator of the exception and the code which examings the user input. The id is unique though the maximo code base.
        Returns:
      • postUserInput

        public void postUserInput(MXServerRemote server,
                                  int answer,
                                  UserInfo ui)
        Post the user input.
        Parameters:
        server -
        answer - user input as integer of YES, NO, OK and CANCEL
        ui -
      • getUserInput

        public static int getUserInput(java.lang.String id,
                                       MXServerRemote server,
                                       UserInfo ui)
                                throws java.rmi.RemoteException
        Static method to get the message posted on the bulletin board responding to this type of exception.
        Parameters:
        id -
        server -
        ui -
        Returns:
        the int value defined as YES, NO, CANCEL, OK. -1 means no user input
        Throws:
        java.rmi.RemoteException
      • setContinueEvents

        public void setContinueEvents(int responses)
        Set the user responses that when UI recieves will continue with the other queued events. For example, if you want when user clicks OK, the have the UI continue processing other queued UI events, you should call setContinuedEvents(MXApplicationYesNoCancelException.OK) when you construct the MXApplicatonYesNoCancelException.
        Parameters:
        responses, - the bit values of the user response ored together.
      • getContinueEvents

        public int getContinueEvents()
      • getUserClickedValue

        public int getUserClickedValue()
                                throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException