Skip to main content
PREV CLASS NEXT CLASS FRAMES NO FRAMES

 

Class 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
Constructor Attributes Constructor Name and Description
 
IlvAbstractView(left, top, width, height, namespace)
Method Summary
Method Attributes Method Name and Description
 
childrenToHTML(parentNode)
Creates the HTML for this component's children.
 
Returns the cursor of the view.
 
Returns the IlvGlassView that manages events for this IlvAbstractView.
 
Returns hitmap information
 
Gets the parameter "hitInfo" for hitmap request.
 
Returns the interactor of the view.
 
Handles Key press events
 
Handles Mouse down events.
 
Handles Mouse drag events.
 
Handles Mouse move events.
 
Handles Mouse out events.
 
Handles Mouse over events.
 
mouseUp(e)
Handles Mouse up events.
 
putHitInfoType(hitInfoType)
Puts the hitmap information type for hitmap request.
 
setAccessible(accessible)
Set whether this view is accessible or not.
 
Installs an additional request parameter that will be added to all requests.
 
setChildrenBounds(left, top, width, height)
Changes the size of this view's children.
 
setCursor(cursor)
Changes the cursor of the view.
 
setHitmapLayers(hitmapLayers)
Sets that layers need generating hitmap.
 
setInteractor(inter)
Changes the interactor of the view.
 
setScrollBarSize(scrollBarSize)
Sets the size of scroll bar.
 
Sets the state of scroll bar for view object.
Methods inherited from class IlvResizableView
getMaximumSize, getMinimumSize, isResizable, setHotkeys, setMaximumSize, setMinimumSize, setResizable, toHTML
Methods inherited from class IlvEmptyView
addSizeListener, getBounds, getHeight, getLeft, getLocation, getSize, getTop, getWidth, isStateInCookie, removeSizeListener, restoreState, saveState, setBounds, setLocation, setSize, setStateInCookie
Methods inherited from class IlvObject
dispose, getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility
Constructor Detail
IlvAbstractView
IlvAbstractView(left, top, width, height, namespace)
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.
namespace - An optional parameter to place the view in a namespace. This is useful when using IlvAbstractViews in multiple browser windows or in multiple frames of a frameset and the views must store cookies that should not conflict with each other. In this case, use the namespace to uniquely identify the views that belong to a specific browser window or frameset frame. For example, if you have created a new window with a unique name:

                    open(childPageURL, uniqueWindowName, ...);
you can then use the window name to define the namespace for views within the child page:

                    var view = new IlvAbstractView(..., window.name);
Method Detail
childrenToHTML
childrenToHTML(parentNode)
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.
Parameters:
parentNode

getCursor
getCursor()
Returns the cursor of the view.

getGlassView
getGlassView()
Returns the IlvGlassView that manages events for this IlvAbstractView.
Since:
JViews 8.1

getHitInfos
getHitInfos()
Returns hitmap information
Since:
JViews 8.8

getHitInfoTypes
getHitInfoTypes()
Gets the parameter "hitInfo" for hitmap request.
Since:
JViews8.8
Returns:
the "hitInfo" paramter value of hitmap request.

getInteractor
getInteractor()
Returns the interactor of the view.

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.

putHitInfoType
putHitInfoType(hitInfoType)
Puts the hitmap information type for hitmap request.
Parameters:
hitInfoType
Since:
JViews 8.8

setAccessible
setAccessible(accessible)
Set whether this view is accessible or not.
Parameters:
accessible

setAdditionalParameters
setAdditionalParameters(key, value)
Installs an additional request parameter that will be added to all requests. You can remove the parameters by passing the null value. Adding additional parameters might be useful when defining a new interactor that requires additional parameters. In this case you may set additional parameters before calling updateImage, and then remove the additional parameters. The parameter added will be &key=value.
Parameters:
key
value

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.

setHitmapLayers
setHitmapLayers(hitmapLayers)
Sets that layers need generating hitmap.
Parameters:
hitmapLayers - A string array which decide which layers need generate hitmap.
Since:
JViews 8.8

setInteractor
setInteractor(inter)
Changes the interactor of the view.
Parameters:
inter - An instance of IlvInteractor.

setScrollBarSize
setScrollBarSize(scrollBarSize)
Sets the size of scroll bar.
Parameters:
scrollBarSize
Since:
JViews 8.8

setScrollBarState
setScrollBarState(state)
Sets the state of scroll bar for view object. This state will specify if the IlvView object has scrollbar.
Parameters:
state - The state of scroll bars. 0:no scroll bars exist, 1:scroll bars appear as needed, 2:scroll bars always exist.
Since:
JViews 8.7

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