Actuate JavaScript API classes : Class actuate.viewer.ScrollPanel

Class actuate.viewer.ScrollPanel

Description

A container for a scrolling content panel in a viewer. A ScrollPanel object enhances the viewer with scroll controls, such as mouse wheel scrolling.

Constructor

Syntax

actuate.Viewer.ScrollPanel( )

Constructs a new ScrollPanel object for the parent viewer enabled scroll controls.

Function summary

Table 4-45 lists actuate.viewer.ScrollPanel functions.

actuate.viewer.ScrollPanel.getMouseScrollingEnabled

Syntax

boolean ScrollPanel.getMouseScrollingEnabled( )

Returns True when mouse scrolling is enabled.

Returns

Boolean.

Example

This example displays an alert with the mouse scrolling status of a scroll panel.

alert("Mouse scrolling enabled: " + sPanel.getMouseScrollingEnabled( ));

actuate.viewer.ScrollPanel.getPanInOutEnabled

Syntax

boolean ScrollPanel.getPanInOutEnabled( )

Returns True when panning in and out is enabled.

Returns

Boolean.

Example

This example displays an alert with the mouse scrolling status of a scroll panel.

alert("Panning enabled: " + scrollPanel.getPanInOutEnabled( ));

actuate.viewer.ScrollPanel.getScrollControlEnabled

Syntax

boolean ScrollPanel.getScrollControlEnabled( )

Returns True when scrolling is enabled.

Returns

Boolean.

Example

This example displays an alert box with the scrolling status of ascroll panel.

alert("Scrolling enabled: " + sPanel.getScrollControlEnabled( ));

actuate.viewer.ScrollPanel.setMouseScrollingEnabled

Syntax

void ScrollPanel.setMouseScrollingEnabled(boolean enabled)

Enables mouse scrolling for this scroll panel.

Parameters

enabled

Boolean.

Example

To disable mouse scrolling for myScrollPanel, use code similar to the following:

sPanel.setMouseScrollingEnabled(false);

actuate.viewer.ScrollPanel.setPanInOutEnabled

Syntax

void ScrollPanel.setPanInOutEnabled(boolean enabled)

Enables panning in and out for this scroll panel.

Parameters

enabled

Boolean.

Example

To disable panning for the myScrollPanel object, use code similar to the following:

sPanel.setPanInOutEnabled(false);

actuate.viewer.ScrollPanel.setScrollControlEnabled

Syntax

void ScrollPanel.setScrollControlEnabled(boolean enabled)

Enables scrolling for this scroll panel.

Parameters

enabled

Boolean.

Example

To disable scrolling for myScrollPanel, use code similar to the following:

sPanel.setScrollControlEnabled(false);

(c) Copyright Actuate Corporation 2011