classafExplorer::HtmlViewer

sys::Obj
  afReflux::Panel
    afReflux::View
      afExplorer::HtmlViewer

(View) - A HTML viewer for HTTP and file resources.

normaliseBrowserUrl

Source

virtual Uri normaliseBrowserUrl(Uri resourceUri, Uri url)

Callback for normalising Browser URIs into Reflux URIs.

onLoad

Source

virtual Void onLoad(Event event)

Callback for when the Browser's page loads.

onStatusText

Source

virtual Void onStatusText(Event event)

Callback for when the Browser's status text changes.

onTitleText

Source

virtual Void onTitleText(Event event)

Callback for when the Browser's title text changes.

resolveResource

Source

virtual Obj resolveResource(Resource resource)

Hook for subclasses to convert the resource into either a URI or a Str. Returns resource.uri by default.

reuseView

Source

virtual override Bool reuseView(Resource resource)

Returns true.

scrollToId

Source

Void scrollToId(Str id)

Scrolls the page to an ID. Handy for when setting the HTML via the text attribute.

scrollToId("#myId")