2015-01-23 13:09:30 +00:00
|
|
|
Htk.ColumnImage = new Class
|
|
|
|
({
|
|
|
|
Extends: Htk.Column
|
|
|
|
,Tag: 'htk-column-image'
|
|
|
|
,Properties:
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The directory where the images are allocated.
|
|
|
|
**/
|
|
|
|
directory:
|
|
|
|
{
|
|
|
|
type: String
|
2016-05-02 13:05:49 +00:00
|
|
|
,value: null
|
2015-01-23 13:09:30 +00:00
|
|
|
},
|
|
|
|
/**
|
2016-05-02 13:05:49 +00:00
|
|
|
* The subdirectory where the images are allocated.
|
2015-01-23 13:09:30 +00:00
|
|
|
**/
|
|
|
|
subdir:
|
|
|
|
{
|
|
|
|
type: String
|
|
|
|
,value: null
|
|
|
|
},
|
2015-08-21 14:13:21 +00:00
|
|
|
/**
|
2015-08-25 09:16:13 +00:00
|
|
|
* Subdirectory where full images are allocated.
|
2015-08-21 14:13:21 +00:00
|
|
|
**/
|
|
|
|
fullDir:
|
|
|
|
{
|
|
|
|
type: String
|
2016-05-02 13:05:49 +00:00
|
|
|
,value: null
|
2015-01-23 13:09:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
,initialize: function (props)
|
|
|
|
{
|
2015-11-26 12:30:04 +00:00
|
|
|
this._cssClass = 'cell-image';
|
2015-01-23 13:09:30 +00:00
|
|
|
this.parent (props);
|
|
|
|
}
|
|
|
|
|
|
|
|
,render: function (tr)
|
|
|
|
{
|
2016-05-02 13:05:49 +00:00
|
|
|
var image = new Htk.Image ({
|
|
|
|
directory: this.directory
|
|
|
|
,subdir: this.subdir
|
|
|
|
,fullDir: this.fullDir
|
|
|
|
,value: this.value
|
2015-12-15 16:08:24 +00:00
|
|
|
});
|
2015-01-23 13:09:30 +00:00
|
|
|
|
2016-05-02 13:05:49 +00:00
|
|
|
var td = this.parent (tr);
|
|
|
|
td.appendChild (image.getNode ());
|
|
|
|
return td;
|
2015-01-23 13:09:30 +00:00
|
|
|
}
|
|
|
|
});
|