eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTMLDocumentViewerApplication':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: HTMLDocumentViewerApplication


Inheritance:

   Object
   |
   +--Model
      |
      +--ApplicationModel
         |
         +--HTMLDocumentViewerApplication

Package:
stx:libhtml
Category:
System-Documentation
Version:
rev: 1.37 date: 2022/12/06 14:22:44
user: cg
file: HTMLDocumentViewerApplication.st directory: libhtml
module: stx stc-classLibrary: libhtml

Description:


documentation to be added.


[instance variables:]

[class variables:]

copyright

COPYRIGHT (c) 2014 by Claus Gittinger All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

interface specs
o  windowSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

Usage example(s):

     UIPainter new openOnClass:HTMLDocumentViewerApplication andSelector:#windowSpec
     HTMLDocumentViewerApplication new openInterface:#windowSpec
     HTMLDocumentViewerApplication open

menu specs
o  extraMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.

Usage example(s):

     MenuEditor new openOnClass:HTMLDocumentViewerApplication andSelector:#extraMenu
     (Menu new fromLiteralArrayEncoding:(HTMLDocumentViewerApplication extraMenu)) startUp

o  fileMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.

Usage example(s):

     MenuEditor new openOnClass:HTMLDocumentViewerApplication andSelector:#fileMenu
     (Menu new fromLiteralArrayEncoding:(HTMLDocumentViewerApplication fileMenu)) startUp

o  mainMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.

Usage example(s):

     MenuEditor new openOnClass:HTMLDocumentViewerApplication andSelector:#mainMenu
     (Menu new fromLiteralArrayEncoding:(HTMLDocumentViewerApplication mainMenu)) startUp

o  navigationMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.

Usage example(s):

     MenuEditor new openOnClass:HTMLDocumentViewerApplication andSelector:#navigationMenu
     (Menu new fromLiteralArrayEncoding:(HTMLDocumentViewerApplication navigationMenu)) startUp

o  toolbarMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.

Usage example(s):

     MenuEditor new openOnClass:HTMLDocumentViewerApplication andSelector:#toolbarMenu
     (Menu new fromLiteralArrayEncoding:(HTMLDocumentViewerApplication toolbarMenu)) startUp

o  toolsMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.

Usage example(s):

     MenuEditor new openOnClass:HTMLDocumentViewerApplication andSelector:#toolsMenu
     (Menu new fromLiteralArrayEncoding:(HTMLDocumentViewerApplication toolsMenu)) startUp

o  viewMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.

startup-basic
o  openFullOnFile: aFilenameOrString anchor: localAnchor text: htmlText top: topDirectory extent: extent title: title buttonSpec: buttonSpec uriDisplay: showUri infoDisplay: showInfo


Instance protocol:

accessing
o  anchor: localAnchor

o  file: aFilenameOrStringOrURL
htmlView homeText:htmlText.

o  nameSpaceForExecution: aNameSpace

o  positionOnAnchor: localAnchor

o  showInfoDisplay: showInfo
self halt.

o  showUriDisplay: showUri

o  text: htmlText

o  topDirectory: topDirectory

aspects
o  editTextHolder

o  htmlTextHolder

o  infoLabelHolder

o  isEditingHolder

o  menuBackEnabledHolder

o  uriFieldVisibleHolder

o  uriHolder

o  uriInputHolder

change & update
o  scrollHtmlViewFromEditTextView
find the last element before that sourceposition

o  update: something with: aParameter from: changedObject
(comment from inherited method)
dependent is notified of some change -
Default is to try update:with:

o  updateHtmlTextFromEditor

initialization & release
o  closeRequest
This is a hook method generated by the Browser/CodeGeneratorTool.
It will be invoked when your app/dialog-window is about to be
closed (this method has a chance to suppress the close).
See also #closeDownViews, which is invoked when the close is really done.

Usage example(s):

The 'super closeRequest' at the end will initiate the real closeDown

o  initialize
(comment from inherited method)
nothing done here;
but can be redefined in concrete applications

o  postBuildHTMLView: aView

menu actions
o  doEditHtml: aBoolean
add an editor pane, to allow immediate editing

o  doSaveAs
This method was generated by the Browser/CodeGeneratorTool.
It will be invoked when the menu-item 'save/saveAs' is selected.

o  menuFileBrowserOnPageSource

o  menuGoBack

o  menuGotoStartPage

o  menuOpenSettings

o  menuOpenWebBrowserOnPage

o  menuPrint

o  menuReload

o  menuShowPageSource

o  openDocumentation
to open an HTML viewer on some document (under 'doc/online/<language>/' ):

Usage example(s):

self openDocumentationFile:'help//TOP.html'.

private queries
o  hasUnsavedChanges
Return true, if any unsaved changes are present
(i.e. the contents needs to be saved or else will be lost)


Examples:


Starting the application:
  HTMLDocumentViewerApplication open

more examples to be added:
  ... add code fragment for 
  ... executable example here ...


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 30 Dec 2024 17:24:51 GMT