|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AnnotationSupport
Used by GuiCommands.bindAnnotatedCommands(CommandContainer, Object) and associated
methods to automatically create commands from methods annotated with either
@ActionCommand
or @SwingWorkerCommand.
Custom implementations can be installed using Defaults.setAnnotationSupport(AnnotationSupport).
The default implementation is DefaultAnnotationSupport.
| Method Summary | |
|---|---|
void |
bindAnnotatedCommands(CommandContainer container,
java.lang.Object target)
Scans the specified target for annotated methods and binds the newly created commands to the specified container. |
void |
bindAnnotatedCommands(java.awt.Component component,
java.lang.Object target)
Scans the specified target for annotated methods and binds the newly created commands to the specified container. |
| Method Detail |
|---|
void bindAnnotatedCommands(CommandContainer container,
java.lang.Object target)
container - the container to bind the commands to.target - the object to scan for annotated methods.
void bindAnnotatedCommands(java.awt.Component component,
java.lang.Object target)
component - the component to bind the commands to.target - the object to scan for annotated methods.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||