Skip to main content

Where to put @Action methods?

3 replies [Last post]
dwaard
Offline
Joined: 2010-09-29
Points: 0

Hi,
this is my first post. Am I doing ok?
I have a question about the @Action annotation. In which class(es) can I define methods with @Action annotations? Im my project, I can only define these methods in the Application-subclass, but i want to spread them over multple classes that are responsible for handling the specific actions. I cannot find any documentation about this. Please help.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kleopatra
Offline
Joined: 2003-06-11
Points: 0

as Karl already suggested: look into the sources of swinglabs-demos they do most of the action <> button binding via @action - SAF and BSAF are not so different (if any, don't recall) when it comes to @Action handling.

Cheers
Jeanette

kschaefe
Offline
Joined: 2006-06-08
Points: 0

The best place to get help for this would be any of the Swing Application Framework spin-offs. The original SAF is unused and unsupported. In swinglabs-demos, we are using Better Swing Application Framework, but feel free to choose any of the offshoots.

Karl

dwaard
Offline
Joined: 2010-09-29
Points: 0

OK, i'll continue my search