Package org.itsnat.impl.core.event

Examples of org.itsnat.impl.core.event.ItsNatEventImpl


    {
    }

    public void handleEvent(Event evt)
    {
        ItsNatEventImpl itsNatEvt = (ItsNatEventImpl)evt;

        ItsNatServletRequestImpl itsNatRequest = itsNatEvt.getItsNatServletRequestImpl();
        ItsNatSessionImpl itsNatSession = itsNatRequest.getItsNatSessionImpl();
        ItsNatStfulDocumentImpl itsNatDoc = itsNatEvt.getItsNatStfulDocument();
        itsNatSession.getReferrer().pushItsNatStfulDocument(itsNatDoc);
    }
View Full Code Here


               super.continueChain();
               handleEventListeners(evt,this);
           }
        };

        ItsNatEventImpl itsNatEvt = (ItsNatEventImpl)evt;
        itsNatEvt.setItsNatEventListenerChain(chain);

        try
        {
            handleEventListeners(evt,chain);
        }
        finally
        {
            itsNatEvt.unsetEventListenerChain()// El chain s�lo tiene validez en este contexto
        }

        return true;
    }
View Full Code Here

        return true;
    }

    private static void addGlobalEventListeners(ItsNatAttachedClientEvent evt,LinkedList<ItsNatAttachedClientEventListener> listeners)
    {
        ItsNatEventImpl itsNatEvt = (ItsNatEventImpl)evt;
        ItsNatServletImpl servlet = itsNatEvt.getItsNatServletRequestImpl().getItsNatServletImpl();

        servlet.getItsNatAttachedClientEventListenerList(listeners);

        ItsNatStfulDocumentImpl itsNatDoc = itsNatEvt.getItsNatStfulDocument();

        itsNatDoc.getItsNatDocumentTemplateImpl().getItsNatAttachedClientEventListenerList(listeners);

        itsNatDoc.getItsNatAttachedClientEventListenerList(listeners);
    }
View Full Code Here

    {
    }

    public String getCreateEventCode(Event evt,String evtVarName,ClientDocumentStfulImpl clientDoc)
    {
        ItsNatEventImpl userEvt = (ItsNatEventImpl)evt;
        String name = ((ItsNatUserEvent)userEvt).getName();

        StringBuilder code = new StringBuilder();
        code.append("var evt = itsNatDoc.createUserEvent(\"" + name + "\");\n");
        if (userEvt.hasExtraParams())
        {
            Map<String,Object> extraParams = userEvt.getExtraParamMap();
            for(Map.Entry<String,Object> entry : extraParams.entrySet())
            {
                String nameParam = entry.getKey();
                Object value = entry.getValue();
                code.append( "evt.setExtraParam(\"" + nameParam + "\"," + javaToJS(value,true,clientDoc) + ");\n" );
View Full Code Here

               super.continueChain();
               handleEventListeners(evt,this);
           }
        };

        ItsNatEventImpl itsNatEvt = (ItsNatEventImpl)evt;
        itsNatEvt.setItsNatEventListenerChain(chain);

        try
        {
            handleEventListeners(evt,chain);
        }
        finally
        {
            itsNatEvt.unsetEventListenerChain()// El chain s�lo tiene validez en este contexto
        }
    }
View Full Code Here

        }
    }
   
    private static void addGlobalEventListeners(Event evt,LinkedList<EventListener> listeners)
    {
        ItsNatEventImpl itsNatEvt = (ItsNatEventImpl)evt;
        ItsNatServletImpl servlet = itsNatEvt.getItsNatServletRequestImpl().getItsNatServletImpl();
        servlet.getGlobalEventListenerList(listeners);       
       
        ItsNatStfulDocumentImpl itsNatDoc = itsNatEvt.getItsNatStfulDocument();
        if (itsNatDoc != null)
        {
            ItsNatDocumentTemplateImpl template = itsNatDoc.getItsNatDocumentTemplateImpl();
            template.getGlobalEventListenerList(listeners);           
            itsNatDoc.getGlobalEventListenerList(listeners);           
        }
       
        ClientDocumentImpl clientDoc = itsNatEvt.getClientDocumentImpl();
        clientDoc.getGlobalEventListenerList(listeners);
    }
View Full Code Here

TOP

Related Classes of org.itsnat.impl.core.event.ItsNatEventImpl

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.