|
|
|
_appendEvents(
) :
void
register events and subscriptions
|
|
|
|
_changeUploader(
params
) :
void
Parameter |
Type |
Usage |
Description |
params |
|
required |
|
|
|
|
|
_hideErrorBubble(
targetElement
) :
void
Parameter |
Type |
Usage |
Description |
targetElement |
|
required |
|
|
|
|
|
_OnCancelSingleDialog(
evt
: event
) :
void
reset function of oneLineValueNode
resets value, hides the node and removes all connected events
Parameter |
Type |
Usage |
Description |
evt |
event |
required |
|
|
|
|
|
_OnCopyFilesFromDB(
evt
: event
) :
void
event function (click, copyDBImagesNode) - copies selected files to last selected dir in mediagallery
Parameter |
Type |
Usage |
Description |
evt |
event |
required |
|
|
|
|
|
_OnDeleteFiles(
) :
void
delete current selected files
lookup filenames
|
|
|
|
_OnDeleteFilesInline(
evt
) :
void
display confirmation dialog
Parameter |
Type |
Usage |
Description |
evt |
|
required |
|
|
|
|
|
_OnDeleteFolder(
evt
: event
) :
void
event function (click, deleteFolderButtonNode) - delete current directory
Parameter |
Type |
Usage |
Description |
evt |
event |
required |
|
|
|
|
|
_OnError(
errorData
: Errors:
) :
void
subscription to file store widget - display errors
Parameter |
Type |
Usage |
Description |
errorData |
Errors: |
required |
JsonData.error.data.Errors} |
|
|
|
|
_onFileListCreated(
opt
: object
) :
void
attach button events to file items
Parameter |
Type |
Usage |
Description |
opt |
object |
required |
source: this, length: elements.length } |
|
|
|
|
_OnNewFolder(
evt
: event
) :
void
event function (onclick, newFolderButtonNode) - initalize elements of "oneLineForm" (form to create a new folder)
Parameter |
Type |
Usage |
Description |
evt |
event |
required |
|
|
|
|
|
_OnNewFolderKeyUp(
evt
: event
) :
void
event function (keyup, oneLineFormNode) - trigger save function if enter key was pressed
Parameter |
Type |
Usage |
Description |
evt |
event |
required |
|
|
|
|
|
_OnPluginLinkClick(
pluginId
) :
void
Parameter |
Type |
Usage |
Description |
pluginId |
|
required |
|
|
|
|
|
_OnRenameFolder(
evt
: event
) :
void
event function (click, renameFolderButtonNode) - initalize elements of "oneLineForm" (form to rename current folder)
Parameter |
Type |
Usage |
Description |
evt |
event |
required |
|
|
|
|
|
_OnRenameFolderKeyUp(
evt
: event
) :
void
event function (keyup, oneLineFormNode) - trigger save function if enter key was pressed
Parameter |
Type |
Usage |
Description |
evt |
event |
required |
|
|
|
|
|
_OnSaveNewFolder(
evt
: event
) :
void
creates a new directory
Parameter |
Type |
Usage |
Description |
evt |
event |
required |
|
|
|
|
|
_OnSaveRenameFolder(
evt
: event
) :
void
event function (click, renameFolderButtonNode) - rename current directory
save
Parameter |
Type |
Usage |
Description |
evt |
event |
required |
|
|
|
|
|
_OnSelectDB(
opt
) :
void
sets the current image db directory and shows the right action links
Parameter |
Type |
Usage |
Description |
opt |
|
required |
|
|
|
|
|
_OnSelectFileList(
opt
) :
void
subscription to fileListWidget - publish that files
Parameter |
Type |
Usage |
Description |
opt |
|
required |
|
|
|
|
|
_OnSelectFileTree(
opt
: Object
) :
void
sets the current directory and shows the right action links
Parameter |
Type |
Usage |
Description |
opt |
Object |
required |
node:node, currentDirectory: directory} |
|
|
|
|
_OnSuccess(
callerData
) :
void
hides the error bubble
An action resulted in an error in the first place. A second
user action then leads to success, so no more error should be indicated.
Parameter |
Type |
Usage |
Description |
callerData |
|
required |
|
|
|
|
|
_OnUploadFinish(
opt
: object
) :
void
subscription to upload widget (upload finished) - refresh file list
Parameter |
Type |
Usage |
Description |
opt |
object |
required |
result: this._filesUploaded } |
|
|
|
|
_registerPlugins(
) :
void
|
|
|
|
_removeDialogErrorLineValueNode(
) :
void
event function (keyup change, oneLineValueNode) -remove css error class and error message from onLineValueNode
|
|
|
|
_replaceDirectoryName(
directoryName
: string
) :
void
replaces "MediaGallery" and "ImageDb" with translations
Parameter |
Type |
Usage |
Description |
directoryName |
string |
required |
|
|
|
|
|
_selectFileByName(
fileName
) :
void
Parameter |
Type |
Usage |
Description |
fileName |
|
required |
|
|
|
|
|
_setCurrentDirectory(
opt
: object
) :
void
updates the currentDirectoryNode (insert current directory)
Parameter |
Type |
Usage |
Description |
opt |
object |
required |
|
|
|
|
|
_showErrorBubble(
captionText
: string
elementLocation
: string
) :
void
shows an error bubble below oneLineValueNode
Displays an error bubble at the location of the error throwing dom element containing the
given captionText. If the parameter elementLocation is set to 'store' the function displays
the bubble for the file store - otherwise for the directory tree.
Parameter |
Type |
Usage |
Description |
captionText |
string |
required |
|
elementLocation |
string |
required |
|
|
|
|
|
_showImageDb(
) :
void
|
|
|
|
_showMediagallery(
) :
void
|
|
|
|
_showMediagalleryContent(
) :
void
|
|
|
|
_updateMultiselectTip(
) :
void
show or hide multi select hint
|
|
|
|
buildRendering(
) :
void
Construct the UI for this widget from a template, setting this.domNode.
Lookup cached version of template, and download to cache if it
isn't there already. Returns either a DomNode or a string, depending on
whether or not the template contains ${foo} replacement parameters.
|
|
|
|
changeOpener(
opener
) :
void
Parameter |
Type |
Usage |
Description |
opener |
|
required |
|
|
|
|
|
constructor(
) :
void
|
|
|
|
createNodesFromText(
text
: String
) :
void
Parameter |
Type |
Usage |
Description |
text |
String |
required |
|
|
|
|
|
getCachedTemplate(
templatePath
: String
templateString
: String
alwaysUseString
translation
) :
void
static method to get a template based on the templatePath or
templateString key
Parameter |
Type |
Usage |
Description |
templatePath |
String |
required |
the URL to get the template from. dojo.uri.Uri is often passed as well. |
templateString |
String |
optional |
a string to use in lieu of fetching the template from a URL |
alwaysUseString |
|
required |
|
translation |
|
required |
|
|
|
|
|
getSelectedItems(
) :
void
|
|
|
|
getTranslationName(
) :
void
return the translation file name (without locale and .xml)
convert this.templatePath to this.translationName of translation name is null
Examples
|
|
|
|
onApply(
) :
void
|
|
|
|
openRootFolder(
) :
void
simulate click on root node
|
|
|
|
pluginActive(
) :
void
|
|
|
|
postCreate(
) :
void
initalize widget - append events, adjust properites
|
|
|
|
postMixInProperties(
) :
void
initalize values - adjust properites
|
|
|
|
setFileTypes(
fileTypes
: String
) :
void
Parameter |
Type |
Usage |
Description |
fileTypes |
String |
required |
|
|
|
|
|
showMediagallery(
) :
void
|
|
|
|
showMediagalleryContent(
) :
void
|
|
|
|
showMediagalleryLeftBox(
) :
void
|
|
|
|
startup(
) :
void
load files of base folder
|
|
|
|
translate(
key
: String
vars
: Object
) :
void
Parameter |
Type |
Usage |
Description |
key |
String |
required |
|
vars |
Object |
optional |
|
|