protected Object restoreChild(int index) {
final PageState master = (PageState) getMaster();
if (master == null)
{
return null;
}
final int max = getChildPos(index);
try
{
return this.restoreState(max, master);
}
catch (Exception rpe)
{
PageStateList.logger.debug("Caught exception while restoring a saved page-state", rpe);
throw new IllegalStateException ("Something went wrong while trying to restore the child #" + index);
}
}
Function to restore the state of a child after the child was garbage collected. |