sk.uniba.euromath.editor.wizards
Class MultiWizard.PageLocator

java.lang.Object
  extended by sk.uniba.euromath.editor.wizards.MultiWizard.PageLocator
All Implemented Interfaces:
Comparable<MultiWizard.PageLocator>
Enclosing class:
MultiWizard

protected class MultiWizard.PageLocator
extends Object
implements Comparable<MultiWizard.PageLocator>

Locates page.

Author:
Martin Vysny

Field Summary
protected  int pageIndex
          Index of requested page.
protected  IWizard wizard
          Wizard containing requested page.
protected  int wizardIndex
          Index of wizard, containing requested page.
 
Constructor Summary
protected MultiWizard.PageLocator(IWizard wizard, int wizardIndex, int pageIndex)
          Constructor.
 
Method Summary
 int compareTo(MultiWizard.PageLocator o)
           
 boolean equals(Object obj)
           
protected  MultiWizard.PageLocator getNext()
          Returns locator for next page.
protected  BaseWizardPage getPage()
          Returns the page instance.
protected  MultiWizard.PageLocator getPrevious()
          Returns locator for previous page.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

wizard

protected final IWizard wizard
Wizard containing requested page.


wizardIndex

protected final int wizardIndex
Index of wizard, containing requested page.


pageIndex

protected final int pageIndex
Index of requested page.

Constructor Detail

MultiWizard.PageLocator

protected MultiWizard.PageLocator(IWizard wizard,
                                  int wizardIndex,
                                  int pageIndex)
Constructor.

Parameters:
wizard - the wizard.
wizardIndex - index of the wizard in the wizards list.
pageIndex - index of requested page.
Method Detail

getPage

protected BaseWizardPage getPage()
Returns the page instance.

Returns:
the page instance.

compareTo

public int compareTo(MultiWizard.PageLocator o)
Specified by:
compareTo in interface Comparable<MultiWizard.PageLocator>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

getPrevious

protected MultiWizard.PageLocator getPrevious()
Returns locator for previous page.

Returns:
locator for previous page, or null if this locator is first.

getNext

protected MultiWizard.PageLocator getNext()
Returns locator for next page.

Returns:
locator for next page, or null if next page is not available/created/registered.


Copyright © 2003-2006 null. All Rights Reserved.