eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Tools::NavigationHistory':

Home

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

Class: NavigationHistory (in Tools)


Inheritance:

   Object
   |
   +--Tools::NavigationHistory

Package:
stx:libtool
Category:
Interface-Browsers-New-History
Version:
rev: 1.20 date: 2017/03/29 11:05:31
user: stefan
file: Tools__NavigationHistory.st directory: libtool
module: stx stc-classLibrary: libtool

Description:


two variants:
    a forward-backward history, as in a browser:
        navigating backward moves a pointer in a list
    a global history
        navigating moves the navigated item to the front position

hack: configurable to behave either as a global history
      or as a local-tab navigation history.
Also implement backward compatible list-style access interface,
to support old browsers (I guess, this is temporary and the other 
users of the global history (debugger, old systembrowser etc. should
be changed)


Class protocol:

instance creation
o  new
(comment from inherited method)
return an instance of myself without indexed variables


Instance protocol:

accessing
o  addFirst: anEntry
list protocol

o  addLast: anEntry
list protocol

o  currentItem

o  currentItem: anObject

o  goBackItems
isEmpty ifTrue:[items] ifFalse:[items copyFrom:2]

o  goForwardItems

o  maxItemsInHistory: aNumber

backward list compatibility
o  collect: aBlock
backward compatible list protocol

o  collect: aBlock thenSelect: filter
backward compatible list protocol

o  detect: aBlock ifNone: exceptionalValue
backward compatible list protocol

o  do: aBlock
backward compatible list protocol

o  first
backward compatible list protocol

o  isEmpty
backward compatible list protocol

o  isEmptyOrNil
backward compatible list protocol

o  notEmpty
backward compatible list protocol

o  notEmptyOrNil
backward compatible list protocol

o  removeAll
backward compatible list protocol

o  removeIdentical: anEntry
backward compatible list protocol

o  reverseDo: aBlock
backward compatible list protocol

initialization
o  beGlobalHistory

o  initialize
Invoked when a new instance is created.

usage example(s):

super initialize.   -- commented since inherited method does nothing

menu & menu actions
o  clearHistory

o  goBackMenu

o  goForwardMenu

navigation
o  goBack

o  goForward

o  goTo: navigationHistoryItem
already in list

queries
o  canGoBack

o  canGoForward



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sat, 20 Apr 2024 08:31:24 GMT