PageRenderTime 105ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/src/main/java/org/nsesa/editor/gwt/amendment/client/event/amendment/AmendmentContainerSkippedEvent.java

https://bitbucket.org/pluppens/nsesa-editor
Java | 50 lines | 21 code | 8 blank | 21 comment | 0 complexity | 1f367bdc31fdd650bc3178586dc107c9 MD5 | raw file
  1. /**
  2. * Copyright 2013 European Parliament
  3. *
  4. * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by the European Commission - subsequent versions of the EUPL (the "Licence");
  5. * You may not use this work except in compliance with the Licence.
  6. * You may obtain a copy of the Licence at:
  7. *
  8. * http://joinup.ec.europa.eu/software/page/eupl
  9. *
  10. * Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the Licence for the specific language governing permissions and limitations under the Licence.
  13. */
  14. package org.nsesa.editor.gwt.amendment.client.event.amendment;
  15. import com.google.gwt.event.shared.GwtEvent;
  16. import org.nsesa.editor.gwt.amendment.client.ui.amendment.AmendmentController;
  17. /**
  18. * An event indicating that an amendment was not injected into a document controller (because its element could not
  19. * be found or provided, or because its language was not matching).
  20. * Date: 24/06/12 20:14
  21. *
  22. * @author <a href="mailto:philip.luppens@gmail.com">Philip Luppens</a>
  23. * @version $Id$
  24. */
  25. public class AmendmentContainerSkippedEvent extends GwtEvent<AmendmentContainerSkippedEventHandler> {
  26. public static final Type<AmendmentContainerSkippedEventHandler> TYPE = new Type<AmendmentContainerSkippedEventHandler>();
  27. private final AmendmentController amendmentController;
  28. public AmendmentContainerSkippedEvent(AmendmentController amendmentController) {
  29. this.amendmentController = amendmentController;
  30. }
  31. @Override
  32. public Type<AmendmentContainerSkippedEventHandler> getAssociatedType() {
  33. return TYPE;
  34. }
  35. @Override
  36. protected void dispatch(AmendmentContainerSkippedEventHandler handler) {
  37. handler.onEvent(this);
  38. }
  39. public AmendmentController getAmendmentController() {
  40. return amendmentController;
  41. }
  42. }