org.olat.modules.scorm
Class ScormAPIandDisplayController

java.lang.Object
  extended by org.olat.core.gui.control.DefaultController
      extended by org.olat.core.gui.control.controller.BasicController
          extended by org.olat.core.gui.control.controller.MainLayoutBasicController
              extended by org.olat.modules.scorm.ScormAPIandDisplayController
All Implemented Interfaces:
CustomCSSProvider, Controller, ControllerEventListener, Disposable, MainLayoutController

public class ScormAPIandDisplayController
extends MainLayoutBasicController

Description:
Controller that handles the display of a single Scorm sco item and delegates the sco api calls to the scorm RTE backend. It provides also an navigation to navigate in the tree with "pre" "next" buttons.


Method Summary
 void event(UserRequest ureq, Component source, Event event)
          abstract event method for subclasses.
 void externalNodeClicked(TreeEvent te)
          Deprecated. @TODO To be deleted - does logging and would have to go via an event() method
 ScormCPManifestTreeModel getTreeModel()
           
 void setHeightPX(int height)
          Configuration method to use an explicit height for the iframe instead of the default automatic sizeing code.
 void showNavButtons(boolean showNavButtons)
          Configuration method to enable/disable the havigation buttons that appear on the right side above and below the content.
 void switchToPage(TreeEvent te)
           
 
Methods inherited from class org.olat.core.gui.control.controller.MainLayoutBasicController
dispose, getCustomCSS, setCustomCSS
 
Methods inherited from class org.olat.core.gui.control.DefaultController
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, getControllerCount, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.olat.core.gui.control.Controller
addControllerListener, dispatchEvent, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed
 

Method Detail

showNavButtons

public void showNavButtons(boolean showNavButtons)
Configuration method to enable/disable the havigation buttons that appear on the right side above and below the content. Default is set to true.

Parameters:
showNavButtons -

setHeightPX

public void setHeightPX(int height)
Configuration method to use an explicit height for the iframe instead of the default automatic sizeing code. If you don't call this method, OLAT will try to size the iframe so that no scrollbars appear. In most cases this works. If it does not work, use this method to set an explicit height.
Set 0 to reset to automatic behaviour.

Parameters:
height -

event

public void event(UserRequest ureq,
                  Component source,
                  Event event)
Description copied from class: DefaultController
abstract event method for subclasses. the event received from the component we are listening to are always rerouted to this method here, except when the component has been disposed, in which case the events are simply ignored.

See Also:
DefaultController.event(org.olat.core.gui.UserRequest, org.olat.core.gui.components.Component, org.olat.core.gui.control.Event)

switchToPage

public void switchToPage(TreeEvent te)
Parameters:
te - is an Event fired by clicking a node in a tree

getTreeModel

public ScormCPManifestTreeModel getTreeModel()
Returns:
the treemodel. (for read-only usage) Useful if you would like to integrate the menu at some other place

externalNodeClicked

public void externalNodeClicked(TreeEvent te)
Deprecated. @TODO To be deleted - does logging and would have to go via an event() method

Parameters:
te -