org.qdwizard

Class Screen


public abstract class Screen
extends JPanel

A wizard screen
Author:
Bertrand Florat

Field Summary

HashMap
data

Constructor Summary

Screen()
Construct a screen

Method Summary

boolean
canCancel()
abstract String
getDescription()
Screen description (optional)
abstract String
getName()
Give here the step name.
String
getProblem()
Get current problem
Wizard
getWizard()
access to wizard instance
abstract void
initUI()
UI creation
void
onCancelled()
Called by wizard when the wizard is being cancelled.
void
onEnter()
Called by wizard before the screen is displayed.
void
onFinished()
Called by wizard when the wizard is closing because the Finish button was pressed.
boolean
onNext()
Called by wizard before the screen is left.
void
paint(java.awt.Graphics g)
void
setBgColor(Color bgColor)
void
setCanCancel(boolean b)
Set whether the cancel (or System menu close) button should be enabled
void
setCanFinish(boolean b)
Set whether the finish button should be enabled
void
setProblem(String sProblem)
Set a problem (set to null if problem is fixed)
void
setStateObserver(Observer ob)
void
setWizard(Wizard wizard)
called in wizard after cosntructing a new Screen instance
@Deprecated
void onLeave()
Called by wizard before the screen is left.

Field Details

data

public HashMap data

Constructor Details

Screen

public Screen()
Construct a screen
Parameters:

Method Details

canCancel

public boolean canCancel()

getDescription

public abstract String getDescription()
Screen description (optional)
Returns:
screen description

getName

public abstract String getName()
Give here the step name.
Returns:
screen name

getProblem

public String getProblem()
Get current problem
Returns:
the current problem

getWizard

public Wizard getWizard()
access to wizard instance
Returns:

initUI

public abstract void initUI()
UI creation

onCancelled

public void onCancelled()
Called by wizard when the wizard is being cancelled. Use this function to clean up (like stop any threads that this Screen might have created)

onEnter

public void onEnter()
Called by wizard before the screen is displayed. This happens only in forwardmode, which means onEnter won't be called when you return to a screen via the previous button.

onFinished

public void onFinished()
Called by wizard when the wizard is closing because the Finish button was pressed. Use this function to clean up (like stop any threads that this Screen might have created)

onNext

public boolean onNext()
Called by wizard before the screen is left. This happens only in forwardmode, which means onLeave won't be called when you leave the screen via the previous button.

Returns:
return true if the Wizard should display the next screen

paint

public void paint(java.awt.Graphics g)

setBgColor

public void setBgColor(Color bgColor)

setCanCancel

public void setCanCancel(boolean b)
Set whether the cancel (or System menu close) button should be enabled
Parameters:
b -

setCanFinish

public void setCanFinish(boolean b)
Set whether the finish button should be enabled
Parameters:
b -

setProblem

public void setProblem(String sProblem)
Set a problem (set to null if problem is fixed)
Parameters:
sProblem - Problem string or null if no more problem

setStateObserver

public void setStateObserver(Observer ob)

setWizard

public void setWizard(Wizard wizard)
called in wizard after cosntructing a new Screen instance
Parameters:
wizard -

void onLeave

public @Deprecated void onLeave()
Called by wizard before the screen is left. This happens only in forwardmode, which means onLeave won't be called when you leave the screen via the previous button.

Deprecated: use onNext()