|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.gui.control.DefaultController
org.olat.core.commons.modules.singlepage.SinglePageController
public class SinglePageController
Description:
Wrapper controller that shows local html pages from the given folder / filename
| Constructor Summary | |
|---|---|
SinglePageController(UserRequest ureq,
WindowControl wControl,
boolean inIframe,
VFSContainer rootContainer,
java.lang.String fileName,
java.lang.String currentUri,
boolean allowRelativeLinks,
boolean showHomeLink)
|
|
SinglePageController(UserRequest ureq,
WindowControl wControl,
boolean inIframe,
VFSContainer rootContainer,
java.lang.String fileName,
java.lang.String currentUri,
boolean allowRelativeLinks,
boolean showHomeLink,
OLATResourceable contextResourcable)
Constructor for the generic single page controller. |
|
SinglePageController(UserRequest ureq,
WindowControl wControl,
boolean inIframe,
VFSContainer rootContainer,
java.lang.String fileName,
java.lang.String currentUri,
boolean allowRelativeLinks,
OLATResourceable ores)
Constructor for the generic single page controller. |
|
| Method Summary | |
|---|---|
void |
allowPageEditing()
When you call this method the edit mode will be enabled. |
Controller |
cloneController(UserRequest ureq,
WindowControl control)
|
void |
event(UserRequest ureq,
Component source,
Event event)
abstract event method for subclasses. |
void |
event(UserRequest ureq,
Controller source,
Event event)
the only method of the interface controllereventlistener. |
void |
setAllowDownload(boolean allow)
|
void |
setInternalLinkTreeModel(CustomLinkTreeModel customLinkTreeModel)
Set the internal link tree model that should be used in the HTML editor to display links |
void |
setScaleFactorAndHeight(float scaleFactor,
int displayHeight,
boolean hideOverflow)
Set a scale factor to enlarge / shrink the entire page. |
| Methods inherited from class org.olat.core.gui.control.DefaultController |
|---|
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, dispose, 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, dispose, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed |
| Constructor Detail |
|---|
public SinglePageController(UserRequest ureq,
WindowControl wControl,
boolean inIframe,
VFSContainer rootContainer,
java.lang.String fileName,
java.lang.String currentUri,
boolean allowRelativeLinks,
OLATResourceable ores)
You can call the allowPageEditing after this construtor to allow users to edit the page
folderPath - The course folder which contains the single page html fileinIframe - if true, the contents are rendered within an iframefileName - the relative filePath in the material folder starting with a slash, e.g. /welcome.html or /docu/info.htmlrootContainer - the root from which to resolve the files (like "the htdocs directory")currentUri - if not null, the start page is set to this uri (instead of the fileName arg). relative to the -corrected- rootcontainer if !allowRelativeLinksallowRelativeLinks - if true, an initial uri of /folder/a.html allows navigating till "/", if false, only
navigating in /folder/ and subfolders of this folder is allowed
public SinglePageController(UserRequest ureq,
WindowControl wControl,
boolean inIframe,
VFSContainer rootContainer,
java.lang.String fileName,
java.lang.String currentUri,
boolean allowRelativeLinks,
boolean showHomeLink)
ureq - wControl - inIframe - rootContainer - fileName - currentUri - allowRelativeLinks - showHomeLink -
public SinglePageController(UserRequest ureq,
WindowControl wControl,
boolean inIframe,
VFSContainer rootContainer,
java.lang.String fileName,
java.lang.String currentUri,
boolean allowRelativeLinks,
boolean showHomeLink,
OLATResourceable contextResourcable)
You can call the allowPageEditing after this construtor to allow users to edit the page
folderPath - The course folder which contains the single page html fileinIframe - if true, the contents are rendered within an iframefileName - the relative filePath in the material folder starting with a slash, e.g. /welcome.html or /docu/info.htmlrootContainer - the root from which to resolve the files (like "the htdocs directory")currentUri - if not null, the start page is set to this uri (instead of the fileName arg). relative to the -corrected- rootcontainer if !allowRelativeLinksallowRelativeLinks - if true, an initial uri of /folder/a.html allows navigating till "/", if false, only
navigating in /folder/ and subfolders of this folder is allowedshowHomeLink - true enables the home link icon and link which is added to the SP, false removes icon and link.| Method Detail |
|---|
public void allowPageEditing()
public void setAllowDownload(boolean allow)
public void event(UserRequest ureq,
Controller source,
Event event)
DefaultController
DefaultController.event(org.olat.core.gui.UserRequest, org.olat.core.gui.control.Controller, org.olat.core.gui.control.Event)
public void event(UserRequest ureq,
Component source,
Event event)
DefaultController
DefaultController.event(org.olat.core.gui.UserRequest, org.olat.core.gui.components.Component, org.olat.core.gui.control.Event)public void setInternalLinkTreeModel(CustomLinkTreeModel customLinkTreeModel)
customLinkTreeModel -
public Controller cloneController(UserRequest ureq,
WindowControl control)
cloneController in interface CloneableControllerCloneableController.cloneController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
public void setScaleFactorAndHeight(float scaleFactor,
int displayHeight,
boolean hideOverflow)
scaleFactor - > 0 or 1: don't scale; < 1: shrink page; > 1 enlarge page.displayHeight - > 0: size to fit; > 0: fixed size in pixelhideOverflow - true: don't show scroll-bars; false: default behavior with scroll-bars
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||