Class View
An abstract class for all views.
Signature
export abstract class View
Details
Methods
Name |
Description |
getId() |
Returns the ViewId of the view. |
getLabel() |
(Deprecated) |
setLabel(label) |
(Deprecated) |
setMimeTypes(mimeTypes) |
Sets the MIME types included in the view. Use commas to separate MIME types if more than one is required. If you don't set MIME types, files of all MIME types are displayed in the view. |
setQuery(query) |
For views involving searches, prepopulate the search query with these terms. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
[null,null,["Last updated 2025-01-27 UTC."],[[["`View` is an abstract class serving as the foundation for all views within the system, offering a blueprint for creating and managing visual components."],["It provides essential functionalities like retrieving the view's unique identifier (`getId()`), setting acceptable file types for display (`setMimeTypes()`), and pre-filling search queries (`setQuery()`)."],["Developers can extend this class to build specialized views with tailored functionalities, but it cannot be directly instantiated due to its abstract nature."]]],[]]