|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.jaxx.action.AbstractActionConfigurationResolver<A,C>
A - type of annotationC - type of componentpublic abstract class AbstractActionConfigurationResolver<A extends Annotation,C extends JComponent>
Common abstract class of a resolver of action configuration.
The class implements the logic of research of the configuration annotation.
| Field Summary | |
|---|---|
protected Class<A> |
annotationImpl
the type of configuration's annotation |
protected Class<C> |
componentImpl
the type of component that can fire an action |
| Constructor Summary | |
|---|---|
protected |
AbstractActionConfigurationResolver(Class<A> annotationImpl,
Class<C> componentImpl)
|
| Method Summary | |
|---|---|
A |
applyConfiguration(JComponent component,
MyAbstractAction action)
|
protected abstract A |
applyConfiguration0(C component,
MyAbstractAction action)
The typed method (on component) to apply configuration on the action and component. |
Class<A> |
getAnnotationImpl()
|
Class<C> |
getComponentImpl()
|
A |
resolveConfiguration(MyAbstractAction action)
Search the annotation that configure the given action (or the boxed action). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Class<A extends Annotation> annotationImpl
protected final Class<C extends JComponent> componentImpl
| Constructor Detail |
|---|
protected AbstractActionConfigurationResolver(Class<A> annotationImpl,
Class<C> componentImpl)
| Method Detail |
|---|
protected abstract A applyConfiguration0(C component,
MyAbstractAction action)
component - the component which fires the actionaction - the given action
public A resolveConfiguration(MyAbstractAction action)
ActionConfigurationResolver
resolveConfiguration in interface ActionConfigurationResolver<A extends Annotation,C extends JComponent>action - current action
public A applyConfiguration(JComponent component,
MyAbstractAction action)
applyConfiguration in interface ActionConfigurationResolver<A extends Annotation,C extends JComponent>component - widget that requires the actionaction - given action
public Class<A> getAnnotationImpl()
getAnnotationImpl in interface ActionConfigurationResolver<A extends Annotation,C extends JComponent>public Class<C> getComponentImpl()
getComponentImpl in interface ActionConfigurationResolver<A extends Annotation,C extends JComponent>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||