Skip to main content
PREV CLASS NEXT CLASS FRAMES NO FRAMES

 

Class IlvInterceptInteractor

IlvObject
   |
   +--IlvInteractor
      |
      +--IlvInterceptInteractor

Category:
Common component
JavaScript File:
IlvInterceptInteractor.js
Description:
The class used to intercept the interactor. The intercept handler will use the same parameters as the method which is intercepted. The intercept handler is a Javascript function looks like the following,

Since:
JViews 8.8

Constructor Summary
Constructor Attributes Constructor Name and Description
 
IlvInterceptInteractor(event, view, interactor)
Method Summary
Method Attributes Method Name and Description
 
Gets the original interactor of this intercept interactor.
 
setAfterHandler(eventType, handler)
Sets the after handler for interactor, the handler will call before the eventType of the interactor.
 
setBeforeHandler(eventType, handler)
Sets the before handler for interactor, the handler will call before the eventType of the interactor.
Methods inherited from class IlvInteractor
getCursor, getMenuModelId, getMessage, getView, setCursor, setMenuModelId, setMessage, setView
Methods inherited from class IlvObject
dispose, getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility
Constructor Detail
IlvInterceptInteractor
IlvInterceptInteractor(event, view, interactor)
Parameters:
event - The mouse event object
view - The view object function handler(event,view) { // here do something by yourself... // ... }

interactor
Method Detail
getInteractor
getInteractor()
Gets the original interactor of this intercept interactor.

setAfterHandler
setAfterHandler(eventType, handler)
Sets the after handler for interactor, the handler will call before the eventType of the interactor.
Parameters:
eventType - the event type, for example "mouseDown, mouseMove etc".
handler - a javascript function with the parameter IlvView object for framework, diagrammer or with the parameter IlvChartView object for chart, with the parameter IlvGanttView for gantt.

setBeforeHandler
setBeforeHandler(eventType, handler)
Sets the before handler for interactor, the handler will call before the eventType of the interactor.
Parameters:
eventType - the event type, for example "mouseDown, mouseMove etc".
handler - a javascript function with the parameter IlvView object for framework, diagrammer or with the parameter IlvChartView object for chart, with the parameter IlvGanttView for gantt.

©Copyright Rogue Wave Software Inc. 1997, 2018. All Rights Reserved.