Class ExampleCustomMessageHandler

java.lang.Object
org.jpedal.examples.handlers.ExampleCustomMessageHandler
All Implemented Interfaces:
CustomMessageHandler

public class ExampleCustomMessageHandler extends Object implements CustomMessageHandler
  • Constructor Details

    • ExampleCustomMessageHandler

      public ExampleCustomMessageHandler()
  • Method Details

    • showMessage

      public boolean showMessage(Object message)
      Description copied from interface: CustomMessageHandler
      Allow user to add own action to all dialog messages and also bypass dialog messages
      Specified by:
      showMessage in interface CustomMessageHandler
      Parameters:
      message - the message to be shown
      Returns:
      true if you still want message displayed
    • requestInput

      public String requestInput(Object[] args)
      input request and parameters passed in
      Specified by:
      requestInput in interface CustomMessageHandler
      Parameters:
      args - string or components passed in as parameters
      Returns:
      null will call input - otherwise will use non-null value
    • requestConfirm

      public int requestConfirm(Object[] args)
      Allow user to add own action to all dialog messages and also bypass dialog messages
      Specified by:
      requestConfirm in interface CustomMessageHandler
      Parameters:
      args - string or components passed in as parameters
      Returns:
      int value returnd by JOptionPane.showConfirmDialog