|
||||||||||
| 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 java.lang.annotation.Annotation,C extends javax.swing.JComponent>
Common abstract class of a resolver of action configuration.
The class implements the logic of research of the configuration annotation.
| Field Summary | |
|---|---|
protected java.lang.Class<A> |
annotationImpl
the type of configuration's annotation |
protected java.lang.Class<C> |
componentImpl
the type of component that can fire an action |
| Constructor Summary | |
|---|---|
protected |
AbstractActionConfigurationResolver(java.lang.Class<A> annotationImpl,
java.lang.Class<C> componentImpl)
|
| Method Summary | |
|---|---|
A |
applyConfiguration(javax.swing.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. |
java.lang.Class<A> |
getAnnotationImpl()
|
java.lang.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 java.lang.Class<A extends java.lang.annotation.Annotation> annotationImpl
protected final java.lang.Class<C extends javax.swing.JComponent> componentImpl
| Constructor Detail |
|---|
protected AbstractActionConfigurationResolver(java.lang.Class<A> annotationImpl,
java.lang.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 java.lang.annotation.Annotation,C extends javax.swing.JComponent>action - current action
public A applyConfiguration(javax.swing.JComponent component,
MyAbstractAction action)
applyConfiguration in interface ActionConfigurationResolver<A extends java.lang.annotation.Annotation,C extends javax.swing.JComponent>component - widget that requires the actionaction - given action
public java.lang.Class<A> getAnnotationImpl()
getAnnotationImpl in interface ActionConfigurationResolver<A extends java.lang.annotation.Annotation,C extends javax.swing.JComponent>public java.lang.Class<C> getComponentImpl()
getComponentImpl in interface ActionConfigurationResolver<A extends java.lang.annotation.Annotation,C extends javax.swing.JComponent>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||