com.itmill.toolkit.terminal.web
Class AjaxApplicationManager

java.lang.Object
  extended by com.itmill.toolkit.terminal.web.AjaxApplicationManager
All Implemented Interfaces:
Application.WindowAttachListener, Application.WindowDetachListener, Paintable.RepaintRequestListener

public class AjaxApplicationManager
extends Object
implements Paintable.RepaintRequestListener, Application.WindowAttachListener, Application.WindowDetachListener

Application manager processes changes and paints for single application instance.

Since:
3.1
Version:
4.1.4
Author:
IT Mill Ltd.

Nested Class Summary
 class AjaxApplicationManager.URIHandlerErrorImpl
          Implementation of URIHandler.ErrorEvent interface.
 
Constructor Summary
AjaxApplicationManager(Application application)
           
 
Method Summary
 void clearDirtyComponents()
          Clears the Dirty Components.
 Set getDirtyComponents()
           
 String getPaintableId(Paintable paintable)
          Gets the Paintable Id.
 Set getRemovedWindows()
           
 void handleUidlRequest(HttpServletRequest request, HttpServletResponse response, ThemeSource themeSource)
           
 boolean isDirty(Paintable paintable)
           
 void paintablePainted(Paintable p)
           
 void releaseControl()
           
 void repaintRequested(Paintable.RepaintRequestEvent event)
          Receives repaint request events.
 void takeControl()
           
 void windowAttached(Application.WindowAttachEvent event)
          Window attached
 void windowDetached(Application.WindowDetachEvent event)
          Window detached.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxApplicationManager

public AjaxApplicationManager(Application application)
Method Detail

takeControl

public void takeControl()

releaseControl

public void releaseControl()

handleUidlRequest

public void handleUidlRequest(HttpServletRequest request,
                              HttpServletResponse response,
                              ThemeSource themeSource)
                       throws IOException
Parameters:
request - the HTTP Request.
response - the HTTP Response.
Throws:
IOException - if the writing failed due to input/output error.

getPaintableId

public String getPaintableId(Paintable paintable)
Gets the Paintable Id.

Parameters:
paintable -
Returns:
the paintable Id.

getDirtyComponents

public Set getDirtyComponents()
Returns:

clearDirtyComponents

public void clearDirtyComponents()
Clears the Dirty Components.


repaintRequested

public void repaintRequested(Paintable.RepaintRequestEvent event)
Description copied from interface: Paintable.RepaintRequestListener
Receives repaint request events.

Specified by:
repaintRequested in interface Paintable.RepaintRequestListener
Parameters:
event - the repaint request event specifying the paintable source.
See Also:
Paintable.RepaintRequestListener.repaintRequested(com.itmill.toolkit.terminal.Paintable.RepaintRequestEvent)

paintablePainted

public void paintablePainted(Paintable p)
Parameters:
p -

isDirty

public boolean isDirty(Paintable paintable)
Parameters:
paintable -
Returns:

windowAttached

public void windowAttached(Application.WindowAttachEvent event)
Description copied from interface: Application.WindowAttachListener
Window attached

Specified by:
windowAttached in interface Application.WindowAttachListener
Parameters:
event - the window attach event.
See Also:
Application.WindowAttachListener.windowAttached(com.itmill.toolkit.Application.WindowAttachEvent)

windowDetached

public void windowDetached(Application.WindowDetachEvent event)
Description copied from interface: Application.WindowDetachListener
Window detached.

Specified by:
windowDetached in interface Application.WindowDetachListener
Parameters:
event - the window detach event.
See Also:
Application.WindowDetachListener.windowDetached(com.itmill.toolkit.Application.WindowDetachEvent)

getRemovedWindows

public Set getRemovedWindows()
Returns:


Copyright © 2000-2008 IT Mill Ltd. All Rights Reserved.