1

231 Words
Activators can be bound to arbitrary events including, of course, PropertyChangeEvents. There are two predefined target actions, PropertySyncAction and DelegateMethodAction. The first is used to synchronize component properties of any component with any other component using standard JavaBeans getter and setter methods. The second is used to invoke a delegate method in case the link is activated. For example, this can be used to invoke a specific method if a user presses a button on the gui. Getting startedSwlink is available under an open source license. Download a Swlink binary or source code distribution. In order to build Swlink from source, you need apache-ant available from the Apache Software Foundation. For using Swlink you need to incorporate Swlink and its dependencies into your classpath. Currently this will include the following jar files swlink.jarcommons-beanutils-core.jarcommons-logging.jarFor running the Swlink examples and for performing unit tests you will need the additional libraries in the lib directory of the distribution. You can run the Swlink examples from the command line using the following java command. java -jar swlink.jar Or you can run it directly using Java. Note that you need to set the class path accordingly. java com.iternum.swlink.examples.Launcher This will open a window with a selection list that contains the various examples. Using SwlinkDocumentation for Swlink is available in this document and in the Swlink JavaDoc. Creating a DelegateA delegate is a method that is invoked on the target of a link if the link is activated.  
Free reading for new users
Scan code to download app
Facebookexpand_more
  • author-avatar
    Writer
  • chap_listContents
  • likeADD