Package org.jpedal.examples.handlers
Class ExampleCustomMessageHandler
java.lang.Object
org.jpedal.examples.handlers.ExampleCustomMessageHandler
- All Implemented Interfaces:
CustomMessageHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
requestConfirm
(Object[] args) Allow user to add own action to all dialog messages and also bypass dialog messagesrequestInput
(Object[] args) input request and parameters passed inboolean
showMessage
(Object message) Allow user to add own action to all dialog messages and also bypass dialog messages
-
Constructor Details
-
ExampleCustomMessageHandler
public ExampleCustomMessageHandler()
-
-
Method Details
-
showMessage
Description copied from interface:CustomMessageHandler
Allow user to add own action to all dialog messages and also bypass dialog messages- Specified by:
showMessage
in interfaceCustomMessageHandler
- Parameters:
message
- the message to be shown- Returns:
- true if you still want message displayed
-
requestInput
input request and parameters passed in- Specified by:
requestInput
in interfaceCustomMessageHandler
- Parameters:
args
- string or components passed in as parameters- Returns:
- null will call input - otherwise will use non-null value
-
requestConfirm
Allow user to add own action to all dialog messages and also bypass dialog messages- Specified by:
requestConfirm
in interfaceCustomMessageHandler
- Parameters:
args
- string or components passed in as parameters- Returns:
- int value returnd by JOptionPane.showConfirmDialog
-