Class actuate.viewer.UIConfig
Description
The UIConfig class specifies feature availability for the viewer.
Constructor
Syntax
Generates a new UIConfig object to manage the content panel for the viewer. By default, the content panel is an actuate.viewer.ScrollPanel object with ScrollControl, PanInOut, and MouseScrolling enabled
Function summary
Table 4-47 lists actuate.viewer.UIConfig functions.
Table 4-47 actuate.viewer.UIConfig functionsactuate.viewer.UIConfig.getContentPanel
Syntax
Returns the content panel object.
Returns
Object. Valid objects are actuate.viewer.BrowserPanel, actuate.viewer.ScrollPanel, and null. A null value indicates a content panel configured with the browser scrollbar enabled.
Example
To retrieve and store the content pane from the viewer, use the following code:
var contentpane = viewer.getUIConfig( ).getContentPane( );actuate.viewer.UIConfig.getShowToc
Syntax
Returns
Example
To determine if the showtoc flag is set to true, use the following code:
if (!viewer.getUIConfig( ).getShowToc( )){ ...}actuate.viewer.UIConfig.setContentPanel
Syntax
Sets the content panel for the viewer.
Parameters
Object. Valid objects are actuate.viewer.BrowserPanel, actuate.viewer.ScrollPanel, and null. A null value sets a content panel configured with the browser scrollbar enabled.
Example
To set the content pane to BrowserPanel if it is null, use the following code:
var contentpane = viewer.getUIConfig( ).getContentPane( );actuate.viewer.UIConfig.setShowToc
Syntax
Parameters
Example
(c) Copyright Actuate Corporation 2011 |
![]() |