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, updateStatusRegionassignParent, assignParent, assignParents, getId, getLocalId, getParent, setId, setLocalId, setParentclearProperties, getKeys, getProperty, removeProperty, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearProperties, getId, getKeys, getProperty, removeProperty, setPropertypublic 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 AbstractPointsAndLevelHandlerprotected int checkLevelChange(ExecutionContext context, int currentLevel)
checkLevelChange in class AbstractPointsAndLevelHandlerprotected void initializeHandler(ExecutionContext context)
initializeHandler in class AbstractPointsAndLevelHandlerCopyright © 2012. All Rights Reserved.