From: Keith D. <kd...@cs...> - 2004-05-04 15:53:13
|
=20 -----Original Message----- From: Keith Donald [mailto:kd...@cs...]=20 Sent: Tuesday, May 04, 2004 11:51 AM To: 'Sam Dalton' Subject: RE: Spring-rcp visual action is the "presentation" of the action. =20 you register a action handler with the visual action, which encapsulates = the work that should be done when the action is clicked (typically via a button.) =20 by default, if a visual action has no handler, it is disabled. if it has = a hooked up handler, it is always enabled. =20 if you need context sensitive actions, you'll need to use a dynamic = action handler. visual actions will automatically subscribe to dynamic = handlers for notifications (property changes) about when their enabled/disabled = state changes. =20 So for example, take a global delete action. =20 the visual side of it (generic instance of visual action) is placed in = the edit menu, and on the tool bar, and possibly even a drop down menu. different handlers may register with this global action (you can use the action registry to do that, and the Application class is implements it) = -> and if they're dynamic handlers (which makes sense for delete), they can notify the visual representation when it should enable/disable itself. =20 This design is largely based on how eclipse does it. I think it's = pretty good. =20 =20 -----Original Message----- From: Sam Dalton [mailto:Sam...@ev...]=20 Sent: Tuesday, May 04, 2004 11:41 AM To: 'Keith Donald' Subject: RE: Spring-rcp Aha, I see, looks good. So how do my actions communicate their results = back in terms of field changes/bringing up a new window etc? I see the = BeanBinder class, and presume that it is possible to bind a javabean to a form, but = I cant see exactly how this is done.. I am probably being stupid and = missing something, but any help would be great. Sam =20 -----Original Message----- From: Keith Donald [mailto:kd...@cs...]=20 Sent: Tuesday, May 04, 2004 4:33 PM To: 'Sam Dalton' Subject: RE: Spring-rcp =20 There are examples in the view-context.xml file. Action properties are pulled from the messageSource properties files, allowing for = localization of icon, name, description, etc. =20 See: org.springframework.rcp.action =20 Specifically take a look at: =20 VisualAction =20 ActionHandler =20 DynamicActionHandler =20 -----Original Message----- From: Sam Dalton [mailto:Sam...@ev...]=20 Sent: Tuesday, May 04, 2004 10:10 AM To: 'Keith Donald' Subject: RE: Spring-rcp Also one thing that is missing from that mail is details of the action framework..... do you have any information about how this works? S =20 =20 -----Original Message----- From: Keith Donald [mailto:kd...@cs...]=20 Sent: Tuesday, May 04, 2004 2:33 PM To: 'Sam Dalton' Subject: RE: Spring-rcp =20 Sam, =20 I've attached a message I sent to the users list recently, a kind of psudo-sample (the message should include some sample spring-rcp context files - if they didn't get attached also let me know)=20 =20 Improving samples and the documentation is one of my highest priorities---rcp won't be released until those both are up to par ... =20 Hope this helps - let me know what you think--Keith =20 -----Original Message----- From: Sam Dalton [mailto:Sam...@ev...]=20 Sent: Tuesday, May 04, 2004 9:24 AM To: 'kd...@cs...' Subject: Spring-rcp Keith, =20 =20 I am currently looking around for a decent Swing MVC framework, and the = work you have done on Spring-rcp looks just the ticket (especially since I already use spring elsewhere), but it is lacking documentation/samples = (that I can find anyway). Do you have such documentation or at least some good samples of using the framework? =20 I would be really grateful if you could help me/point me in the right direction. =20 Regards, =20 Sam Dalton =20 _______________________________________________ Evolution is the investment banking and venture capital industry's first choice for practical advice on strategy, business process and the application of advanced technology. =20 Sam Dalton Tel: +44 (0) 20 7898 0309 Evolution Fax: +44 (0) 20 7898 0459 Peninsular House 30-36 Monument Street Email: sam...@ev... London EC3R 8LJ URL: http://www.evolution.net United Kingdom _______________________________________________ =20 The information in this Internet e-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Evolution or any of its affiliates. If you are not the intended recipient please contact Evolution, London, +44 (0) 20 7664 6640 _______________________________________________ =20 |