Phương thức DocsView.setIncludeFolders
Hiển thị thư mục trong các mục thành phần hiển thị. Không kết hợp với setOwnedByMe
. Khi bạn đặt setIncludeFolders(true)
, setOwnedByMe
sẽ bị bỏ qua.
Nếu bạn không đặt tuỳ chọn này, các thư mục sẽ không xuất hiện trong chế độ xem.
Chữ ký
setIncludeFolders(included: boolean): DocsView;
Thông tin chi tiết
Không bắt buộc |
Không |
Chung kết |
Không |
Được bảo vệ |
Không |
Tĩnh |
Không |
Thông số
Tên |
Loại |
Không bắt buộc |
Mô tả |
included |
boolean |
Không |
|
Giá trị trả về
DocsView
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-11-08 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-11-08 UTC."],[[["The `setIncludeFolders` method controls the display of folders within the view items, and if set to `true`, it overrides the `setOwnedByMe` setting."],["By default, folders are not displayed in the view unless you explicitly enable them using this method."],["This method is a non-final, non-protected, and non-static member of the `DocsView` class and accepts a boolean parameter indicating whether to include folders."],["Utilizing `setIncludeFolders`, developers can manipulate the visibility of folders within the `DocsView` and ultimately refine the user's document browsing experience."]]],["The `setIncludeFolders(included: boolean)` method controls folder visibility in the view items. Setting `included` to `true` displays folders; otherwise, folders are hidden. When `setIncludeFolders(true)` is applied, the `setOwnedByMe` setting is disregarded. This method returns a `DocsView` object, is non-optional, and requires a boolean `included` parameter to function. It is not a final, protected, or static method.\n"]]