Package org.directwebremoting.event

Examples of org.directwebremoting.event.ScriptSessionEvent


     * This should be called whenever a {@link ScriptSession} is created
     * @param scriptSession The newly created ScriptSession
     */
    protected void fireScriptSessionCreatedEvent(ScriptSession scriptSession)
    {
        ScriptSessionEvent ev = null;
        for (int i = scriptSessionListeners.size() - 1; i >= 0; i--)
        {
            if (ev == null)
            {
                ev = new ScriptSessionEvent(scriptSession);
            }
            scriptSessionListeners.get(i).sessionCreated(ev);
        }
    }
View Full Code Here


     * This should be called whenever a {@link ScriptSession} is destroyed
     * @param scriptSession The newly destroyed ScriptSession
     */
    protected void fireScriptSessionDestroyedEvent(ScriptSession scriptSession)
    {
        ScriptSessionEvent ev = null;
        for (int i = scriptSessionListeners.size() - 1; i >= 0; i--)
        {
            if (ev == null)
            {
                ev = new ScriptSessionEvent(scriptSession);
            }
            scriptSessionListeners.get(i).sessionDestroyed(ev);
        }
    }
View Full Code Here

     * This should be called whenever a {@link ScriptSession} is created
     * @param scriptSession The newly created ScriptSession
     */
    protected void fireScriptSessionCreatedEvent(ScriptSession scriptSession)
    {
        ScriptSessionEvent ev = null;
        for (int i = scriptSessionListeners.size() - 1; i >= 0; i--)
        {
            if (ev == null)
            {
                ev = new ScriptSessionEvent(scriptSession);
            }
            scriptSessionListeners.get(i).sessionCreated(ev);
        }
    }
View Full Code Here

     * This should be called whenever a {@link ScriptSession} is destroyed
     * @param scriptSession The newly destroyed ScriptSession
     */
    protected void fireScriptSessionDestroyedEvent(ScriptSession scriptSession)
    {
        ScriptSessionEvent ev = null;
        for (int i = scriptSessionListeners.size() - 1; i >= 0; i--)
        {
            if (ev == null)
            {
                ev = new ScriptSessionEvent(scriptSession);
            }
            scriptSessionListeners.get(i).sessionDestroyed(ev);
        }
    }
View Full Code Here

TOP

Related Classes of org.directwebremoting.event.ScriptSessionEvent

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.