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.22 date: 2020/02/19 20:04:12
user: cg
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)

copyright

COPYRIGHT (c) 2006 by eXept Software AG 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:

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:46:09 GMT