|
Class: NavigationHistory (in Tools)
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
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)
instance creation
-
new
-
(comment from inherited method)
return an instance of myself without indexed variables
accessing
-
addFirst: anEntry
-
list protocol
-
addLast: anEntry
-
list protocol
-
currentItem
-
-
currentItem: anObject
-
-
goBackItems
-
isEmpty ifTrue:[items] ifFalse:[items copyFrom:2]
-
goForwardItems
-
-
maxItemsInHistory: aNumber
-
backward list compatibility
-
collect: aBlock
-
backward compatible list protocol
-
collect: aBlock thenSelect: filter
-
backward compatible list protocol
-
detect: aBlock ifNone: exceptionalValue
-
backward compatible list protocol
-
do: aBlock
-
backward compatible list protocol
-
first
-
backward compatible list protocol
-
isEmpty
-
backward compatible list protocol
-
isEmptyOrNil
-
backward compatible list protocol
-
notEmpty
-
backward compatible list protocol
-
notEmptyOrNil
-
backward compatible list protocol
-
removeAll
-
backward compatible list protocol
-
removeIdentical: anEntry
-
backward compatible list protocol
-
reverseDo: aBlock
-
backward compatible list protocol
initialization
-
beGlobalHistory
-
-
initialize
-
Invoked when a new instance is created.
usage example(s):
super initialize. -- commented since inherited method does nothing
|
menu & menu actions
-
clearHistory
-
-
goBackMenu
-
-
goForwardMenu
-
navigation
-
goBack
-
-
goForward
-
-
goTo: navigationHistoryItem
-
already in list
queries
-
canGoBack
-
-
canGoForward
-
|