Examples of OpenEvent


Examples of com.xuggle.mediatool.event.OpenEvent

        true, false) < 0)
      throw new IllegalArgumentException("could not open: " + getUrl());

    // inform listeners

    super.onOpen(new OpenEvent(this));
   
    // note that we should close the container opened here

    setShouldCloseContainer(true);
  }
View Full Code Here

Examples of com.xuggle.mediatool.event.OpenEvent

        mStreamsCanBeAddedDynamically, mQueryStreamMetaData) < 0)
      throw new RuntimeException("could not open: " + getUrl());

    // inform listeners

    super.onOpen(new OpenEvent(this));
    // note that we should close the container opened here

    setShouldCloseContainer(true);
  }
View Full Code Here

Examples of com.xuggle.mediatool.event.OpenEvent

        mStreamsCanBeAddedDynamically, mQueryStreamMetaData) < 0)
      throw new RuntimeException("could not open: " + getUrl());

    // inform listeners

    super.onOpen(new OpenEvent(this));
    // note that we should close the container opened here

    setShouldCloseContainer(true);
  }
View Full Code Here

Examples of com.xuggle.mediatool.event.OpenEvent

        true, false) < 0)
      throw new IllegalArgumentException("could not open: " + getUrl());

    // inform listeners

    super.onOpen(new OpenEvent(this));
   
    // note that we should close the container opened here

    setShouldCloseContainer(true);
  }
View Full Code Here

Examples of honeycrm.client.mvp.events.OpenEvent

        if (null != action) {
          switch (action) {
          case DETAIL:
            final Dto dto = new Dto(module);
            dto.setId(NumberParser.convertToLong(tokens[2]));
            eventBus.fireEvent(new OpenEvent(dto));
          }
        }
      }

      @Override
View Full Code Here

Examples of honeycrm.client.mvp.events.OpenEvent

  private void bind() {
    view.setSelectionHandler(new SelectionHandler() {
      @Override
      public void onSelect(Dto dto) {
        eventBus.fireEvent(new OpenEvent(dto));       
      }
    });
   
    view.getDeleteButton().addClickHandler(new ClickHandler() {
      @Override
View Full Code Here

Examples of honeycrm.client.mvp.events.OpenEvent

    if (isUpdate) {
      updateService.update(dto, new AsyncCallback<Void>() {
        @Override
        public void onSuccess(Void result) {
          eventBus.fireEvent(new UpdateEvent(module));
          eventBus.fireEvent(new OpenEvent(dto));
        }

        @Override
        public void onFailure(Throwable caught) {

        }
      });
    } else {
      createService.create(dto, new AsyncCallback<Long>() {
        @Override
        public void onSuccess(Long result) {
          dto.setId(result);
          eventBus.fireEvent(new UpdateEvent(module));
          eventBus.fireEvent(new OpenEvent(dto));
        }

        @Override
        public void onFailure(Throwable caught) {
View Full Code Here

Examples of honeycrm.client.mvp.events.OpenEvent

abstract public class Selector {
  public Selector(final SimpleEventBus eventBus, final HasSelectionHandler hasSelectionHandler) {
    hasSelectionHandler.setSelectionHandler(new SelectionHandler() {
      @Override
      public void onSelect(Dto dto) {
        eventBus.fireEvent(new OpenEvent(dto));
      }
    });
  }
View Full Code Here

Examples of honeycrm.client.mvp.events.OpenEvent

    replay(view);
    presenter = new DetailPresenter(eventBus, module, readService, updateService, createService, view);
   
    final Dto d = new Dto("Contact");
    d.setId(23L);
    eventBus.fireEvent(new OpenEvent(d));
  }
View Full Code Here

Examples of honeycrm.client.mvp.events.OpenEvent

  }
 
  public void testOpenEvent() {
    for (final ModuleDto moduleDto: NewDtoWizard.getConfiguration().getModuleDtos().values()) {
      presenter = new ModuleButtonBarPresenter(view, eventBus, moduleDto.getModule());
      eventBus.fireEvent(new OpenEvent(moduleDto.createDto()));
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.