com.opera.core.systems
Class EventHandler

java.lang.Object
  extended by com.opera.core.systems.scope.handlers.AbstractEventHandler
      extended by com.opera.core.systems.EventHandler
Direct Known Subclasses:
UmsEventHandler

public class EventHandler
extends AbstractEventHandler

Provides an interface to the Scope protocol.

Author:
Deniz Turkoglu

Field Summary
protected  ScopeServices services
           
 
Constructor Summary
EventHandler(ScopeServices services)
           
 
Method Summary
 void onActiveWindow(java.lang.Integer id)
          Changes the window-manager's active window on active window event
 void onDesktopWindowActivated(DesktopWmProtos.DesktopWindowInfo info)
          Fired when a window becomes active (steals focus)
 void onDesktopWindowClosed(DesktopWmProtos.DesktopWindowInfo info)
          Fired when a window instance is closed
 void onDesktopWindowLoaded(DesktopWmProtos.DesktopWindowInfo info)
          Fired when loading Finished event
 void onDesktopWindowShown(DesktopWmProtos.DesktopWindowInfo info)
          Fired when a desktop window is shown at the last possible moment so the window should be fully visible
 void onDesktopWindowUpdated(DesktopWmProtos.DesktopWindowInfo info)
          Fired when a new window is created or window has incoming changes (such as title change)
 void onHttpResponse(int responseCode)
           
 void onMessage(ConsoleLoggerProtos.ConsoleMessage message)
          Fired on new console messages
 void onOperaIdle()
          Fired when opera is idle
 void onQuickMenuClosed(DesktopWmProtos.QuickMenuID menuId)
          Fired when menu closed
 void onQuickMenuItemPressed(DesktopWmProtos.QuickMenuItemID menuItemID)
          Fired when menu item is pressed
 void onQuickMenuShown(DesktopWmProtos.QuickMenuInfo menuInfoShown)
          Fired when menu shown
 void onReadyStateChange(EcmascriptProtos.ReadyStateChange change)
           
 void onRequest(int windowId)
           
 void onRuntimeStarted(EsdbgProtos.RuntimeInfo started)
          Fired when a new runtime started is received Runtime-started is needed for tracking ecmascript injections
 void onRuntimeStopped(java.lang.Integer id)
          Remove any runtime that has been stopped.
 void onSelftestDone()
           
 void onSelftestOutput(SelftestProtos.SelftestOutput output)
           
 void onUpdatedWindow(WmProtos.WindowInfo window)
          Fired when a new window is created or window has incoming changes (such as title change)
 void onWindowClosed(java.lang.Integer id)
          Handles windows that have been closed.
 void onWindowLoaded(int windowId)
          Fired when a window is loaded
 
Methods inherited from class com.opera.core.systems.scope.handlers.AbstractEventHandler
parseHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

services

protected ScopeServices services
Constructor Detail

EventHandler

public EventHandler(ScopeServices services)
Method Detail

onActiveWindow

public void onActiveWindow(java.lang.Integer id)
Changes the window-manager's active window on active window event

Specified by:
onActiveWindow in class AbstractEventHandler

onRuntimeStopped

public void onRuntimeStopped(java.lang.Integer id)
Remove any runtime that has been stopped. This call can be quite late and hence is resolved by cleanup method in onRuntimeStarted

Specified by:
onRuntimeStopped in class AbstractEventHandler

onRequest

public void onRequest(int windowId)
Specified by:
onRequest in class AbstractEventHandler

onWindowClosed

public void onWindowClosed(java.lang.Integer id)
Handles windows that have been closed. Removes it from the list and removes the runtimes that are associated with it

Specified by:
onWindowClosed in class AbstractEventHandler

onWindowLoaded

public void onWindowLoaded(int windowId)
Fired when a window is loaded

Specified by:
onWindowLoaded in class AbstractEventHandler
Parameters:
windowId - ID of the window that fired the event

onOperaIdle

public void onOperaIdle()
Fired when opera is idle

Specified by:
onOperaIdle in class AbstractEventHandler

onRuntimeStarted

public void onRuntimeStarted(EsdbgProtos.RuntimeInfo started)
Description copied from class: AbstractEventHandler
Fired when a new runtime started is received Runtime-started is needed for tracking ecmascript injections

Specified by:
onRuntimeStarted in class AbstractEventHandler

onUpdatedWindow

public void onUpdatedWindow(WmProtos.WindowInfo window)
Description copied from class: AbstractEventHandler
Fired when a new window is created or window has incoming changes (such as title change)

Specified by:
onUpdatedWindow in class AbstractEventHandler

onMessage

public void onMessage(ConsoleLoggerProtos.ConsoleMessage message)
Description copied from class: AbstractEventHandler
Fired on new console messages

Specified by:
onMessage in class AbstractEventHandler

onHttpResponse

public void onHttpResponse(int responseCode)
Specified by:
onHttpResponse in class AbstractEventHandler

onReadyStateChange

public void onReadyStateChange(EcmascriptProtos.ReadyStateChange change)
Specified by:
onReadyStateChange in class AbstractEventHandler

onDesktopWindowShown

public void onDesktopWindowShown(DesktopWmProtos.DesktopWindowInfo info)
Description copied from class: AbstractEventHandler
Fired when a desktop window is shown at the last possible moment so the window should be fully visible

Specified by:
onDesktopWindowShown in class AbstractEventHandler

onDesktopWindowUpdated

public void onDesktopWindowUpdated(DesktopWmProtos.DesktopWindowInfo info)
Description copied from class: AbstractEventHandler
Fired when a new window is created or window has incoming changes (such as title change)

Specified by:
onDesktopWindowUpdated in class AbstractEventHandler

onDesktopWindowActivated

public void onDesktopWindowActivated(DesktopWmProtos.DesktopWindowInfo info)
Description copied from class: AbstractEventHandler
Fired when a window becomes active (steals focus)

Specified by:
onDesktopWindowActivated in class AbstractEventHandler

onDesktopWindowClosed

public void onDesktopWindowClosed(DesktopWmProtos.DesktopWindowInfo info)
Description copied from class: AbstractEventHandler
Fired when a window instance is closed

Specified by:
onDesktopWindowClosed in class AbstractEventHandler

onDesktopWindowLoaded

public void onDesktopWindowLoaded(DesktopWmProtos.DesktopWindowInfo info)
Description copied from class: AbstractEventHandler
Fired when loading Finished event

Specified by:
onDesktopWindowLoaded in class AbstractEventHandler

onQuickMenuShown

public void onQuickMenuShown(DesktopWmProtos.QuickMenuInfo menuInfoShown)
Description copied from class: AbstractEventHandler
Fired when menu shown

Specified by:
onQuickMenuShown in class AbstractEventHandler

onQuickMenuClosed

public void onQuickMenuClosed(DesktopWmProtos.QuickMenuID menuId)
Description copied from class: AbstractEventHandler
Fired when menu closed

Specified by:
onQuickMenuClosed in class AbstractEventHandler

onQuickMenuItemPressed

public void onQuickMenuItemPressed(DesktopWmProtos.QuickMenuItemID menuItemID)
Description copied from class: AbstractEventHandler
Fired when menu item is pressed

Specified by:
onQuickMenuItemPressed in class AbstractEventHandler

onSelftestOutput

public void onSelftestOutput(SelftestProtos.SelftestOutput output)
Specified by:
onSelftestOutput in class AbstractEventHandler

onSelftestDone

public void onSelftestDone()
Specified by:
onSelftestDone in class AbstractEventHandler


Copyright © 2011. All Rights Reserved.