FileManager
manage files/assets of the patch
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Private Members | ||
private |
_filePortEle: * |
|
private |
|
|
private |
_filePortOp: * |
|
private |
_fileSource: * |
|
private |
_files: *[] |
|
private |
_filterType: * |
|
private |
_firstTimeOpening: boolean |
|
private |
_log: * |
|
private |
_manager: * |
|
private |
_order: * |
|
private |
_orderReverse: boolean |
|
private |
|
Method Summary
Public Methods | ||
public |
|
|
public |
refresh() |
|
public |
reload(cb: *) |
|
public |
selectFile(filename: *) |
|
public |
setDetail(detailItems: *) |
|
public |
setDisplay(type: *) |
|
public |
setFilePort(portEle: *, op: *, previewEle: *) |
|
public |
setFilter(f: *) |
|
public |
setFilterType(f: *) |
|
public |
setOrder(o: *) |
|
public |
setSource(s: *, cb: *) |
|
public |
show(userInteraction: *) |
|
public |
updateHeader(detailItems: *) |
|
public |
uploadFile(filename: *, content: *, cb: *) |
Private Methods | ||
private |
_buildHtml(o: *) |
|
private |
_compareFilter(file: *, filterType: *): boolean |
|
private |
_createItem(items: *, file: *, filterType: *) |
|
private |
_getFilesFromSource(source: *, cb: *) |
|
private |
_selectFile(filename: *) |
Public Constructors
public constructor() source
Private Members
private _filePortEle: * source
private _filePortElePreview: * source
private _filePortOp: * source
private _fileSource: * source
private _files: *[] source
private _filterType: * source
private _firstTimeOpening: boolean source
private _log: * source
private _manager: * source
private _order: * source
private _orderReverse: boolean source
private _refreshDelay: * source
Public Methods
public createFile() source
public refresh() source
public reload(cb: *) source
Params:
Name | Type | Attribute | Description |
cb | * |
public selectFile(filename: *) source
Params:
Name | Type | Attribute | Description |
filename | * |
public setDetail(detailItems: *) source
Params:
Name | Type | Attribute | Description |
detailItems | * |
public setDisplay(type: *) source
Params:
Name | Type | Attribute | Description |
type | * |
public setFilePort(portEle: *, op: *, previewEle: *) source
Params:
Name | Type | Attribute | Description |
portEle | * | ||
op | * | ||
previewEle | * |
public setFilter(f: *) source
Params:
Name | Type | Attribute | Description |
f | * |
public setFilterType(f: *) source
Params:
Name | Type | Attribute | Description |
f | * |
public setOrder(o: *) source
Params:
Name | Type | Attribute | Description |
o | * |
public setSource(s: *, cb: *) source
Params:
Name | Type | Attribute | Description |
s | * | ||
cb | * |
public show(userInteraction: *) source
Params:
Name | Type | Attribute | Description |
userInteraction | * |
public updateHeader(detailItems: *) source
Params:
Name | Type | Attribute | Description |
detailItems | * |
public uploadFile(filename: *, content: *, cb: *) source
Params:
Name | Type | Attribute | Description |
filename | * | ||
content | * | ||
cb | * |
Private Methods
private _buildHtml(o: *) source
Params:
Name | Type | Attribute | Description |
o | * |
private _compareFilter(file: *, filterType: *): boolean source
Params:
Name | Type | Attribute | Description |
file | * | ||
filterType | * |
Return:
boolean |
private _createItem(items: *, file: *, filterType: *) source
Params:
Name | Type | Attribute | Description |
items | * | ||
file | * | ||
filterType | * |
private _getFilesFromSource(source: *, cb: *) source
Params:
Name | Type | Attribute | Description |
source | * | ||
cb | * |
private _selectFile(filename: *) source
Params:
Name | Type | Attribute | Description |
filename | * |