Browsing projects by Tag(s)

Select a tag to browse associated projects and drill deeper into the tag cloud.

Showing page 1 of 1

ELM - EventListenerManageran actionscript3 class to manage your eventlisteners Overview:With ELM you can add EventListeners and specify a group name. Enjoy removing many EventListeners groupwise with just one line of code. Get a trace list which EventListeners an object already has. Enabling ... [More] , disabling EventListeners. etc. NEWS:March 3rd 2010: release ELM 1.0 RC3 fixed a bug with groups. change: ELM.show, ELM.showAll won't update the iterator October 29th 2009: added ELM Syntax Highlighting XML for Flash IDE to the downloads section (check the readme.txt file in the zip) August 28th 2009: release ELM v1.0 RC1 testing, bugfixes and minor changes no svn - download the zip Check the Wiki for more details June 28th 2009: release ELM v0.88 old ListenerManager 0.27 class has been rewritten to the new ELM class. Check the Wiki for more how-to-use details Please report any issues you may find with ELM. Goto tab Issues and leave a note. Michael [Less]

0
 
  0 reviews  |  0 users  |  7,211 lines of code  |  0 current contributors  |  Analyzed 3 days ago
 
 

ListenerManager is a Class to keep track of your EventListeners.

0
 
  0 reviews  |  0 users  |  0 current contributors
 
 

Implements: - class inheritance, - event dispatcher - listener model

0
 
  0 reviews  |  0 users  |  0 current contributors  |  Analyzed about 12 hours ago
 
 
Compare

What is BBMSBBMS(Bus Based Message Service) is a Messaging System written by java. BBMS applications can send messages to and receive messages from any other clients asynchronous. BBMS provides easy to use APIs and high performance and flexibility. It's like the JMS(Java Message Service) but ... [More] not support pub/sub model by now. Only P2P support, but later may implements the priority message and pub/sub model. FeaturesEasy to use APIs public static void main(String[] args) throws RemoteException{ /* * create a notifiable entry, declare that it's care of * TIMEOUT, CLOSE, and READY event. */ Configuration config = new RMIServerConfiguration(null, 0); CommonNotifiableEntry entry1 = new CommonNotifiableEntry(config, "client1", MessageTypes.MESSAGE_TIMEOUT | MessageTypes.MESSAGE_CLOSE | MessageTypes.MESSAGE_READY); /* * create another notifiable entry, declare that it's care of * OPEN, CLOSE, and TIMEOUT event. */ CommonNotifiableEntry entry2 = new CommonNotifiableEntry(config, "client2", MessageTypes.MESSAGE_OPEN | MessageTypes.MESSAGE_CLOSE | MessageTypes.MESSAGE_TIMEOUT); // register them to the remote Message BUS to listener events entry1.register(); entry2.register(); // new a message, of type MESSAGE_OPEN. Message msg = new CommonMessage( entry1.getId(), entry2.getId(), MessageTypes.MESSAGE_OPEN, "busying now"); // deliver it to entry2, which is from entry1 entry1.post(msg); // create a message, of type MESSAGE_CLICKED, the entry2 // does not handle this type, it'll not be deliver to entry2 Message msgCannotBeReceived = new CommonMessage( entry1.getId(), entry2.getId(), MessageTypes.MESSAGE_CLICKED, "cliked evnet"); entry1.post(msgCannotBeReceived); try { Thread.sleep(2000); } catch (InterruptedException e) { e.printStackTrace(); } // re use the message object to send another message entry msg.setSource(entry2.getId()); msg.setTarget(entry1.getId()); msg.setType(MessageTypes.MESSAGE_READY); msg.setBody("okay now"); entry2.post(msg); // unregister self when all works are done or // don't want to listen any more entry1.unregister(); entry2.unregister(); }Where to use itEvent & listener framework(or command pattern) provides asynchronous ablity for enterprise application. Messages in BBMS are asynchronous requests, reports or events that are consumed by applications. BBMS application is one or more BBMS clients exchange messages. So, you can use it whenever you want you application support the asynchronous events functions. Most GUI application need asynchronous event to support. Such as the UI need to be updated when you click a button or something the like. BBMS is lightweight Event & Listener framework for this, anyway, you can extend it to be a powerful message system just like the JMS(Java Message Service) if you like. Structure The frameworkGenerally speaking, each client can send messages to, and receive messages from any client, end point can set that what kind of message it cares about easily. Each connects to BBMS which provides facilities for creating, sending and receiving messages. More detailsPlease refer the wiki pages for more details. [Less]

0
 
  0 reviews  |  0 users  |  387 lines of code  |  0 current contributors  |  Analyzed 6 days ago
 
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.