Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6085297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:37:24+00:00 2026-05-23T11:37:24+00:00

How to throw a View event, such click on a button, in view’s activity?

  • 0

How to throw a View event, such click on a button, in view’s activity? View doesn’t know activity eventBus..
I miss something? I’m using 2.3 sdk

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:37:25+00:00Added an answer on May 23, 2026 at 11:37 am

    I think the best option is to keep a reference to the Activity in the view and then forward the event to the Activity, which can then use the EventBus in it’s own method.

    There is a small example on this page:
    http://code.google.com/intl/sv-SE/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html

    But basically, I usually use @UiHandler to handle the ClickEvent, and then invoke a method in the Activity. In the Activity I then perform the action that uses the EventBus, RPC, or so. I know some people prefer handling the event directly in the Activity but to me this seems like a nicer separation of concern and keeps the View nicely “stupid”.

    An example:

    Button says something like “Select active customer”

    View handles ClickEvent for the button, invokes presenter.customerSelected(…)

    Activity has customerSelected method and creates a ActiveCustomerSelectedEvent, which is sends on the EventBus.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how populate ComboBox and DataGridView using MVP (Model-View-Presenter). Actually i have something like this:
Is it possible to throw an exception in a JSP without using scriptlet code?
I would like to throw an exception when my C++ methods encounter something weird
My Scenario: I'm using a Silverlight MVVM pattern. All my view models inherit from
I'm using the System.Windows.Forms.WebBrowser , to make a view a-la Visual Studio Start Page.
I'm currently using an Open Session in View pattern in an ASP.NET WebForms application
I am using facebook-ios-sdk in my iphone application. I am using its code, delegate
I'm trying to animate view changes when I click on tabs in my android
I'm building a mobile AIR app using Flash Builder 4.5. The initial view in
Using Rebol/View 2.7.7, I'm trying to create a card game based on Nick's Rebol

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.