Class CommandCreationAdapter
- java.lang.Object
-
- org.jadice.util.swing.action.listener.CommandCreationAdapter
-
- All Implemented Interfaces:
CommandCreationListener
- Direct Known Subclasses:
DebugActionCreationFailureLogger
public class CommandCreationAdapter extends Object implements CommandCreationListener
Just an adapter class ofCommandCreationListener
with empty methods.- Author:
- Carolin Koehler
-
-
Constructor Summary
Constructors Constructor Description CommandCreationAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
creationFailure(NamedCommandFactory source, String message, String key, Throwable t)
This method will be called if a failure occurred while command or command factory creation.void
creationInformation(NamedCommandFactory source, String message, String key)
This method will be called when ever informational messages should be provided while a command creation.void
creationWarning(NamedCommandFactory source, String message, String key)
This method will be called if something happens while command creation, which should be notified as a warning indicating a potential problem.
-
-
-
Method Detail
-
creationFailure
public void creationFailure(NamedCommandFactory source, String message, String key, Throwable t)
Description copied from interface:CommandCreationListener
This method will be called if a failure occurred while command or command factory creation.- Specified by:
creationFailure
in interfaceCommandCreationListener
- Parameters:
source
- The source object where the failure occurred ornull
if the command factory could not be created.message
- A failure descriptionkey
- The key of the problematic command or the name of the problematic command factoryt
- (optional) the occurredThrowable
ornull
-
creationWarning
public void creationWarning(NamedCommandFactory source, String message, String key)
Description copied from interface:CommandCreationListener
This method will be called if something happens while command creation, which should be notified as a warning indicating a potential problem.- Specified by:
creationWarning
in interfaceCommandCreationListener
- Parameters:
source
- The source object where the problem occurred.message
- A problem descriptionkey
- (optional) The key of the problematic command ornull
-
creationInformation
public void creationInformation(NamedCommandFactory source, String message, String key)
Description copied from interface:CommandCreationListener
This method will be called when ever informational messages should be provided while a command creation.- Specified by:
creationInformation
in interfaceCommandCreationListener
- Parameters:
source
- The source object which propagates the information.message
- A messagekey
- (optional) The key of the command ornull
-
-