com.levigo.util.swing.action
Interface MenuComponentCreationListener

All Known Implementing Classes:
DebugActionCreationFailureLogger, MenuComponentCreationAdapter

public interface MenuComponentCreationListener

Instances of MenuComponentCreationListener can be registered at DefaultMenuComponentFactory to receive informations or failure messages of menu component creation process.

This mechanism can be used to forward these informations to application specific logging frameworks or to initiate certain failure handling.

Author:
Carolin Köhler

Method Summary
 void creationFailure(NamedMenuComponentFactory source, String message, String key, Throwable t)
          This method will be called if a failure occurred while menu component creation.
 void creationInformation(NamedMenuComponentFactory source, String message, String key)
          This method will be called when ever informational messages should be provided while a menu component creation.
 void creationWarning(NamedMenuComponentFactory source, String message, String key)
          This method will be called if something happens while menu component creation, which should be notified as a warning indicating a potential problem.
 

Method Detail

creationFailure

void creationFailure(NamedMenuComponentFactory source,
                     String message,
                     String key,
                     Throwable t)
This method will be called if a failure occurred while menu component creation.

Parameters:
source - The source object where the failure occurred.
message - A failure description
key - (optional) The key of the problematic menu structure or null
t - (optional) the occurred Throwable or null

creationWarning

void creationWarning(NamedMenuComponentFactory source,
                     String message,
                     String key)
This method will be called if something happens while menu component creation, which should be notified as a warning indicating a potential problem.

Parameters:
source - The source object where the problem occurred.
message - A problem description
key - (optional) The key of the problematic menu structure or null

creationInformation

void creationInformation(NamedMenuComponentFactory source,
                         String message,
                         String key)
This method will be called when ever informational messages should be provided while a menu component creation.

Parameters:
source - The source object which propagates the information.
message - A message
key - (optional) The key of the menu structure or null


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.