IlvAbstractView

IlvObject
  |
  +--IlvEmptyView
       |
       +--IlvResizableView
            |
            +--IlvAbstractView
Category:
Common component
JavaScript File:
IlvAbstractView.js
Description:
IlvAbstractView is an extension of IlvResizableView and is the superclass of all concrete view implementations. It contains a single child subview, an IlvGlassView, to capture input events.

Constructor Summary
IlvAbstractView(left, top, width, height, namespace)

Method Summary
childrenToHTML()
Creates the HTML for this component's children.
getCursor()
Returns the cursor of the view.
getGlassView()
Returns the IlvGlassView that is charged of managing events for this IlvAbstractView.
keyPress(e)
Handles Key press events
mouseDown(e)
Handles Mouse down events.
mouseDrag(e)
Handles Mouse drag events.
mouseMove(e)
Handles Mouse move events.
mouseOut(e)
Handles Mouse out events.
mouseOver(e)
Handles Mouse over events.
mouseUp(e)
Handles Mouse up events.
setChildrenBounds(left, top, width, height)
Changes the size of this view's children.
setCursor(cursor)
Changes the cursor of the view.

Constructor Detail

IlvAbstractView

IlvAbstractView(left, top, width, height, namespace)
Creates an instance of IlvAbstractView.

Method Detail

childrenToHTML

childrenToHTML()
Creates the HTML for this component's children. This implementation does nothing. Subclasses should override this method as needed. Warning: This method is considered to be part of an IlvAbstractView's internal implementation and is not a public API.

getCursor

getCursor()
Returns the cursor of the view.

getGlassView

getGlassView()
Returns the IlvGlassView that is charged of managing events for this IlvAbstractView.

Since:
JViews 8.1


keyPress

keyPress(e)
Handles Key press events
Parameters:
e - The key event with the following read-only properties:
  e.type:     A string representing the event type.
  e.keyCode:  The code of the key.
 

mouseDown

mouseDown(e)
Handles Mouse down events.
Parameters:
e - The mouse event with 8 read-only properties:
  e.type:     A string representing the event type.
  e.mouseX:   The mouse coordinates relative to the view.
  e.mouseY:   The mouse coordinates relative to the view.
  e.screenX:  The absolute mouse coordinates in the screen.
  e.screenY:  The absolute mouse coordinates in the screen.
  e.altKey:   A Boolean, true when the ALT key is pressed.
  e.ctrlKey:  A Boolean, true when the CONTROL key is pressed.
  e.shiftKey: A Boolean, true when the SHIFT key is pressed.
 

mouseDrag

mouseDrag(e)
Handles Mouse drag events.
Parameters:
e - The mouse event with 8 read-only properties:
  e.type:     A string representing the event type.
  e.mouseX:   The mouse coordinates relative to the view.
  e.mouseY:   The mouse coordinates relative to the view.
  e.screenX:  The absolute mouse coordinates in the screen.
  e.screenY:  The absolute mouse coordinates in the screen.
  e.altKey:   A Boolean, true when the ALT key is pressed.
  e.ctrlKey:  A Boolean, true when the CONTROL key is pressed.
  e.shiftKey: A Boolean, true when the SHIFT key is pressed.
 

mouseMove

mouseMove(e)
Handles Mouse move events.
Parameters:
e - The mouse event with 8 read-only properties:
  e.type:     A string representing the event type.
  e.mouseX:   The mouse coordinates relative to the view.
  e.mouseY:   The mouse coordinates relative to the view.
  e.screenX:  The absolute mouse coordinates in the screen.
  e.screenY:  The absolute mouse coordinates in the screen.
  e.altKey:   A Boolean, true when the ALT key is pressed.
  e.ctrlKey:  A Boolean, true when the CONTROL key is pressed.
  e.shiftKey: A Boolean, true when the SHIFT key is pressed.
 

mouseOut

mouseOut(e)
Handles Mouse out events.
Parameters:
e - The mouse event with 8 read-only properties:
  e.type:     A string representing the event type.
  e.mouseX:   The mouse coordinates relative to the view.
  e.mouseY:   The mouse coordinates relative to the view.
  e.screenX:  The absolute mouse coordinates in the screen.
  e.screenY:  The absolute mouse coordinates in the screen.
  e.altKey:   A Boolean, true when the ALT key is pressed.
  e.ctrlKey:  A Boolean, true when the CONTROL key is pressed.
  e.shiftKey: A Boolean, true when the SHIFT key is pressed.
 

mouseOver

mouseOver(e)
Handles Mouse over events.
Parameters:
e - The mouse event with 8 read-only properties:
  e.type:     A string representing the event type.
  e.mouseX:   The mouse coordinates relative to the view.
  e.mouseY:   The mouse coordinates relative to the view.
  e.screenX:  The absolute mouse coordinates in the screen.
  e.screenY:  The absolute mouse coordinates in the screen.
  e.altKey:   A Boolean, true when the ALT key is pressed.
  e.ctrlKey:  A Boolean, true when the CONTROL key is pressed.
  e.shiftKey: A Boolean, true when the SHIFT key is pressed.
 

mouseUp

mouseUp(e)
Handles Mouse up events.
Parameters:
e - The mouse event with 8 read-only properties:
  e.type:     A string representing the event type.
  e.mouseX:   The mouse coordinates relative to the view.
  e.mouseY:   The mouse coordinates relative to the view.
  e.screenX:  The absolute mouse coordinates in the screen.
  e.screenY:  The absolute mouse coordinates in the screen.
  e.altKey:   A Boolean, true when the ALT key is pressed.
  e.ctrlKey:  A Boolean, true when the CONTROL key is pressed.
  e.shiftKey: A Boolean, true when the SHIFT key is pressed.
 

setChildrenBounds

setChildrenBounds(left, top, width, height)
Changes the size of this view's children. Warning: This method is considered to be part of an IlvAbstractView's internal implementation and is not a public API.
Parameters:
left - The absolute x position of the view on the page.
top - The absolute y position of the view on the page.
width - The width of the view.
height - The height of the view.

setCursor

setCursor(cursor)
Changes the cursor of the view.
Parameters:
cursor - The cursor name.

Inherited Methods from IlvResizableView
getMaximumSize, getMinimumSize, isResizable, setChildrenBounds, setMaximumSize, setMinimumSize, setResizable, toHTML
Inherited Methods from IlvEmptyView
addSizeListener, childrenToHTML, getBounds, getHeight, getLeft, getLocation, getSize, getTop, getWidth, isStateInCookie, removeSizeListener, restoreState, saveState, setBounds, setChildrenBounds, setLocation, setSize, setStateInCookie, toHTML
Inherited Methods from IlvObject
callDispose, dispose, getClassName, hashCode, inherits, instanceOf, invoke, registerDispose, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility