ipygee.asset ============ .. py:module:: ipygee.asset .. autoapi-nested-parse:: The asset manager widget code and functionalities. Attributes ---------- .. autoapisummary:: ipygee.asset.ICON_STYLE Classes ------- .. autoapisummary:: ipygee.asset.AssetDialog ipygee.asset.AssetManager ipygee.asset.CreateFolderDialog ipygee.asset.DeleteAssetDialog ipygee.asset.MoveAssetDialog Module Contents --------------- .. py:class:: AssetDialog(asset = None) Bases: :py:obj:`ipyvuetify.Dialog` Initialize the class. .. py:method:: on_exit(*args) Exit without doing anything. .. py:method:: reload(asset) Reload the dialog with a new asset. .. py:attribute:: asset :type: ee.Asset The asset to delete .. py:attribute:: w_card .. py:attribute:: w_exit :type: ipyvuetify.Btn The exit button .. py:attribute:: w_title .. py:class:: AssetManager Bases: :py:obj:`ipyvuetify.Flex`, :py:obj:`ipygee.sidecar.HasSideCar` Initialize the class. .. py:method:: activate_buttons(change) Activate the appropriate buttons whenever the selected item changes. .. py:method:: get_items() Create the list of items inside a folder. .. py:method:: get_projects() Get the list of project accessible from the authenticated user. .. py:method:: on_copy(*args) Copy the selected item to clipboard. .. py:method:: on_delete(*args) Delete the selected item. Ask for confirmation before deleting via a dialog window. .. py:method:: on_item_select(change) Act when an item is clicked by the user. .. py:method:: on_move(*args) Copy the selected item. Ask for confirmation before moving via a dialog window. .. py:method:: on_new(*args) Create a new folder cia the dialog. .. py:method:: on_reload(*args) Reload the current folder. .. py:method:: on_view(*args) Open the view dialog. .. py:attribute:: folder :type: traitlets.Unicode The current folder that the user see .. py:attribute:: selected_item :type: traitlets.Unicode The selected item of the asset manager .. py:attribute:: sidecar_title :value: 'Assets' The title of the sidecar .. py:attribute:: template .. py:attribute:: w_asset_dialog :type: ipyvuetify.Dialog The dialog to view an asset .. py:attribute:: w_card :type: ipyvuetify.Card The card hosting the list of items .. py:attribute:: w_copy .. py:attribute:: w_create_dialog :type: ipyvuetify.Dialog The dialog to create a new folder .. py:attribute:: w_delete .. py:attribute:: w_delete_dialog :type: ipyvuetify.Dialog The dialog to confirm the deletion of an asset .. py:attribute:: w_list :type: ipyvuetify.List The list of items displayed in the asset manager .. py:attribute:: w_move .. py:attribute:: w_move_dialog :type: ipyvuetify.Dialog The dialog to confirm the move of an asset .. py:attribute:: w_new :type: ipyvuetify.Btn The new btn on the top of the asset manager .. py:attribute:: w_reload :type: ipyvuetify.Btn The reload btn at the top of the asset manager .. py:attribute:: w_search :type: ipyvuetify.Btn The search button to crowl into the existing items .. py:attribute:: w_selected :type: ipyvuetify.TextField The field where the user can see the asset Id of the selected item .. py:attribute:: w_view .. py:class:: CreateFolderDialog(asset = None) Bases: :py:obj:`ipyvuetify.Dialog` Initialize the class. .. py:method:: on_cancel(*args) Exit without doing anything. .. py:method:: on_confirm(*args) Confirm the deletion. .. py:method:: reload(folder) Reload the dialog with a new asset. .. py:attribute:: folder :type: ee.Asset The current folder where to create the new folder. .. py:attribute:: w_asset :type: ipyvuetify.TextField The destination to move .. py:attribute:: w_cancel :type: ipyvuetify.Btn The cancel button .. py:attribute:: w_card .. py:attribute:: w_confirm :type: ipyvuetify.Btn The confirm button .. py:class:: DeleteAssetDialog(asset = None) Bases: :py:obj:`ipyvuetify.Dialog` Initialize the class. .. py:method:: on_cancel(*args) Exit without doing anything. .. py:method:: on_confirm(*args) Confirm the deletion. .. py:method:: reload(asset) Reload the dialog with a new asset. .. py:attribute:: asset :type: ee.Asset The asset to delete .. py:attribute:: ul .. py:attribute:: w_cancel :type: ipyvuetify.Btn The cancel button .. py:attribute:: w_card .. py:attribute:: w_confirm :type: ipyvuetify.Btn The confirm button .. py:class:: MoveAssetDialog(asset = None) Bases: :py:obj:`ipyvuetify.Dialog` Initialize the class. .. py:method:: on_cancel(*args) Exit without doing anything. .. py:method:: on_confirm(*args) Confirm the deletion. .. py:method:: reload(asset) Reload the dialog with a new asset. .. py:attribute:: asset :type: ee.Asset The asset to delete .. py:attribute:: ul .. py:attribute:: w_asset :type: ipyvuetify.TextField The destination to move .. py:attribute:: w_cancel :type: ipyvuetify.Btn The cancel button .. py:attribute:: w_card .. py:attribute:: w_confirm :type: ipyvuetify.Btn The confirm button .. py:data:: ICON_STYLE The style to apply to each object