มุมมองชั้นเรียน
คลาสนามธรรมสำหรับมุมมองทั้งหมด
ลายเซ็น
export abstract class View
รายละเอียด
เมธอด
ชื่อ |
คำอธิบาย |
getId() |
แสดงผล ViewId ของมุมมอง |
getLabel() |
(เลิกใช้งานแล้ว) |
setLabel(label) |
(เลิกใช้งานแล้ว) |
setMimeTypes(mimeTypes) |
ตั้งค่าประเภท MIME ที่รวมอยู่ในมุมมอง ใช้คอมมาคั่นระหว่างประเภท MIME หากจำเป็นต้องระบุมากกว่า 1 ประเภท หากคุณไม่ได้ตั้งค่าประเภท MIME ระบบจะแสดงไฟล์ประเภท MIME ทั้งหมดในมุมมอง |
setQuery(query) |
สำหรับมุมมองที่เกี่ยวข้องกับการค้นหา ให้ป้อนข้อความค้นหาเหล่านี้ล่วงหน้า |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-01-27 UTC
[null,null,["อัปเดตล่าสุด 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."]]],[]]