Class actuate.viewer.ScrollPanel
The ScrollPanel class represents a scrolling content panel.
Member of: actuate.viewer.
Constructor Attributes | Constructor Name and Description |
---|---|
A container for a scrolling content panel in a viewer, which includes the scroll panel control.
|
Method Attributes | Method Name and Description |
---|---|
Get Mouse Scrolling Enabled.
|
|
Get Scroll Control Enabled.
|
|
setMouseScrollingEnabled(enabled)
Enables Mouse Scrolling for this Scroll Panel.
|
|
setPanInOutEnabled(enabled)
Enables panning in and out for this scroll panel.To disable panning for the sPanel object, use code similar to the following:
sPanel.setPanInOutEnabled(false); |
Class Detail
actuate.viewer.ScrollPanel()
A container for a scrolling content panel in a viewer, which includes the scroll panel control. A ScrollPanel object enhances the viewer with scroll controls, such as mouse wheel scrolling.
Method Detail
{boolean} getMouseScrollingEnabled()
Get Mouse Scrolling Enabled. This example displays an alert with the mouse scrolling status of a scroll panel:
alert("Mouse scrolling enabled: " + sPanel.getMouseScrollingEnabled( ));
- Returns:
- {boolean} Returns true when mouse scrolling is enabled.
{boolean} getPanInOutEnabled()
Get Scroll Control Enabled. This example displays an alert with the panning in and out status of a scroll panel:
alert("Panning enabled: " + scrollPanel.getPanInOutEnabled( ));
- Returns:
- {boolean} Returns true when panning in and out is enabled.
{void} setMouseScrollingEnabled(enabled)
Enables Mouse Scrolling for this Scroll Panel. To disable mouse scrolling for sPanel, use code similar to the following:
sPanel.setMouseScrollingEnabled(false);
- Parameters:
- {boolean} enabled
- Boolean value to enbable Mouse Scrolling.
- Returns:
- {void}
{void} setPanInOutEnabled(enabled)
Enables panning in and out for this scroll panel.To disable panning for the sPanel object, use code similar to the following:
sPanel.setPanInOutEnabled(false);
- Parameters:
- {boolean} enabled
- Boolean value to enbable Pan In & Out.
- Returns:
- {void}