Class ExampleCustomMessageHandler

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

public class ExampleCustomMessageHandler extends Object implements org.jpedal.external.CustomMessageHandler
  • Constructor Details

    • ExampleCustomMessageHandler

      public ExampleCustomMessageHandler()
  • Method Details

    • showMessage

      public boolean showMessage(Object message)
      Description copied from interface: org.jpedal.external.CustomMessageHandler
      Allow user to add own action to all dialog messages and also bypass dialog messages
      Specified by:
      showMessage in interface org.jpedal.external.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 org.jpedal.external.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 org.jpedal.external.CustomMessageHandler
      Parameters:
      args - string or components passed in as parameters
      Returns:
      int value returnd by JOptionPane.showConfirmDialog