Classes


Class actuate.viewer.UIConfig

The UIConfig class specifies features availability.
Member of: actuate.viewer.

Class Summary
Constructor Attributes Constructor Name and Description
 
Specifies feature availability for the viewer.
Method Summary
Method Attributes Method Name and Description
 
Returns the content panel object.
 
Returns the showToc flag.
 
setContentPanel(contentPanel)
Sets the content panel for the viewer.
 
setShowToc(showToc)
Sets the showToc flag.
Class Detail
actuate.viewer.UIConfig()
Specifies feature availability for the viewer.

The constructor 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.
Method Detail
{actuate.viewer.BrowserPanel|actuate.viewer.ScrollPanel|null} getContentPanel()
Returns the content panel object.
For example, to retrieve and store the content panel from the viewer, use the following code:
  var contentpanel = viewer.getUIConfig( ).getContentPanel( );
Parameters:
{void}
Returns:
{actuate.viewer.BrowserPanel|actuate.viewer.ScrollPanel|null} contentPanel The content panel setting. A null value indicates a content panel configured with the browser scroll bar enabled.
See:
actuate.viewer.BrowserPanel
actuate.viewer.ScrollPanel

{boolean} getShowToc()
Returns the showToc flag. For example, to determine if the showtoc flag is set to true, use the following code:
  if (!viewer.getUIConfig( ).getShowToc( )){ ...} 
Parameters:
{void}
Returns:
{boolean} showToc

{void} setContentPanel(contentPanel)
Sets the content panel for the viewer. For example, to set the content panel to BrowserPanel if it is null, use the following code:
  var contentpanel = viewer.getUIConfig( ).getContentPanel( );
  if (contentpanel == null){
  	var newconfig = viewer.getUIConfig( );
  	newconfig.setContentPanel(new actuate.viewer.BrowserPanel( ));
  	viewer.setUIConfig(newconfig);
  }
Parameters:
{Object} contentPanel
Valid objects are actuate.viewer.BrowserPanel, actuate.viewer.ScrollPanel, and null. A null value sets a content panel configured with the browser scroll bar enabled.
Throws:
{actuate.viewer.ViewerException}
if the viewer is not in interactive mode
Returns:
{void}
See:
actuate.viewer.BrowserPanel
actuate.viewer.ScrollPanel

{void} setShowToc(showToc)
Sets the showToc flag. For example, to hide the Toc in the UI, use the following code:
  var newconfig = viewer.getUIConfig( );
  newconfig.setShowToc(false);
  viewer.setUIConfig(newconfig); 
Parameters:
{boolean} showToc
Returns:
{void}

Documentation generated by JsDoc Toolkit 2.0.1 on Tue Jan 29 2013 05:44:22 GMT-0800 (PST)