org.qdwizard

Class ScreenState


public class ScreenState
extends Observable

A screen state:

Constructor Summary

ScreenState()
Construct a ScreenState
ScreenState(boolean bCanGoNext, boolean bCanGoPrevious, boolean bCanCancel, boolean bCanFinish, String sProblem)
Construct a ScreenState

Method Summary

boolean
getCanCancel()
boolean
getCanFinish()
boolean
getCanGoNext()
boolean
getCanGoPrevious()
String
getProblem()
void
setCanCancel(boolean bCanCancel)
Set whether the cancel (or System menu close) button should be enabled
void
setCanFinish(boolean bCanFinish)
Set whether the finish button should be enabled
void
setCanGoNext(boolean bCanGoNext)
Set whether the next button should be enabled
void
setCanGoPrevious(boolean bCanGoPrevious)
Set whether the previous button should be enabled
void
setProblem(String sProblem)
Set a problem (set to null if problem is fixed)

Constructor Details

ScreenState

public ScreenState()
Construct a ScreenState

ScreenState

public ScreenState(boolean bCanGoNext,
                   boolean bCanGoPrevious,
                   boolean bCanCancel,
                   boolean bCanFinish,
                   String sProblem)
Construct a ScreenState
Parameters:
bCanGoNext - next button is enabled
bCanGoPrevious - previous button is enabled
bCanCancel - cancel button is enabled
bCanFinish - cancel button is enabled
sProblem - problem text

Method Details

getCanCancel

public boolean getCanCancel()
Returns:
Cancel button enabled

getCanFinish

public boolean getCanFinish()
Returns:
Finish button enabled

getCanGoNext

public boolean getCanGoNext()
Returns:
Next button enabled

getCanGoPrevious

public boolean getCanGoPrevious()
Returns:
Previous button enabled

getProblem

public String getProblem()
Returns:
Problem button enabled

setCanCancel

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

setCanFinish

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

setCanGoNext

public void setCanGoNext(boolean bCanGoNext)
Set whether the next button should be enabled
Parameters:
bCanGoNext -

setCanGoPrevious

public void setCanGoPrevious(boolean bCanGoPrevious)
Set whether the previous button should be enabled
Parameters:
bCanGoPrevious -

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