Re: Auto selection
- From: "tailorma_de" <tailormade@xxxxxxx>
- Date: 27 Nov 2006 01:44:35 -0800
Answer: it allows the problem to solution to communicate with the
software user through a particular UI paradigm (e.g., GUI, browser,
command line, smoke signals, etc.).
lol
I have implemented the telepathic interface. Just close your eyes and
relax...
If the interface is message-based, one gets a lot of decoupling because
each side can map the message and its data packet to its own view of the
You say 'message-based'. Does this really mean to solely communicate
with (Integer-)IDs? No other parameters? There are no references passed
anymore? Sorry for getting non-abstract. But I cannot imagine how this
should be realized in code. And would this also mean that the business
model has to manage state things?
Consider my example scenario within my other started thread
http://groups.google.at/group/comp.object/browse_frm/thread/ec3ab177baad669a/#
: The command CloseProject. When it gets triggered e.g. by a menu entry
then it could be that some files should be saved. That requires user
interaction. A dialog would get visisble where the user chooses which
file to save before the project get closed. Would a click on okay send
one single ID to the BM which interprets this as a 'Save those files
that were recently marked as must-be-saved in the save-files-dialog?
Would this mean that selection becomes part of the BM? I guess not,
right?
Are there other, alternative interface communication models, beside the
message-based one?
In my (semi-prof.) application I have realized the command pattern that
way so the UI can instantiate command object and add them to the
executing unit (invoker). So it is part of the business model API.
Those command objects are parameterized with some references of
business model objects which are kept in UI objects, e.g. with a tag
property of a tree node. The command SaveProject would be started this
way:
ExecUnit.Execute(new SaveProject(p)) where p is reference to a BM
project object.
Is this a common design? A common communication model? It is something
different to the your stated messages, right? Btw BM changes get
forwared to the UI by events. Would you also forward changes with
messages?
Is there an coded example application in the web where it gets
demonstrated how the command pattern and the interface between the user
interface and the business layer work together? Do you know a link? I'm
not sure if I understand all what you have posted. I think I have to
investigate a bit more on my own.
.
- Follow-Ups:
- Re: Auto selection
- From: H. S. Lahman
- Re: Auto selection
- References:
- Auto selection
- From: tailorma_de
- Re: Auto selection
- From: H. S. Lahman
- Auto selection
- Prev by Date: Delta
- Next by Date: Re: Delta
- Previous by thread: Re: Auto selection
- Next by thread: Re: Auto selection
- Index(es):
Relevant Pages
|