Questions tagged [presenter]

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.

143 questions
0
votes
1 answer

Add border to selected card in Android TV

I have developed a tv application using leanback library and I want to add a white border to the selected item along with zoom out effect, zoom is happening but there is no method to add border. I have searched a lot but could not found any possible…
Andrain
  • 872
  • 1
  • 16
  • 43
0
votes
0 answers

Template Path issue in Presenter (ActionView::Template::Error (Missing partial...)

I moved my render_listable helper into a presenter and now my render path is wrong, as the render method can not see the template. How do I fix the path to the template path? Error ActionView::Template::Error (Missing partial search/_listing_car…
user2012677
  • 5,465
  • 6
  • 51
  • 113
0
votes
0 answers

How to call parent presenter in user control presenter MVP pattern

I am using MVP pattern to develop a Windows Form using c#. I have a presenter MainPresenter which has reference of InfoPresenter so MainPresenter can access InfoPresenter's methods. Now I want to access MainPresenter's methods in InfoPresenter. If I…
Twix
  • 392
  • 1
  • 12
  • 38
0
votes
2 answers

How to handle a custom ArrayAdapter in an Android MVP project?

I have an Android MVP project. I want to keep out any Android references out of the presenter. This way, I can keep UI separated in the Activity/View. There is a ListView in the Activity which uses a custom ArrayList in the adapter (MyAdapter). This…
xlog
  • 103
  • 13
0
votes
1 answer

Decorator/Presenter/Exhibits and helpers

I have read: Concerns, Decorators, Presenters, Service Objects, Helpers, Help me Decide and trying to figure out the difference between presenters, view objects, decorators, exhibits, and helpers. I have multiple active record models that I need to…
user2012677
  • 5,465
  • 6
  • 51
  • 113
0
votes
2 answers

Can the Presenter of Web Client Software Factory(WCSF) and Smart Client Software Factory(SCSF) shared and how?

Web Client Software Factory(WCSF) and Smart Client Software Factory(SCSF) both use MVP pattern. M-Model can be shared. V-View has to be different as both are on different platform(Desktop/Web). I want to know can the P-Presenter can be shared or…
Sachin Chavan
  • 5,578
  • 5
  • 49
  • 75
0
votes
1 answer

Is there any automated tool available to check if all my Presenter classes have Test classes?

I am looking for any automated tool which can give me a summary of which Presenter classes in my MVP doesn't have a Test classes along with it. Like I wrote some business logic in my Presenter class but I forgot to write test cases for this class,…
Hisham Muneer
  • 8,558
  • 10
  • 54
  • 79
0
votes
1 answer

presenting resources in API

im preparing Rails 5 API and i have some GET endpoints which do nothing but presenting resources to enduser. how can i limit what the user can see. Lets say i have a table Books, with title and author columns, i want the enduser to get his book…
Leo
  • 2,061
  • 4
  • 30
  • 58
0
votes
1 answer

Resources/App Context in Presenter (MVP architecture)

I need to sort the list using Comparator which depends on Resources. The list (data) is loaded from the repository (Model layer). How can I do this if a Presenter should not have access to Context? Should I inject already created Comparator? new…
AppiDevo
  • 3,195
  • 3
  • 33
  • 51
0
votes
2 answers

iOS - Unit Testing asynchronous private function in Presenter of MVP

Hello I'm trying to unit testing a private function which located in Presenter This is my Presenter Codes and I'm using Networking Singleton Object APIService class MyPresenter { weak var vc: MyProtocol? func attachView(vc: MyProtocol?) { …
PrepareFor
  • 2,448
  • 6
  • 22
  • 36
0
votes
1 answer

Android: Application crashes because of presenter error?

I'm try to develop an android app in Kotlin. I'm using an MVP design pattern. Unfortunately, the application crashes due to an error in the presenter. Below the screenshot of the logcat and you can check my code at Github. Could anyone please help…
0
votes
0 answers

Adding a Second Presenter to the ArrayObjectAdapter Instance

I am using my custom fragment instead of the RowsFragment in my Android TV app which implements the leanback library. The custom fragment consists of two equally sized horizontal LinearLayouts (upper and lower halves of the screen) in a FrameLayout.…
burakk
  • 1,231
  • 2
  • 22
  • 45
0
votes
0 answers

Is it possible to pass value from controller to presenter in Fuelphp?

I have controller and presenter and I want to pass directly pass value from controller to presenter, not in the view. Is it possible to do that?
Leo S
  • 375
  • 5
  • 12
0
votes
1 answer

Use multiple presenters for the same Activity

I'm trying to use MVP in my new project. I have a Single Activity and multiple presenters that can be associated with it. Presenter1 - Load Activity Data Presenter2 - Load User data - that can be used in multiple Activities (So this presenter will…
Bhavna
  • 836
  • 2
  • 6
  • 19
0
votes
1 answer

How to do a right unit test for the Presenter in MVP

I'm using the MVP pattern. And faced with a problem of covering the Presenter with unit testing. Behavior: View(Form) has two buttons on it - Ok and Apply. If Ok button is pressed then the Data must be validated and in a case of success the Data…
dream2work
  • 1,377
  • 2
  • 10
  • 18