In MVP pattern the presenter acts upon the model and the view. It retrieves data from repositories (the model), and formats it for display in the view.
Questions tagged [presenter]
143 questions
0
votes
0 answers
Is there a way to have more than one data type MVP - cardview & presenter
I need to make a single list row consisting of three items each from a different data types. The data types all have the same properties but I do NOT want to combine them in a single list.
I've tried having the models extend the same data type, but…

KoolKeith
- 45
- 4
0
votes
1 answer
How to pass a SwiftUI View into a class as a property? (AlertPresenter)
I am trying to create an alert presenter to control alerts using SwiftUI.
The goal is to use a simple top level function to present an alert.
The following is my code:
First, create an AlertPresenter which has a present and dismiss alert…

Harry CHOI
- 13
- 1
0
votes
0 answers
Android MVP variable getter inside Presenter
I have a special case in my project that relies on MVP pattern.
The use case is that when clicking a button an contact email should be sent.
The email is created dynamically, a combination from some input fields and some data from repository and…

Ionut Negru
- 6,186
- 4
- 48
- 78
0
votes
0 answers
Add a list of presenters to the teams meeting
We are a team of around 20 people and we take turns to host the meeting, share our screen to run through the tracker everyday. We have configured the tracker to show who the presenter is for the day, but unless somebody opens the tracker, we do not…

Madhav N
- 1
- 3
0
votes
0 answers
How to observe activity presenter variables from fragment presenter?
I am creating a weather application, the structure of which is as follows:
a single activity (host) and two fragments.
I need to implement it with the MVP architecture and using RxJava. When the app starts, the coordinates are calculated using GPS…

yaromchikV
- 79
- 10
0
votes
1 answer
Datagridview and MVP layer in C# winform
I'm trying to link Data from Database to the Datagridview. There are some problem occurred when I apply MVP to my project. Please help me to solve out this problem. I already divided into 3 folders (Model, View, Presenter). It will look like…

Chen Triều
- 79
- 2
- 6
0
votes
1 answer
Javascript, Ajax, latte and Presenter problem. Can't use GET request on file in another directory
I have a question. I was tasked to add some function to our web application. It is build on php presenter by somebody else so it's quite difficult for me to debug as I never work with this stuff.
I am trying to add that feature without creating…

DatZiggyZig
- 3
- 3
0
votes
1 answer
Android MVP presenter unit test with Mockito causes "Wanted but not invoked" error
I know it was asked before, but i am currently diving into testing and i have the struggle to unit test presenter in MVP pattern with Mockito
My code setup:
Item class
public class ItemJSON {
@SerializedName("title")
String textHolder;
…

AShX
- 358
- 3
- 14
0
votes
0 answers
MvvmCross navigation from Xamarin Forms TabbedPage to a Native view while preserving history/backstack
I am hoping to do something like the image above, using MvvmCross, Xamarin Forms and Native Views. The image is for demonstration purpose, the actual UIs are more complicated. I have looked into the MvvmCross Playground project, as well as the…

Ming
- 141
- 9
0
votes
1 answer
Presenter is not called in onClick
When trying to inflate and set my presenter to my databinding component in this way my presenter methods are not called.
val fragmentBinding = FragmentListEditBinding.inflate(layoutInflater)
fragmentBinding.presenter = ListEditorPresenter(this,…

TheYaINN
- 114
- 10
0
votes
1 answer
What are some patterns for creating views and controllers in an MVC or MVP app?
I'm working on a MVC/MVP GUI for editing a document. The document has a tree structure, with some nodes representing text, others images. The app model also includes a command stack, with commands operating directly on the model.
Since different…

Michael Brewer-Davis
- 14,018
- 5
- 37
- 49
0
votes
1 answer
use ActiveSupport ``delegate to:'' to DRY presenters instance methods
I'm discovering the presenter (or decorator) pattern thanks to Ryan Bates' tutorial and implementing it in a training project.
I'm wondering if there's any way to use ActiveSupport delegate methods between custom objects ?
After refactoring my first…

Sumak
- 927
- 7
- 21
0
votes
2 answers
How to remove logic from rails view when every case have diferent styleing
My problem is that i have logic in my view but every case have different styleing. It`s not problem to move logic to .ex presenter but how to deal with styleing
- trumps.each do |trump|
%tr
%td
- if trump.isgreate
.some_style
…

Łukasz.D
- 21
- 2
0
votes
1 answer
Using index with Presenter causes NoMethodError
I tried to learn about presenter and did the following classes
User model with id, first_name, last_name, email
user_controller with the following methods
def index
@users = User.all
render_user_json @users
end
def show
@user =…

Noam Mansur
- 352
- 1
- 2
- 10
0
votes
1 answer
disable video rendering in presenter view
The first time I'm working with video sequences within Powerpoint.
I am a bit annoyed regarding the simultaneous video rendering in both the presenter view and the main view, because the rendering may exhibit little jitter resp. time lag.
Curiously,…

Rob
- 173
- 1
- 2
- 12