Examples of AbstractView


Examples of de.willuhn.jameica.gui.AbstractView

    {
      Logger.error("error while syncing konto",e);
      GUI.getStatusBar().setErrorText(i18n.tr("Fehler beim Synchronisieren des Kontos"));
    }
     
    final AbstractView currentView = GUI.getCurrentView();
     
    Application.getController().start(new BackgroundTask() {
     
      public void run(ProgressMonitor monitor) throws ApplicationException
      {
        monitor.setStatus(ProgressMonitor.STATUS_RUNNING);
        monitor.setStatusText(i18n.tr("Starte Synchronisierung"));
       
        QueryMessage msg = new QueryMessage("hibiscus.konto.sync",new Object[]{k,monitor});
        Application.getMessagingFactory().getMessagingQueue("jameica.scripting").sendSyncMessage(msg);

        // GUI neu laden
        AbstractView newView = GUI.getCurrentView();
        if (newView == currentView)
          currentView.reload();

        monitor.setPercentComplete(100);
        Object value = msg.getData();
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.base.AbstractView

                }
                viewer.clearAction();
            } else if (ke.getKeyCode() == KeyEvent.VK_F5) {
                draggedView = identifiedView;
            } else if (draggedView != null && ke.getKeyCode() == KeyEvent.VK_F6) {
                final ContentDrag content = new ContentDragImpl(draggedView, new Location(), new AbstractView(new NullContent()) {
                });
                if (identifiedView != null) {
                    identifiedView.drop(content);
                }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.base.AbstractView

        junit.textui.TestRunner.run(AbstractViewTest.class);
    }

    @Override
    protected void setUp() throws Exception {
        av = new AbstractView(new NullContent()) {
        };
        super.setUp();
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.base.AbstractView

    }

    public void testBoundsSetSizeAndLocation() throws Exception {
        final Location l = new Location();
        final Size z = new Size();
        final View view = new AbstractView(new NullContent()) {
            @Override
            public void setLocation(final Location location) {
                l.translate(location);
            }

            @Override
            public void setSize(final Size size) {
                z.extend(size);
            }
        };

        view.setBounds(new Bounds(20, 30, 40, 50));
        assertEquals(new Location(20, 30), l);
        assertEquals(new Size(40, 50), z);
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.base.AbstractView

                }
                viewer.clearAction();
            } else if (ke.getKeyCode() == KeyEvent.VK_F5) {
                draggedView = identifiedView;
            } else if (draggedView != null && ke.getKeyCode() == KeyEvent.VK_F6) {
                final ContentDrag content = new ContentDragImpl(draggedView, new Location(), new AbstractView(new NullContent()) {
                });
                if (identifiedView != null) {
                    identifiedView.drop(content);
                }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.base.AbstractView

                viewer.clearAction();
            } else if (ke.getKeyCode() == KeyEvent.VK_F5) {
                draggedView = identifiedView;
            } else if (draggedView != null && ke.getKeyCode() == KeyEvent.VK_F6) {
                final ContentDrag content =
                    new ContentDragImpl(draggedView, new Location(), new AbstractView(new NullContent()) {
                    });
                if (identifiedView != null) {
                    identifiedView.drop(content);
                }
View Full Code Here

Examples of org.springframework.web.servlet.view.AbstractView

      this.attrsToValidate = attrsToValidate;
    }

    @Override
    public View resolveViewName(final String viewName, Locale locale) throws Exception {
      return new AbstractView () {
        @Override
        public String getContentType() {
          return null;
        }
        @Override
View Full Code Here

Examples of org.springframework.web.servlet.view.AbstractView

  public JSController(AbstractTransformerFactory factory, JSEntityRequest attributeRequest) {
    super(factory, attributeRequest);
  }

  public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
    AbstractView resourceView = new ResourceView((JSEntityRequest) getAttributeRequest());
   
    return new ModelAndView(resourceView);
  }
View Full Code Here

Examples of org.springframework.web.servlet.view.AbstractView

      SpringApplication.run(TestConfiguration.class, args);
    }

    @Bean
    public View error() {
      return new AbstractView() {
        @Override
        protected void renderMergedOutputModel(Map<String, Object> model,
            HttpServletRequest request, HttpServletResponse response)
            throws Exception {
          response.getWriter().write("ERROR_BEAN");
View Full Code Here

Examples of org.springframework.web.servlet.view.AbstractView

      SpringApplication.run(TestConfiguration.class, args);
    }

    @Bean
    public View error() {
      return new AbstractView() {
        @Override
        protected void renderMergedOutputModel(Map<String, Object> model,
            HttpServletRequest request, HttpServletResponse response)
            throws Exception {
          response.getWriter().write("ERROR_BEAN");
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.