if ( typeStr.equals( "Frame" )) {
try {
Object constraint = layoutHelper.getConstraint( childNode.getAttribute( "constraint" ));
int preferredWidth = new Integer( childNode.getAttribute( "width" ) ).intValue();
int preferredHeight = new Integer( childNode.getAttribute( "height" ) ).intValue();
XContentHolder target;
if ( addFrames )
target = pageDisplay.addTarget( targetName, constraint,
preferredWidth,
preferredHeight,
params );
else {/** @todo set the target parameters for this new frame */
target = (XContentHolder)pageDisplay.findTarget( targetName );
target.setup( targetName, preferredWidth, preferredHeight, params );
}
if ( pageName != null ) {
target.setContent( pageName );
PageSupport targetPage = currentProject.getPageManager().loadPage( pageName );
pageDisplay.displayPage( targetPage, targetName );
}
}
catch ( NumberFormatException ex1 ) {