Detailed Description

The window.history API.

Public Member Functions

 History (Window window)
 
void back ()
 
void forward ()
 
void pushState (object state, string title)
 
void pushState (object state, string title, string url)
 
void replaceState (object state, string title)
 
void replaceState (object state, string title, string url)
 
void go (int delta)
 

Package Functions

void DocumentNavigated ()
 
void Ready ()
 

Properties

object state [get]
 The current history state object. More...
 
bool canGoBack [get]
 
bool canGoForward [get]
 
int length [get]
 

Private Member Functions

HistoryState CreateState (object state, string title, string url)
 
void LoadNow (HistoryState state)
 Loads the given state now. More...
 
void Dispatch ()
 
void Push (bool back, HistoryState state)
 

Private Attributes

Window window
 
HistoryState current
 The current history state. More...
 
List< HistoryStateback_
 Pages before the current one. More...
 
List< HistoryStateforward_
 Pages after the current one. More...
 

Constructor & Destructor Documentation

PowerUI.History.History ( Window  window)
inline

Member Function Documentation

void PowerUI.History.back ( )
inline
HistoryState PowerUI.History.CreateState ( object  state,
string  title,
string  url 
)
inlineprivate
void PowerUI.History.Dispatch ( )
inlineprivate
void PowerUI.History.DocumentNavigated ( )
inlinepackage
void PowerUI.History.forward ( )
inline
void PowerUI.History.go ( int  delta)
inline
void PowerUI.History.LoadNow ( HistoryState  state)
inlineprivate

Loads the given state now.

void PowerUI.History.Push ( bool  back,
HistoryState  state 
)
inlineprivate
void PowerUI.History.pushState ( object  state,
string  title 
)
inline
void PowerUI.History.pushState ( object  state,
string  title,
string  url 
)
inline
void PowerUI.History.Ready ( )
inlinepackage
void PowerUI.History.replaceState ( object  state,
string  title 
)
inline
void PowerUI.History.replaceState ( object  state,
string  title,
string  url 
)
inline

Member Data Documentation

List<HistoryState> PowerUI.History.back_
private

Pages before the current one.

HistoryState PowerUI.History.current
private

The current history state.

List<HistoryState> PowerUI.History.forward_
private

Pages after the current one.

Window PowerUI.History.window
private

Property Documentation

bool PowerUI.History.canGoBack
get
bool PowerUI.History.canGoForward
get
int PowerUI.History.length
get
object PowerUI.History.state
get

The current history state object.