public class BoundaryPointsAndLevelHandler extends AbstractPointsAndLevelHandler
PointsAndLevelHandler.LevelListener, PointsAndLevelHandler.PointAdaptor
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_BOUNDARY_VALUE |
static String |
PROPERTY_CURRENT_LEVEL_TOTAL_POINTS |
startLevel, startMaxPoints, startMinPoints, startPoints, ZERO_POINTS
Constructor and Description |
---|
BoundaryPointsAndLevelHandler() |
Modifier and Type | Method and Description |
---|---|
protected int |
checkLevelChange(ExecutionContext context,
int currentLevel)
Compares the current level total value to the boundary value, and adapts the level accordingly.
|
protected void |
initializeHandler(ExecutionContext context) |
void |
setBoundaryValue(int value) |
protected void |
updateTotals(ExecutionContext context)
Overridden to also adapt the current level total
|
getDescription, informLevelChangeListeners, processExecutionPhase, processLevel, processPoints, setDescription, updateStatusRegion
assignParent, assignParent, assignParents, getId, getLocalId, getParent, setBeanName, setId, setLocalId, setParent
clearProperties, getKeys, getProperty, removeProperty, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearProperties, getId, getKeys, getProperty, removeProperty, setProperty
public static final String PROPERTY_CURRENT_LEVEL_TOTAL_POINTS
public static final String PROPERTY_BOUNDARY_VALUE
public void setBoundaryValue(int value)
protected void updateTotals(ExecutionContext context)
updateTotals
in class AbstractPointsAndLevelHandler
protected int checkLevelChange(ExecutionContext context, int currentLevel)
checkLevelChange
in class AbstractPointsAndLevelHandler
protected void initializeHandler(ExecutionContext context)
initializeHandler
in class AbstractPointsAndLevelHandler
Copyright © 2013. All Rights Reserved.