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

Source

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

Source

virtual Image? icon()

An (optional) icon that represents this resource.

name

Source

abstract Str name()

The full name of this resource.

populatePopup

Source

virtual Menu populatePopup(Menu menu)

By populating an existing menu, it allows Panels to create the initial menu.

uri

Source

abstract Uri uri()

The URI that equates to this resource.

viewTypes

Source

virtual Type[] viewTypes()

The Views that may display this resource.

Defaults to empty list.