Questions tagged [presentation-model]
40 questions
1
vote
1 answer
Clojure defrecord and private fields
I frequently implement my Java swing GUIs using Martin Fowler's Presentation Model pattern.
Here is an example:
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import…

Ralph
- 31,584
- 38
- 145
- 282
1
vote
2 answers
Adding elements in Flex using the presentation model
I'm refactoring some Flex code written by another developer and I'm implementing a PresentationModel approach, as I like to separate out the ActionScript from the MXML. One of the problems I've found is that the original ActionScript code…

StephenAdams
- 521
- 2
- 9
- 26
1
vote
1 answer
Loading presentation models directly from database
I'm working on a 2-tier application where WinForms client makes direct calls to the database. In one of the scenarios I need to display a list of Customer entities to a user. The problem is that Customer entity contains a lot of properties (some…

Dev
- 367
- 1
- 10
1
vote
1 answer
Data binding: presentation model and view, 3rd party libs in Android
I'm quickly realizing this is going to be an issue in Android with a lot of boilerplate and as I started refactoring my code I'm now effectively writing my own half-@ssed version of data binding. I don't want to spend more time generalizing it and…

Creos
- 2,445
- 3
- 27
- 45
1
vote
4 answers
What are the benefits of an XML data model over the DataSet model?
At my current job we have a CMS system that is .NET/SQL Server based. While customizing a couple of the modules for some internal use, I was a little surprised to see that instead of having APIs that returned data via your typical result set that…

Dillie-O
- 29,277
- 14
- 101
- 140
1
vote
1 answer
Flex presentation model: should state be held in the view?
I have two instances of a view which are V1a and V1b. As they are instances of the same type they both use the same instance of the presentation model (PM1) as it is injected into each instance as a singleton. Each view shows different state (S1a…

Doahh
- 590
- 1
- 8
- 20
1
vote
1 answer
Architecture for driving complex Use Cases
I'm about to design a software to be implemented by several developers.
The software has many complex use cases involving several steps and commands from the UI.
I want to have a clear separation from the UI and the Bussiness logic, so, the…

user1275011
- 1,552
- 1
- 16
- 36
1
vote
1 answer
Is it possible to use the Presentation Model Pattern for a GEF-based RCP app with an EMF domain model?
I'm working on an eclipse RCP application, using a third-party domain model based on EMF, and a GEF editor for editing.
GEF uses the MVC pattern, which would be fair enough if I didn't have to use a specific layout for drawing the model graph on the…

s.d
- 4,017
- 5
- 35
- 65
0
votes
2 answers
Handling client-side domain object state in a presentation model
I'm currently building the client side of a Flex/PHP project using the Presentation Model pattern.
What I'm trying to achieve:
I currently have a view displaying non-editable information about a domain object called Node. Depending on if the Node is…

Stiggler
- 2,800
- 20
- 21
0
votes
1 answer
How to generically map a domain model to a presentation model?
I am trying to figure out how to generically map a domain model to a presentation model. For example, given the following simple objects and interfaces ...
// Product
public class Product : IProduct
{
public int ProductID { get; set; }
…

campbelt
- 1,573
- 5
- 27
- 43
0
votes
2 answers
Flex data binding with View-Model pattern
I'm trying to move toward using the View/Model/View-Model or Presentation Model pattern in a Flex application since it definitely feels like the "correct" way to do things. I have a question about how something should work with Flex data binding…

takteek
- 7,020
- 2
- 39
- 70
0
votes
1 answer
WCF RIA Capping out at 4096 Records
Just wanted to know if anyone has run into this problem or knows why this is happening.
I am doing a really simple mvvm test application. Everything works.
The only problem is that I have a DB with 4588 records and when i try to pull them all, my…

FlackAttack
- 5
- 1
0
votes
1 answer
JavaFX: Bindings with presentation model
My JavaFX application should look like this:
Now I want to make sure that the detail view adapts as soon as I select another person from the table view.
My classes so far:
public class Person {
private final StringProperty name = new…

Nibor
- 679
- 1
- 8
- 18
0
votes
2 answers
callback to model object
I am trying to figure out how to define a callback to my model object, via the Mate Frameworks LocalEventMap.
…

reidLinden
- 4,020
- 4
- 31
- 46
0
votes
1 answer
JavaFX - question regarding binding button's disabled state
I'm trying to create a dummy application that maintains a list of tasks.
For now, all I'm trying to do is add to the list. I enter a task name in a text box, click on the add task button, and expect the list to be updated with the new item and the…

jamiebarrow
- 2,473
- 3
- 30
- 51