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

  • Home
  • SEARCH
  • 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 7180587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:22:48+00:00 2026-05-28T17:22:48+00:00

In a simple inventory management app i have an activity to handle assigning equipment

  • 0

In a simple inventory management app i have an activity to handle assigning equipment types to employees (if a user checks something out). What i am wondering is this:

Currently i have drag and drop up to where equipment can be dragged over to an employee. What i want to have is, as soon as the equipment is dragged, a popup opens asking the user for confirmation as well as the amount he wishes to assign. This will basically act as an Editor around two entities (equipmentCheckin and equipmentCheckout).

Here’s the issues i’m running into:
1. should the popup be initialized in the view and then set visible on the drop event (this is what i planned on doing) – in doing this how do you actually initialize the editor properly (should there be a separate activity called on the drop – i don’t imagine there would but the editor part is confusing me)

2. should each popup have its own class and ui.xml file – this is the way i was going to go originally and then just call the set visible to true on the drop event (i think this is the right way to go)

i guess what i’m asking here is mostly just validation on how to do some of this, i can’t find a decent example for this stuff.

for anybody that’s used google music before i want to do exactly what they’re doing when you go to edit album or song info – i imagine behind the scenes they’re using an editor with a popup – i just want to know what the correct way to actually do this is before i go hack up a solution

  • 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-28T17:22:49+00:00Added an answer on May 28, 2026 at 5:22 pm

    I think you are on the right track, making the popup self-contained, and keeping just a single instance of it if you can help it.

    As far as the editor details, what isn’t making sense? The general idea is that you can create the driver once, initialize it with the popup (implementing Editor), then call edit on the driver each time you are ready to display it with a new model.

    I usually end up with something like (assuming the class extends Popup, implements Editor, and has the driver defined internally)

    public MyPopup() {
      //uibinder or other layout
      this.driver = GWT.create(Driver.class);
      driver.initialize(this);
    }
    public void edit(MyModel model) {
      driver.edit(model);
      show();
    }
    

    To flavor this answer with my own approach/biases, I like a MVP setup where the view and presenter are both interfaces, and where the presenter impl doesn’t know how the view will end up drawing. Generally looks about like this for me

    public interface MyModelEditorView extends Editor<MyModel> {
      // this param is used in a mobile/table situation, where popups aren't as friendly
      void show(AcceptsOneWidget parent);
    
      // exposes the driver for the presenter * 
      SimpleBeanEditorDriver<MyModel, ?> getDriver();
    
      void setPresenter(Presenter presenter);
    
      public interface Presenter {
        // this is the only method that is called externally
        void show(AcceptsOneWidget parent, MyModel model);
    
        // called by click handlers in the view impl, probably by @UiHandler methods
        void onSaveClicked();
        void onCancelClicked();
      }
    }
    

    * Presenter probably should control the driver so it can check for errors, pass in errors from the server if needed, edit new models, and flush out the results.

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

Sidebar

Related Questions

I have a simple Store class that contains an Inventory object and a CashRegister
I making a simple inventory application. In a table i have columns Quantity, Price
I have a simple app that I am doing that will load a list
I have a simple business manager facade that should just persist some inventory information.
I'm currently making a simple inventory system application using Excel VBA. I have a
I have a simple application written that allows users to pick inventory items with
I am trying to make a jar of a simple inventory program using ant
Simple thing I'm doing is connecting to retrieving user's name from Facebook and passing
I have a very simple issue, and I'm not sure if it's a bug
I'm working on a simple text adventure for Android and have finished the navigational

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.