IlvObject | +--IlvEmptyView | +--IlvResizableView | +--IlvAbstractView | +--IlvGanttComponentView
IlvGanttComponentView
is the abstract base class of the DHTML
components that display an image of a Gantt chart subcomponent. The image is
obtained from an IlvGanttServlet
running on the server. You must
call the setServletURL()
method to set the URL of the servlet.
The class IlvInteractor
allows you to implement some
interaction on the view.Constructor Attributes | Constructor Name and Description |
---|---|
IlvGanttComponentView(comp, left, top, width, height, reload, namespace)
|
Method Attributes | Method Name and Description |
---|---|
addCapabilitiesLoadListener(listener)
Adds a listener to be called when the capabilities have been loaded.
|
|
addErrorListener(listener)
Adds a listener to be called when an error occurs during the current request
to the server.
|
|
addImageLoadingListener(listener)
Adds a listener to be called when the view has begun loading a new image.
|
|
addImageLoadListener(listener)
Adds a listener to be called when the view has loaded a new image.
|
|
addImagePreloadListener(listener)
Adds a listener to be called when the view has loaded a new image, but
before the new image is made visible.
|
|
addInteractorListener(listener)
Adds a listener to be called when an interactor has changed on the view.
|
|
addTimeoutErrorListener(listener)
Adds a listener to be called when a timeout has occurred during the current
request to the server.
|
|
addVerticalScrollListener(listener)
Adds a listener to be called when the image has scrolled vertically.
|
|
childrenToHTML(parentNode)
Creates the HTML for this component's children.
|
|
Creates the HTTP request for capabilities.
|
|
createImageRequestURL(imageWidth, imageHeight)
Creates the URL for the image request.
|
|
dispose()
Disposes of all resources being used by the view.
|
|
Returns a time stamp parameter for the requests.
|
|
Returns whether new images will be revealed by fading the previous image.
|
|
Queries the server for the capabilities.
|
|
getDateParam(name, date)
Returns a date parameter for the requests.
|
|
Returns the
IlvGanttView that is the parent of this view. |
|
Returns the image format used by the server to render this view's contents.
|
|
Returns the scroll position of this view's image on the client side.
|
|
Returns the maximum vertical scroll position.
|
|
Returns the message panel where the messages will be displayed
|
|
Returns the pop-up menu on set this view.
|
|
Returns the URL of the servlet as set using
setServletURL . |
|
Returns an array of the siblings of this view, or
null if this
view has no siblings. |
|
Returns the timeout interval for requests to the server, in seconds.
|
|
Returns whether the view should request a new image from the server based
upon the resize that has just occurred.
|
|
Returns the automatic update interval of the view, in seconds.
|
|
Returns the vertical scroll position of the image.
|
|
Returns the URL of the image used to show that the component is waiting for a
server response.
|
|
init()
Initializes the view.
|
|
Returns whether the automatic update will also update the capabilities.
|
|
Indicates if the capabilities have been loaded from the server.
|
|
Returns whether an image is loaded in the view.
|
|
Return the component view is visible or not.
|
|
keyDown(e)
Handles Key down events
|
|
keyPress(e)
Handles Key press events
|
|
keyUp(e)
Handles Key up 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.
|
|
onCapabilitiesLoaded(context)
This method is automatically invoked when the capabilities have been loaded
from the server.
|
|
performAction(actionName, params, udpateAll)
Performs an action on the server side.
|
|
readAdditionalCapabilities(context)
Reads additional information generated by the capabilities request.
|
|
removeCapabilitiesLoadListener(listener)
Removes a listener installed with
addCapabilitiesLoadListener . |
|
removeErrorListener(listener)
Removes a listener installed with
addErrorListener . |
|
removeImageLoadListener(listener)
Removes a listener installed with
addImageLoadListener . |
|
removeImagePreloadListener(listener)
Removes a listener installed with
addImagePreloadListener . |
|
removeInteractorListener(listener)
Removes a listener installed with
addInteractorListener . |
|
removeTimeoutErrorListener(listener)
Removes a listener installed with
addTimeoutErrorListener . |
|
When set to
true the automatic update will also update the
capabilities. |
|
setBlendTransform(set)
Sets whether new images will be revealed by fading the previous image.
|
|
setChildrenBounds(left, top, width, height)
Changes the size of this view's children.
|
|
setImageFormat(format)
Sets the image format used by the server to render this view's contents.
|
|
setImageScrollPosition(x, y)
Sets the scroll position of this view's image on the client side.
|
|
setMessagePanel(ilvHTMLPanel)
Sets the message panel where the message will be displayed
|
|
setPopupMenu(popupMenu)
Sets the pop-up menu on this view.
|
|
setServletURL(servletURL)
Sets the URL of the servlet that the view will send requests to.
|
|
setTimeoutErrorInterval(interval)
Sets the timeout interval for requests to the server.
|
|
setUpdateInterval(rate)
Sets the automatic update interval of the view.
|
|
Queries a new image showing the image scrolled to the specified vertical
position.
|
|
setVisible(visible)
Sets the component view is visible or not.
|
|
setWaitingImage(image)
Sets the URL of the image used to show that the component is waiting for a
server response.
|
|
Starts a timer for errors.
|
|
Starts the update timer.
|
|
Stops the error timer.
|
|
Stops the update timer.
|
|
This method is automatically invoked when a timeout error occurs during
a request to the server.
|
|
Trims the view's current time scroll and vertical scroll values to be within
the valid ranges determined by the capabilities.
|
|
Queries new capabilities and a new image from the server.
|
|
Queries the server for a new image.
|
getCursor, getGlassView, getHitInfos, getHitInfoTypes, getInteractor, putHitInfoType, setAccessible, setAdditionalParameters, setCursor, setHitmapLayers, setInteractor, setScrollBarSize, setScrollBarState |
getMaximumSize, getMinimumSize, isResizable, setHotkeys, setMaximumSize, setMinimumSize, setResizable, toHTML |
addSizeListener, getBounds, getHeight, getLeft, getLocation, getSize, getTop, getWidth, isStateInCookie, removeSizeListener, restoreState, saveState, setBounds, setLocation, setSize, setStateInCookie |
getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility |
false
.
IlvGanttComponentView
s 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:
you can then use the window name to define the namespace for views within the child page:open(childPageURL, uniqueWindowName, ...);
var view = new IlvGanttComponentView(..., window.name);
IlvGanttComponentView
.IlvGanttComponentView
.IlvGanttComponentView
.IlvGanttComponentView
.IlvGanttComponentView
.IlvGanttComponentView
.IlvInteractor
).IlvInteractor
).IlvGanttComponentView
.IlvGanttComponentView
.IlvGanttComponentView
's internal implementation and is not a
public API.
IlvObject.callDispose()
function on the onunload
event
of the page:
<body onunload="IlvObject.callDispose()">
true
.
onCapabilitiesLoaded
method is
automatically invoked. The default capabilities sent by the server side are
stored as the following instance variables of the view:
cap_tableWidth
- The total width of all table columns.cap_tableHeight
- The total height of all table rows.cap_tableHeaderHeight
- The height of the table header and
the time scale.
cap_rowHeight
- The height of each row.cap_rowCount
- The number of visible rows.cap_visibleTime
- The start of the visible interval as a
Date
object.
cap_minVisibleTime
- The minimum visible Date
allowed.
cap_maxVisibleTime
- The maximum visible Date
allowed.
cap_dataStartTime
- The start Date
of the
current Gantt data model.
cap_dataEndTime
- The end Date
of the
current Gantt data model.
IlvGanttServletSupport
class for an explanation of the capabilities format sent by the server side.
IlvGanttView
that is the parent of this view. This
method returns null
if this view has no parent.
getVerticalPosition
or
getVisibleInterval
methods that return the scroll position
of the component on the server side.
x
and y
.setServletURL
.
null
if this
view has no siblings. For example, if this view is an
IlvGanttTableView
that is a child of an
IlvGanttView
, this method will return a single element array
containing the Gantt view's IlvGanttSheetView
child.
IlvConstants.ilvImagePath + "wait.gif"
, where
IlvConstants.ilvImagePath = "script/images/"
.
onLoad
event of the page
containing the view.
readAdditionalCapabilities
method to store any additional
information sent by the server. The default capabilities sent by the server
side are stored as the following instance variables of the view:
cap_tableWidth
- The total width of all table columns.cap_tableHeight
- The total height of all table rows.cap_tableHeaderHeight
- The height of the table header and
the time scale.
cap_rowHeight
- The height of each row.cap_rowCount
- The number of visible rows.cap_visibleTime
- The start of the visible interval as a
Date
object.
cap_minVisibleTime
- The minimum visible Date
allowed.
cap_maxVisibleTime
- The maximum visible Date
allowed.
cap_dataStartTime
- The start Date
of the
current Gantt data model.
cap_dataEndTime
- The end Date
of the
current Gantt data model.
IlvGanttServletSupport
class for an explanation of the capabilities format sent by the server side.
IlvServerAction
interface and register the
action with an instance of IlvGanttServletSupport
. An action is
defined by a name and a list of parameters.
true
to update capabilities and the image,
false
to update only the image.
addCapabilitiesLoadListener
.
addErrorListener
.
addImageLoadListener
.
addImagePreloadListener
.
addInteractorListener
.
addTimeoutErrorListener
.
true
the automatic update will also update the
capabilities.
true
. This method is available only on
Internet Explorer and will be ignored on Netscape Communicator.
IlvGanttComponentView
's internal implementation and is not a
public API.
IlvGanttServletSupport.setImageEncoder
.
The default value is 'JPEG'.
setVerticalPosition
or
scrollTo
methods that query an image of a scrolled component
from the server.
IlvHTMLPanel
.
IlvConstants.ilvImagePath + "wait.gif"
, where
IlvConstants.ilvImagePath = "script/images/"
.