MAF.system.BaseView
This component implements the basics for a view.
new MAF.system.BaseView()
The following properties are used in views:
- this.config - properties passed at initiation
- this.persist - Persistant storage for when the view gets reloaded.
- this.cache - For storage of temporary data.
- this.controls - References to view controls that will have state saving.
- this.elements - References to view controls without state saving.
Methods
createView() virtual
View creation method that must be implemented (or overridden) by objects that inherit the member.
destroyView() virtual
View destruction method that can be implemented (or overridden) by objects that inherit the member.
freeze() → {Class} inherited
Freezes this component. Screen renders no longer trigger until thawed.
Returns:
This component.
getAbsolutePosition() → {Object} inherited
Give back the position relative to its first positioned ancestor element
Returns:
{hOffset:Number, vOffset: Number}
getView() → {Class} inherited
Returns:
Returns the view this class is appended on.
hide() → {Class} inherited
Hides this component.
Returns:
This component.
hideView() virtual
View hide method that can be implemented (or overridden) by objects that inherit the member.
initialize() inherited
Initialize the class
initView() virtual
View initialization method that can be implemented (or overridden) by objects that inherit the member.
registerMessageCenterListenerCallback()
Register a function for callback on MAF.messages.
Example
The below example will add 2 streams to the media entry both having a bitrate of 1000
new MAF.media.PlaylistEntry({ bitrate: 1000, streams: [ { url: 'http://my.url/video1.mp4' }, { url: 'http://my.url/video2.mp4' } ] });registerMessageCenterListenerControl()
Register a component for callback on MAF.messages.
Example
The below example will add 2 streams to the media entry both having a bitrate of 1000
new MAF.media.PlaylistEntry({ bitrate: 1000, streams: [ { url: 'http://my.url/video1.mp4' }, { url: 'http://my.url/video2.mp4' } ] });selectView() virtual
View has gained focus method that can be implemented (or overridden) by objects that inherit the member.
show() → {Class} inherited
Shows this component.
Returns:
This component.
thaw() → {Class} inherited
Thawes this component. Screen renders can trigger again.
Returns:
This component.
unselectView() virtual
View has lost focus method that can be implemented (or overridden) by objects that inherit the member.
updateView() virtual
View update method that can be implemented (or overridden) by objects that inherit the member.
Events
onAnimationEnded
Fired when a animation on this component has ended.
onAppend
Fired when component has appended to a parent. Update visual appearances by applying a Theme style and rendering the skin.