Interface ActionListInitializer


  • public interface ActionListInitializer
    Interface for the ActionBeanInfo.ATTRIBUTE_ACTION_LIST_INITIALIZER value of a bean descriptor. With an action list initializer you can modify actions after they are instantiated in an action list.

    This is useful if you have default property values that should be different if the action is instantiated in an action list. This initializer is run after the BeanInitializer.

    • Method Detail

      • initializeAction

        void initializeAction​(Action action,
                              java.util.List<java.lang.String> actionKeys)
        Called after the unconfigured action is instantiated the first time at design-time. For existing action instances that are loaded from a project, this method is not called after instantiation.
        Parameters:
        action - the action that should be initialized
        actionKeys - the action keys configured for the ActionList property by calling ActionListPropertyDescriptor.setActionKeys(String[])