Lincoln Baxter III created FORGE-1981:
-----------------------------------------
Summary: Add a CommandListener interface/extension point (Name TBD)
Key: FORGE-1981
URL:
https://issues.jboss.org/browse/FORGE-1981
Project: Forge
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: UI - API
Affects Versions: 2.7.2.Final
Reporter: Lincoln Baxter III
Fix For: 2.x Future
{code}
Registration<CommandListener> registration =
CommandFactory.addCommandListener(myListener);
{code}
{code}
I was thinking of introducing a "onLeaving()" method
2:31 or something like that
lincolnthree
2:31 gastaldi: yeah… onNext()
2:32 onNextRequested()
gastaldi
2:32 hmmm
lincolnthree
2:32 onFinishRequested()
gastaldi
2:32 yeah
2:32 balunasj|mtg [~balunasj(a)pool-108-12-26-94.syrcny.fios.verizon.net] entered the room.
gastaldi
2:33 maybe in the UICommand interface
2:33 or create another interface for that, not sure
lincolnthree
2:36 gastaldi: i think another interface could work
2:36 gastaldi: actuallllyyyyy
2:36 gastaldi: UIEventListener
gastaldi
lincolnthree
2:36 gastaldi: commands that implement this interface could automatically be registered as
listeners for the duration of their execution!
2:37 gastaldi: but you could also register global ones on the factory
lincolnthree
2:37 Registration<CommandListener> registration =
CommandFactory.addCommandListener(myListener);
2:38 the CommandController could simply do that for commands that implement the interface,
then automatically remove the listener when the command is aborted/finished
2:38 CommandController could implement it and delegate to the command
2:39 because the UI provider implementation knows when to proceed to the next page
2:40 well, I think CommandController should work too
lincolnthree
2:40 I think CommandController would work
{code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)