org.qdwizard
Class Screen
public abstract class Screen
extends JPanel
A wizard screen
- For each wizard page, create a public Screen class. You have to implement initUI(), getDescription() and getName() abstract methods.
- getName() method should return the step name and getDescription() the step description (return null if no description needed).
- initUI() method contains graphical code for your screen. This method is automatically called from screen constructor so don't call it.
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.
|
Screen
public Screen()
Construct a screen
canCancel
public boolean canCancel()
getDescription
public abstract String getDescription()
Screen description (optional)
getName
public abstract String getName()
Give here the step name.
getProblem
public String getProblem()
Get current problem
getWizard
public Wizard getWizard()
access to wizard instance
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.
- 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
setCanFinish
public void setCanFinish(boolean b)
Set whether the finish button should be enabled
setProblem
public void setProblem(String sProblem)
Set a problem (set to null if problem is fixed)
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
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()