public class LocatorHistory
extends java.lang.Object
LocatorHistory is used to track browse history in Wandora. Whenever user opens a topic, topic's subject identifier is stored into LocatorHistory. Stored subject identifier is later acquired to restore a topic in browse history.
Arrow buttons in Wandora window are used to navigate browse history.
Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_MAX_SIZE |
private java.util.ArrayList<Tuples.T2<Locator,java.lang.Integer>> |
history |
private int |
index |
private int |
maxsize |
private int |
top |
Constructor and Description |
---|
LocatorHistory() |
LocatorHistory(int max)
Creates a new instance of History
|
Modifier and Type | Method and Description |
---|---|
void |
add(Locator o) |
void |
add(Locator o,
int pos) |
void |
clear() |
java.lang.Object[] |
getBackPopupStruct(Wandora admin) |
java.lang.Object[] |
getForwardPopupStruct(Wandora admin) |
java.util.Collection<Locator> |
getLocators() |
Tuples.T2<Locator,java.lang.Integer> |
getNext() |
Tuples.T2<Locator,java.lang.Integer> |
getPrevious() |
boolean |
isEmpty() |
Tuples.T2<Locator,java.lang.Integer> |
peekCurrent() |
Tuples.T2<Locator,java.lang.Integer> |
peekNext() |
Tuples.T2<Locator,java.lang.Integer> |
peekPrevious() |
void |
setCurrentViewPosition(int pos) |
private static final int DEFAULT_MAX_SIZE
private int index
private int top
private int maxsize
public LocatorHistory()
public LocatorHistory(int max)
public void clear()
public void setCurrentViewPosition(int pos)
public void add(Locator o)
public void add(Locator o, int pos)
public boolean isEmpty()
public java.util.Collection<Locator> getLocators()
public java.lang.Object[] getBackPopupStruct(Wandora admin)
public java.lang.Object[] getForwardPopupStruct(Wandora admin)
Copyright 2004-2015 Wandora Team