Library panel
Go to Property Listing | Method Listing
showAll, select, toSource, getElements, toSpecifier, addEventListener, removeEventListener
Application, Boolean, EventListeners, Events, Library, LibraryPanelViews, NothingEnum, Number, Object, SortAssets, String,
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
associatedLibrary |
readonly |
The library displayed in this LibraryPanel |
|
|
eventListeners |
readonly |
A collection of event listeners. |
|
|
events |
readonly |
A collection of events. |
|
|
index |
readonly |
The index of the LibraryPanel within its containing object. |
|
|
isValid |
readonly |
Returns true if the object specifier resolves to valid objects. |
|
|
name |
readonly |
The name of the LibraryPanel. |
|
|
parent |
readonly |
The parent of the LibraryPanel (a Application). |
|
|
properties |
read/write |
A property that allows setting of several properties at the same time. |
|
|
selection |
NothingEnum.NOTHING |
read/write |
The selected object(s). Can also accept: Object or NothingEnum enumerator. |
|
sortOrder |
SortAssets.BY_NAME SortAssets.BY_OLDEST SortAssets.BY_NEWEST SortAssets.BY_TYPE |
read/write |
The sort order of the assets in the LibraryPanel |
|
view |
LibraryPanelViews.LIST_VIEW LibraryPanelViews.THUMBNAIL_VIEW LibraryPanelViews.LARGE_THUMBNAIL_VIEW |
read/write |
LibraryPanel view |
|
visible |
read/write |
If true, the panel is visible. |
EventListener addEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Adds an event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The event type. |
|
|
handler |
Varies |
The event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
LibraryPanel getElements ()
Resolves the object specifier, creating an array of object references.
Boolean removeEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Removes the event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The registered event type. |
|
|
handler |
Varies |
The registered event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined select (selectableItems:Varies, [existingSelection:SelectionOptions=SelectionOptions])
Selects the specified object(s).
|
Parameter |
Type |
Description |
|---|---|---|
|
selectableItems |
Varies |
The objects to select. Can accept: Object, Array of Objects, NothingEnum enumerator or SelectAll enumerator. |
|
existingSelection |
SelectionOptions.ADD_TO SelectionOptions.REMOVE_FROM SelectionOptions.REPLACE_WITH SelectionOptions.SET_KEY |
The selection status of the LibraryPanel in relation to previously selected objects. (Optional) (default: SelectionOptions.REPLACE_WITH) |
undefined showAll ()
Show all assets
String toSource ()
Generates a string which, if executed, will return the LibraryPanel.
String toSpecifier ()
Retrieves the object specifier.