Package org.sakaiproject.portal.api
Class BaseEditor
- java.lang.Object
-
- org.sakaiproject.portal.api.BaseEditor
-
-
Constructor Summary
Constructors Constructor Description BaseEditor()BaseEditor(String id, String name, String editorUrl, String launchUrl)BaseEditor(String id, String name, String editorUrl, String launchUrl, String preloadScript)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetEditorUrl()Retrieve the URL of the Editor's primary script.StringgetId()Retrieve the unique identifier of this Editor.StringgetLaunchUrl()Retrieve the URL of the Sakai launch script for this Editor.StringgetName()Retrieve the formal name of this Editor.StringgetPreloadScript()Retrieve any inline script that should be run before loading this Editor.inthashCode()voidsetEditorUrl(String editorUrl)voidsetId(String id)voidsetLaunchUrl(String launchUrl)voidsetName(String name)voidsetPreloadScript(String preloadScript)
-
-
-
Method Detail
-
setId
public void setId(String id)
-
getId
public String getId()
Description copied from interface:EditorRetrieve the unique identifier of this Editor. The ID should be human readable and serves as the system selector for a given editor. It is suggested that the ID be all lower case, alphabetical with optional dashes. The EditorRegistry is case-insensitive for all IDs.
-
setName
public void setName(String name)
-
getName
public String getName()
Description copied from interface:EditorRetrieve the formal name of this Editor. The name of an editor includes any stylistic capitalization or spaces as appropriate for a label in an interface.
-
setEditorUrl
public void setEditorUrl(String editorUrl)
-
getEditorUrl
public String getEditorUrl()
Description copied from interface:EditorRetrieve the URL of the Editor's primary script. The Editor URL is what must be included for any number of editor instances to be used on a given page. If multiple files are required, this should be a loader.- Specified by:
getEditorUrlin interfaceEditor- Returns:
- The main script URL for this Editor.
-
setLaunchUrl
public void setLaunchUrl(String launchUrl)
-
getLaunchUrl
public String getLaunchUrl()
Description copied from interface:EditorRetrieve the URL of the Sakai launch script for this Editor. The Launch URL points to a script that implements the Sakai binding for an editor. This implementation allows UI toolkits to use a consistent interface for loading various editors.- Specified by:
getLaunchUrlin interfaceEditor- Returns:
- The launch script URL for this Editor.
-
setPreloadScript
public void setPreloadScript(String preloadScript)
-
getPreloadScript
public String getPreloadScript()
Description copied from interface:EditorRetrieve any inline script that should be run before loading this Editor. In some cases, an editor may depend on environmental setup before loading the main script file. This offers an opportunity to supply such pre-loading script as inline markup. It should not include any script or other tags as it is a script snippet. This will typically return null or an empty string, either of which will be handled by the portal.- Specified by:
getPreloadScriptin interfaceEditor- Returns:
- Any inline script that should be embedded before the Editor URL is loaded.
-
-