|
||||||||||
| 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.gui.control.controller.BasicController
org.olat.commons.file.filechooser.FileChooseCreateEditController
public class FileChooseCreateEditController
Description:
Use the setIframeEnabled for configuration of preview behaviour
| Field Summary | |
|---|---|
static Event |
ALLOW_RELATIVE_LINKS_CHANGED_EVENT
Event fired when configuration option to allow relative links has been changed |
static Event |
FILE_CHANGED_EVENT
Event fired when another file has been choosen (filename has changed) |
static Event |
FILE_CONTENT_CHANGED_EVENT
Event fired when the content of the file has been changed with the editor |
static java.lang.String[] |
INITIAL_ALLOWED_FILE_SUFFIXES
|
| Constructor Summary | |
|---|---|
FileChooseCreateEditController(UserRequest ureq,
WindowControl wControl,
java.lang.String chosenFile,
java.lang.Boolean allowRelativeLinks,
VFSContainer rootContainer)
|
|
FileChooseCreateEditController(UserRequest ureq,
WindowControl wControl,
java.lang.String chosenFile,
java.lang.Boolean allowRelativeLinks,
VFSContainer rootContainer,
java.lang.String target,
java.lang.String fieldSetLegend)
|
|
| Method Summary | |
|---|---|
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. |
java.lang.Boolean |
getAllowRelativeLinks()
|
java.lang.String |
getChosenFile()
|
void |
setAllFileSuffixesAllowed(boolean allowed)
All types of files are allowed. |
void |
setAllowedFileSuffixes(java.lang.String[] allowedFileSuffixes)
Setting supported file-suffix |
void |
setIframeEnabled(boolean iframeEnabled)
Settings for preview mode of selected file. |
void |
setShowHomeLink(boolean showHomeLink)
Setting for preview mode of selected file. |
| 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 |
| Field Detail |
|---|
public static final Event FILE_CHANGED_EVENT
public static final Event FILE_CONTENT_CHANGED_EVENT
public static final Event ALLOW_RELATIVE_LINKS_CHANGED_EVENT
public static java.lang.String[] INITIAL_ALLOWED_FILE_SUFFIXES
| Constructor Detail |
|---|
public FileChooseCreateEditController(UserRequest ureq,
WindowControl wControl,
java.lang.String chosenFile,
java.lang.Boolean allowRelativeLinks,
VFSContainer rootContainer,
java.lang.String target,
java.lang.String fieldSetLegend)
ureq - wControl - chosenFile - allowRelativeLinks - rootContainer - target - fieldSetLegend -
public FileChooseCreateEditController(UserRequest ureq,
WindowControl wControl,
java.lang.String chosenFile,
java.lang.Boolean allowRelativeLinks,
VFSContainer rootContainer)
ureq - wControl - chosenFile - allowRelativeLinks - rootContainer - | Method Detail |
|---|
public void event(UserRequest ureq,
Controller source,
Event event)
DefaultController
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 java.lang.String getChosenFile()
public java.lang.Boolean getAllowRelativeLinks()
public void setIframeEnabled(boolean iframeEnabled)
iframeEnabled - true: show content in iframe, false: show content embedded.public void setShowHomeLink(boolean showHomeLink)
showHomeLink - true enables the home link icon and linkpublic void setAllFileSuffixesAllowed(boolean allowed)
allowed - public void setAllowedFileSuffixes(java.lang.String[] allowedFileSuffixes)
allowedFileSuffixes - New list of allowed file-suffix e.g. html, htm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||