Examples of Flash


Examples of com.palepail.TestGame.Actions.Flash

    position.x = 10 * Configuration.gameScale;
    velocity.x = 0;
    velocity.y = 0;
    setDamage(baseDamage);
    setAlpha(0);
    tandemScript.add(new Flash(this,1,192/Configuration.frameRate));
    if (getLives() <= 0) {
      world.gameOver();
      sequentialScript.clear();
      position = (new Vector2(10*Configuration.gameScale,-6*Configuration.gameScale));
      influence.x = position.x - ((width * (INFLUENCE_SCALE - 1)) / 2);
View Full Code Here

Examples of com.vaadin.ui.Flash

        e = new Image("Image w/ alt text");
        e.setAlternateText("Image");
        addComponent(e);

        e = new Flash("Flash w/o alt text");
        addComponent(e);

        e = new Flash("Flash w/ alt text");
        e.setAlternateText("Flash");
        addComponent(e);

        e = new BrowserFrame("BrowserFrame w/o alt text");
        addComponent(e);
View Full Code Here

Examples of com.vaadin.ui.Flash

        return 3367;
    }

    @Override
    public void setup() {
        Flash player = new Flash();
        player.setWidth("400px");
        player.setHeight("300px");
        String url = "http://www.youtube.com/v/qQ9N742QB4g&autoplay=1";
        player.setSource(new ExternalResource(url));
        player.setParameter("movie", "someRandomValue");
        player.setParameter("allowFullScreen", "true");
        player.setAlternateText("Flash alternative text");

        addComponent(player);
    }
View Full Code Here

Examples of com.vaadin.ui.Flash

public class FlashIsVisible extends TestBase {

    @Override
    protected void setup() {
        Flash player = new Flash();
        player.setWidth("400px");
        player.setHeight("300px");
        player.setSource(new ClassResource("simple.swf"));
        addComponent(player);
    }
View Full Code Here

Examples of javax.faces.context.Flash

        {
            log.finest("entering " + executor.getPhase() + " in " + LifecycleImpl.class.getName());
        }

        PhaseId currentPhaseId = executor.getPhase();
        Flash flash = context.getExternalContext().getFlash();

        try
        {
            /*
             * Specification, section 2.2
             * The default request lifecycle processing implementation must ensure that the currentPhaseId property
             * of the FacesContext instance for this request is set with the proper PhaseId constant for the current
             * phase as the first instruction at the beginning of each phase
             */
            context.setCurrentPhaseId(currentPhaseId);
           
            flash.doPrePhaseActions(context);

            phaseListenerMgr.informPhaseListenersBefore(currentPhaseId);

            if (isResponseComplete(context, currentPhaseId, true))
            {
                // have to return right away
                return true;
            }
            if (shouldRenderResponse(context, currentPhaseId, true))
            {
                skipFurtherProcessing = true;
            }

            if (executor.execute(context))
            {
                return true;
            }
        }
       
        catch (Throwable e) {
            // JSF 2.0: publish the executor's exception (if any).
           
            publishException (e, currentPhaseId, context);
        }
       
        finally
        {
            phaseListenerMgr.informPhaseListenersAfter(currentPhaseId);
           
            flash.doPostPhaseActions(context);
           
        }
       
        context.getExceptionHandler().handle();
       
View Full Code Here

Examples of javax.faces.context.Flash

            }
            if (log.isLoggable(Level.FINEST))
                log.finest("entering " + renderExecutor.getPhase() + " in " + LifecycleImpl.class.getName());
   
            PhaseListenerManager phaseListenerMgr = new PhaseListenerManager(this, facesContext, getPhaseListeners());
            Flash flash = facesContext.getExternalContext().getFlash();
           
            try
            {
                facesContext.setCurrentPhaseId(renderExecutor.getPhase());
               
                flash.doPrePhaseActions(facesContext);
                boolean renderResponse = phaseListenerMgr.informPhaseListenersBefore(renderExecutor.getPhase());
                // also possible that one of the listeners completed the response
                if (isResponseComplete(facesContext, renderExecutor.getPhase(), true))
                {
                    return;
                }
                if(renderResponse || facesContext.getExceptionHandler().getClass().equals(ClassUtils.classForName("javax.faces.webapp.PreJsf2ExceptionHandlerFactory$PreJsf2ExceptionHandlerImpl")))
                    renderExecutor.execute(facesContext);
            }
           
            catch (Throwable e) {
                // JSF 2.0: publish the executor's exception (if any).
               
                publishException (e, renderExecutor.getPhase(), facesContext);
            }
           
            finally
            {
                phaseListenerMgr.informPhaseListenersAfter(renderExecutor.getPhase());
                flash.doPostPhaseActions(facesContext);
            }
           
            facesContext.getExceptionHandler().handle();
           
            if (log.isLoggable(Level.FINEST))
View Full Code Here

Examples of javax.faces.context.Flash

     * @return
     */
    public static Flash getCurrentInstance(ExternalContext context)
    {
        Map<String, Object> applicationMap = context.getApplicationMap();
        Flash flash = (Flash) applicationMap.get(FLASH_INSTANCE);

        synchronized (applicationMap)
        {
            if (flash == null)
            {
View Full Code Here

Examples of javax.faces.context.Flash

     */
    public static Flash getCurrentInstance(ExternalContext context)
    {
        Map<String, Object> applicationMap = context.getApplicationMap();
       
        Flash flash = (Flash) applicationMap.get(FLASH_INSTANCE);
        if (flash == null)
        {
            // synchronize the ApplicationMap to ensure that only
            // once instance of FlashImpl is created and stored in it.
            synchronized (applicationMap)
View Full Code Here

Examples of javax.faces.context.Flash

            {
                continue;
            }

            FacesContext facesContext = exceptionQueuedEventContext.getContext();
            Flash flash = facesContext.getExternalContext().getFlash();

            if (throwable instanceof ViewExpiredException)
            {
                viewId = ((ViewExpiredException) throwable).getViewId();
            }
            else if (throwable instanceof ContextNotActiveException)
            {
                //the error page uses a cdi scope which isn't active as well
                //(it's recorded below - see flash.put(throwable.getClass().getName(), throwable);)
                if (flash.containsKey(ContextNotActiveException.class.getName()))
                {
                    //TODO show it in case of project-stage development
                    break;
                }

                if (facesContext.getViewRoot() != null)
                {
                    viewId = facesContext.getViewRoot().getViewId();
                }
                else
                {
                    viewId = BeanProvider.getContextualReference(ViewConfigResolver.class)
                            //has to return a value otherwise this handler wouldn't be active
                            .getDefaultErrorViewConfigDescriptor().getViewId();
                }
            }

            if (viewId != null)
            {
                UIViewRoot uiViewRoot = facesContext.getApplication().getViewHandler().createView(facesContext, viewId);

                if (uiViewRoot == null)
                {
                    continue;
                }

                if (facesContext.isProjectStage(javax.faces.application.ProjectStage.Development) ||
                        ProjectStageProducer.getInstance().getProjectStage() == ProjectStage.Development ||
                        ProjectStageProducer.getInstance().getProjectStage() instanceof TestStage)
                {
                    throwable.printStackTrace();
                }

                facesContext.setViewRoot(uiViewRoot);
                exceptionQueuedEventIterator.remove();

                //record the current exception -> to check it at the next call or to use it on the error-page
                flash.put(throwable.getClass().getName(), throwable);
                flash.keep(throwable.getClass().getName());

                this.viewNavigationHandler.navigateTo(DefaultErrorView.class);

                break;
            }
View Full Code Here

Examples of javax.faces.context.Flash

            }
        } else {
            writeVariables(writer, Collections.<String,Object>emptyMap(), "View Attributes");
        }
        writeVariables(writer, ctx.getRequestMap(), "Request Attributes");
        Flash flash = ctx.getFlash();
        try {
            flash = ctx.getFlash();
        } catch (UnsupportedOperationException uoe) {
            if (LOGGER.isLoggable(Level.FINEST)) {
                LOGGER.log(Level.FINEST, "Flash not supported", uoe);
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.