org.nuiton.jaxx.action
Interface ActionConfigurationResolver<A extends Annotation,C extends JComponent>
- Type Parameters:
A - type of annotation for configC - type of component
- All Known Implementing Classes:
- AbstractActionConfigurationResolver, ActionConfigConfigurationResolver, SelectActionConfigConfigurationResolver, ToggleActionConfigConfigurationResolver
public interface ActionConfigurationResolver<A extends Annotation,C extends JComponent>
The contract to be realized to resolve an MyAbstractAction configuration.
Configuration is done by a Annotation of type A placed on the action class.
If the instanciated action box the real action, we should always search on the boxed action.
Moreover, a action can only be fired by a certain type of component (for example a Button or a ComboBox), the class
of the component type is given by the C class.
- Author:
- chemit
resolveConfiguration
A resolveConfiguration(MyAbstractAction action)
- Search the annotation that configure the given action (or the boxed action).
- Parameters:
action - current action
- Returns:
- the configuration of the action
applyConfiguration
A applyConfiguration(JComponent component,
MyAbstractAction action)
- Parameters:
component - widget that requires the actionaction - given action
- Returns:
- the configuration of the action
getAnnotationImpl
Class<A> getAnnotationImpl()
- Returns:
- the configuration annotation dealed by this resolver
getComponentImpl
Class<C> getComponentImpl()
- Returns:
- the class of the component which can fired the action
Copyright © 2008-2010 CodeLutin. All Rights Reserved.