Skip to main content
PREV CLASS NEXT CLASS FRAMES NO FRAMES

 

Class IlvGanttTableView

IlvObject
   |
   +--IlvEmptyView
      |
      +--IlvResizableView
         |
         +--IlvAbstractView
            |
            +--IlvGanttComponentView
               |
               +--IlvGanttTableView

Category:
Gantt Chart component
JavaScript File:
IlvGanttView.js
Description:
An IlvGanttTableView is a DHTML component that displays an image of a Gantt chart table. The image is obtained from an IlvGanttServlet running on the server. You must call the setServletURL() method to set the URL of the servlet.

Constructor Summary
Constructor Attributes Constructor Name and Description
 
IlvGanttTableView(left, top, width, height, reload, namespace)
Method Summary
Method Attributes Method Name and Description
 
Adds a listener to be called when the image has scrolled horizontally.
 
Creates the HTTP request for capabilities.
 
createImageRequestURL(imageWidth, imageHeight)
Creates the URL for the image request.
 
Returns the horizontal scroll position of the image.
 
Returns the maximum horizontal scroll position.
 
Returns the IlvGanttTableSelectionManager for this view.
 
scrollTo(x, y)
Scrolls the table to the specified positions.
 
Sets the horizontal scroll positions.
 
Trims the view's current scroll values to be within the valid ranges determined by the capabilities.
Methods inherited from class IlvGanttComponentView
addCapabilitiesLoadListener, addErrorListener, addImageLoadingListener, addImageLoadListener, addImagePreloadListener, addInteractorListener, addTimeoutErrorListener, addVerticalScrollListener, childrenToHTML, dispose, getAgainParam, getBlendTransform, getCapabilities, getDateParam, getGanttView, getImageFormat, getImageScrollPosition, getMaxVerticalScrollPosition, getMessagePanel, getPopupMenu, getServletURL, getSiblingViews, getTimeoutErrorInterval, getUpdateImageOnResize, getUpdateInterval, getVerticalScrollPosition, getWaitingImage, init, isAutoUpdateCapabilities, isCapabilitiesLoaded, isImageLoaded, isVisible, keyDown, keyPress, keyUp, mouseDown, mouseDrag, mouseMove, mouseOut, mouseOver, mouseUp, onCapabilitiesLoaded, performAction, readAdditionalCapabilities, removeCapabilitiesLoadListener, removeErrorListener, removeImageLoadListener, removeImagePreloadListener, removeInteractorListener, removeTimeoutErrorListener, setAutoUpdateCapabilities, setBlendTransform, setChildrenBounds, setImageFormat, setImageScrollPosition, setMessagePanel, setPopupMenu, setServletURL, setTimeoutErrorInterval, setUpdateInterval, setVerticalScrollPosition, setVisible, setWaitingImage, startErrorTimer, startUpdateTimer, stopErrorTimer, stopUpdateTimer, timeoutError, updateAll, updateImage
Methods inherited from class IlvAbstractView
getCursor, getGlassView, getHitInfos, getHitInfoTypes, getInteractor, putHitInfoType, setAccessible, setAdditionalParameters, setCursor, setHitmapLayers, setInteractor, setScrollBarSize, setScrollBarState
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
getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility
Constructor Detail
IlvGanttTableView
IlvGanttTableView(left, top, width, height, reload, 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.
reload - An optional Boolean value that specifies whether the view should be initialized from a temporary cookie that persists for the current browser session. If omitted, the default value is false.
namespace - An optional parameter to place the view in a namespace. This is useful when using IlvGanttTableViews 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 IlvGanttTableView(..., window.name);
                  
Method Detail
addHorizontalScrollListener
addHorizontalScrollListener(listener)
Adds a listener to be called when the image has scrolled horizontally.
Parameters:
listener - The listener function, which must have the following parameter:
  1. view: The IlvGanttTableView.

createCapabilitiesRequestURL
createCapabilitiesRequestURL()
Creates the HTTP request for capabilities. Overriden to fix JV-6684.

createImageRequestURL
createImageRequestURL(imageWidth, imageHeight)
Creates the URL for the image request.
Parameters:
imageWidth - The width of the image.
imageHeight - The height of the image.

getHorizontalScrollPosition
getHorizontalScrollPosition()
Returns the horizontal scroll position of the image.

getMaxHorizontalScrollPosition
getMaxHorizontalScrollPosition()
Returns the maximum horizontal scroll position.

getSelectionManager
getSelectionManager()
Returns the IlvGanttTableSelectionManager for this view.

This manager allows to prevent an image query on each selection. It queries the server for selection updates and displays rectangles to represent the selection.

The most common use of this method are:

The selection manager is lazilly created. As a consequence, the current server selection is not shown on the client before a first call to this method.

Since:
JViews 8.0

scrollTo
scrollTo(x, y)
Scrolls the table to the specified positions.
Parameters:
x - The horizontal scroll position.
y - The vertical scroll position. When different from zero a query for a new image is sent to the server.

setHorizontalScrollPosition
setHorizontalScrollPosition(x)
Sets the horizontal scroll positions.
Parameters:
x - The horizontal scroll position.

trimScrollPosition
trimScrollPosition()
Trims the view's current scroll values to be within the valid ranges determined by the capabilities. This method is overridden here because the table view has a horizontal scroll position instead of a time scroll position.

©Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.