| PREV CLASS Documentation homepage NEXT CLASS |
IlvObject | +--IlvInteractor
IlvInteractor is the abstract base class for all interactors on
a DHTML view component. In order to create a new interactor, you must create
a subclass that should define 1 or more of the following methods:
mouseMove(event) - To handle mouse move events. mouseDown(event) - To handle mouse down events. mouseDrag(event) - To handle mouse drag events. mouseUp(event) - To handle mouse up events. mouseOver(event) - To handle mouse over events. mouseOut(event) - To handle mouse out events. mouseWheel(event) - To handle mouse wheel events. keyPress(event) - To handle key press events. keyDown(event) - To handle key down events. keyUp(event) - To handle key up events.The mouse event parameter passed to the first 6 methods is an object with 8 read-only properties:
event.type: A string representing the event type. event.mouseX: The mouse X coordinate relative to the view. event.mouseY: The mouse Y coordinate relative to the view. event.screenX: The absolute mouse X coordinate in the screen. event.screenY: The absolute mouse Y coordinate in the screen. event.altKey: A Boolean, true when the ALT key is pressed. event.ctrlKey: A Boolean, true when the CONTROL key is pressed. event.shiftKey: A Boolean, true when the SHIFT key is pressed.The key event passed to the
keyPress method is an object with
the following read-only properties:
event.type: A string representing the event type. event.keyCode: The key code.The mouse wheel event passed to the
mouseWheel method is an object with
the following read-only property:
event.wheelDelta: The amount of scrolling: This value is positive if the mouse wheel was scrolled up and negative otherwise.
This amount depends on the mouse configuration and on the browser.
| Constructor Summary | |
|---|---|
IlvInteractor()
|
|
| Method Summary | |
|---|---|
getCursor()
Returns the mouse cursor to be displayed when using this interactor. |
|
getMenuModelId()
Returns the menu model ID. |
|
getMessage()
Returns the message to be displayed when using this interactor. |
|
getView()
Returns the IlvGanttComponentView where this interactor is
attached or null when the interactor is not attached. |
|
setCursor(cursor)
Sets the mouse cursor to be displayed when using this interactor. |
|
setMenuModelId(modelId)
Sets the menu model ID. |
|
setMessage(message)
Sets the message to be displayed when using this interactor. |
|
setView(view)
Invoked when the interactor is attached or detached from a view. |
|
| Constructor Detail |
IlvInteractor()
| Method Detail |
getCursor()
getMenuModelId()
getMessage()
getView()
IlvGanttComponentView where this interactor is
attached or null when the interactor is not attached. setCursor(cursor)
setMenuModelId(modelId)
modelId - The menu model ID.setMessage(message)
setView(view)
| Inherited Methods from IlvObject |
| PREV CLASS Documentation homepage NEXT CLASS |