⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xp.ui.currentinfo.js

📁 ext-2.3.0
💻 JS
字号:
/*
 * Ext JS Library 0.30
 * Copyright(c) 2006-2009, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

Ext.ns('Xp','Xp.ui');

Xp.ui.CurrentInfo = Ext.extend(Ext.Panel, {
	tpl: Xp.ui.Templates.currentInfo,
	ctCls: 'xplayer-current',
	currInfo: {
		position: 0,
		length: 0
	},
	// this is applied into currInfo
	id3Info: {artist:'----------', songName: '----------'},
	afterRender: function() {
		Xp.ui.CurrentInfo.superclass.afterRender.apply(this, arguments);
		this.update(this.currInfo);
	},
	update: function(info) {
		Ext.apply(info, this.id3Info);
		this.tpl.overwrite(this.body, info);
	},
	setId3Info: function(id3Info) {
		this.id3Info.album = id3Info.album;
		this.id3Info.artist = id3Info.artist;
		this.id3Info.comment = id3Info.comment;
		this.id3Info.genre = id3Info.genre;
		this.id3Info.songName = id3Info.songName;
		this.id3Info.track = id3Info.track;
		this.id3Info.year = id3Info.year;
	}
});
Ext.reg('xp:ui:currentinfo', Xp.ui.CurrentInfo);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -