JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support

org.jpedal.examples.handlers
Class ExampleCustomMessageHandler

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

public class ExampleCustomMessageHandler
extends java.lang.Object
implements CustomMessageHandler


Constructor Summary
ExampleCustomMessageHandler()
           
 
Method Summary
 int requestConfirm(java.lang.Object[] args)
          Allow user to add own action to all dialog messages and also bypass dialog messages
 java.lang.String requestInput(java.lang.Object[] args)
          input request and parameters passed in
 boolean showMessage(java.lang.Object message)
          Allow user to add own action to all dialog messages and also bypass dialog messages
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleCustomMessageHandler

public ExampleCustomMessageHandler()
Method Detail

showMessage

public boolean showMessage(java.lang.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
Returns:
true if you still want message displayed

requestInput

public java.lang.String requestInput(java.lang.Object[] args)
input request and parameters passed in

Specified by:
requestInput in interface CustomMessageHandler
Parameters:
args -
Returns:
null will call input - otherwise will use non-null value

requestConfirm

public int requestConfirm(java.lang.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 -
Returns:
int value returnd by JOptionPane.showConfirmDialog

JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support

JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support