Package br.gov.frameworkdemoiselle.vaadin.template

Examples of br.gov.frameworkdemoiselle.vaadin.template.BaseVaadinView


  @SuppressWarnings("rawtypes")
  private void processNavigables() {
    for (Bean<?> bean : beanManager.getBeans(AbstractPresenter.class)) {
      AbstractPresenter<?> presenter = (AbstractPresenter) beanManager.getReference(bean, bean.getBeanClass(),
          beanManager.createCreationalContext(bean));
      BaseVaadinView view = presenter.getView();
      Field[] fields = Reflections.getNonStaticDeclaredFields(view.getClass());
      for (Field field : fields) {
        if (field.isAnnotationPresent(Navigable.class)) {
          try {
            boolean accessible = field.isAccessible();
            field.setAccessible(true);
View Full Code Here


  private void navigate(final ComponentContainer layout, final BaseVaadinView view) {
    if (layout instanceof TabSheet) {
      navigate(view.getCaption(), (TabSheet) layout, view);
      return;
    }
    BaseVaadinView actual = stack.isEmpty() ? null : stack.pop();
    if (actual != null) {
      stack.push(actual);
      if (actual.getWarningMessage() != null) {

        ConfirmDialog.show(actual.getWindow(), bundle.getString("navigator.title"), actual.getWarningMessage(),
            bundle.getString("navigator.confirm.yes"), bundle.getString("navigator.confirm.no"),
            new ConfirmDialog.Listener() {

              public void onClose(ConfirmDialog dialog) {
                if (dialog.isConfirmed()) {
View Full Code Here

  /**
   * Navigate to previous view.
   */
  public void pop() {
    BaseVaadinView view = stack.isEmpty() ? null : stack.pop();
    if (view != null) {
      navigate(view);
    }
  }
View Full Code Here

TOP

Related Classes of br.gov.frameworkdemoiselle.vaadin.template.BaseVaadinView

Copyright © 2018 www.massapicom. 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.