abstract classafReflux::Resource
sys::Obj afReflux::Resource
Resources are navigatable objects that may be represented by an URI. For example, the Explorer application has a FileResource
and a HttpResource
.
- displayName
virtual Str displayName()
A display name for the resource. File resources may show their OS specific variant rather than Fantom's canonical URI form.
Defaults to
uri.toStr
.- icon
virtual Image? icon()
An (optional) icon that represents this resource.
- name
abstract Str name()
The full name of this resource.
- populatePopup
virtual Menu populatePopup(Menu menu)
By populating an existing menu, it allows Panels to create the initial menu.
- uri
abstract Uri uri()
The URI that equates to this resource.
- viewTypes
virtual Type[] viewTypes()
The Views that may display this resource.
Defaults to empty list.