WizarDroid
Public Member Functions | Static Public Attributes | List of all members
org.codepond.wizardroid.WizardStep Class Reference

Inherits Fragment.

Public Member Functions

void onExit (int exitCode)
 
void onAttach (Activity activity)
 

Static Public Attributes

static final int EXIT_NEXT = 0
 
static final int EXIT_PREVIOUS = 1
 

Detailed Description

Base class for a wizard's step. Extend this class to create a step and override onExit(int) to handle input and do tasks before the wizard changes the current step. As with regular Fragment each inherited class must have an empty constructor.

Member Function Documentation

void org.codepond.wizardroid.WizardStep.onAttach ( Activity  activity)

IMPORTANT: This method is overridden to bind the wizard context to the step's fields. Make sure to call super.onAttach(activity), if you override this method in your step class.

void org.codepond.wizardroid.WizardStep.onExit ( int  exitCode)

Called when the wizard is about to go to the next step or the previous step. Override this method to handle input from the step. Possible exit codes are EXIT_NEXT and EXIT_PREVIOUS.

Parameters
exitCodeCode indicating whether the wizard is going to the next or previous step. The value would either be WizardStep.EXIT_NEXT when wizard is about to go to the next step or WizardStep.EXIT_PREVIOUS when wizard is about to go to the previous step.

Member Data Documentation

final int org.codepond.wizardroid.WizardStep.EXIT_NEXT = 0
static

Step exit code when wizard proceeds to the next step

final int org.codepond.wizardroid.WizardStep.EXIT_PREVIOUS = 1
static

Step exit code when wizard goes back one step


The documentation for this class was generated from the following file: