Class: AdaptiveMediaProgress

(abstract) AdaptiveMediaProgress()

Handles the actions of the configuration entry's progressbar.

Constructor

(abstract) new AdaptiveMediaProgress()

Source:

Extends

  • PortletBase

Members

(protected, static) _percentage :Number

Percentage of adapted images.
Type:
  • Number
Source:

(protected, static) _progressBarTooltip :String

The progress bar tooltip. If AdaptiveMediaProgress.tooltip is defined, this will be used.
Type:
  • String
Source:

(protected, static) _showLoadingIndicator :Boolean

If the loading indicator has to be shown near the progress bar.
Type:
  • Boolean
Source:

(protected, static) spritemap :String

The path to the SVG spritemap file containing the icons.
Type:
  • String
Source:

adaptedImages :Number

Number of adapted images in the platform.
Type:
  • Number
Source:

autoStartProgress :Number

Number of adapted images in the platform.
Type:
  • Number
Source:

disabled :Boolean

Indicates if the entry is disabled or not.
Type:
  • Boolean
Source:

intervalSpeed :Number

The interval (in milliseconds) on how often we will check the percentage of adapted images.
Type:
  • Number
Source:

percentageUrl :String

Url to the action that returns the percentage of adapted images.
Type:
  • String
Source:

tooltip :String

The tooltip text to show in the progress bar.
Type:
  • String
Source:

totalImages :Number

Number of images present in the platform.
Type:
  • Number
Source:

uuid :String

Configuration entry's uuid.
Type:
  • String
Source:

Methods

(protected) _clearInterval()

Clears the interval to stop sending ajax requests.
Source:

(protected) _getAdaptedImagesPercentage()

Sends an ajax request to obtain the percentage of adapted images and updates the progressbar.
Source:

(protected) _onProgressBarComplete()

Stops sending ajax request and hides the loading icon.
Source:

(protected) _updateProgressBar(progress)

Updates the progressbar
Parameters:
Name Type Description
progress Number progressbar value
Source:

created()

Source:

startProgress(backgroundTaskUrl)

It starts checking the percentage of adapted images by doing ajax request continously.
Parameters:
Name Type Description
backgroundTaskUrl String The background task that has to be invoked.
Source: