# Class e.p.d.m.DBTracksInAlbumViewMode(DBTracksViewMode):

Part of elisa.plugins.database.music_controller View In Hierarchy

Undocumented

Line # | Kind | Name | Docs
--- | --- | --- | ---
681 | Method | get_label | Return a text to display in a label to represent an item.

Inherited from DBTracksViewMode:

Line # | Kind | Name | Docs
--- | --- | --- | ---
644 | Method | get_sublabel | Return a text to display in a sublabel to represent an item.
663 | Method | get_default_image | Return the path of a theme resource to display as a default image for
668 | Method | get_image | Return the path to an image file to display as an image for an item.
673 | Method | get_preview_image | Return the path to an image file to display as a preview image for an

Inherited from Component (via DBTracksViewMode, TracksViewMode, GenericListViewMode):

Line # | Kind | Name | Docs
--- | --- | --- | ---
85 | Class | PathDescriptor | Undocumented
97 | Class Method | create | Create and initialize the component.
130 | Method | initialize | Initialize the component.
142 | Method | clean | Clean the component.

Inherited from Loggable (via DBTracksViewMode, TracksViewMode, GenericListViewMode, Component):

Line # | Kind | Name | Docs
--- | --- | --- | ---
81 | Method | __init__ | Undocumented

def get_label(self, item):
overrides elisa.plugins.database.music_controller.DBTracksViewMode.get_label

Return a text to display in a label to represent an item.

This call is asynchronous, it should return a `elisa.core.utils.cancellable_defer.CancellableDeferred` that, when triggered, returns the text of the label.

Parameters | item | a list item (type: a subclass of `elisa.core.components.model.Model` )
Returns | a cancellable deferred (type: `elisa.core.utils.cancellable_defer.CancellableDeferred` )