throws IOException, ProtocolException {
Pane pane = (Pane) abstractPaneInstance.getFormat();
// Get the attributes.
PaneAttributes attributes = abstractPaneInstance.getAttributes();
attributes.setPane(pane);
attributes.setFormat(pane.getParent());
// Get the module.
LayoutModule module = context.getLayoutModule();
module.writeOpenPane(attributes);
if (logger.isDebugEnabled()) {
logger.debug("Pane.writeOutput() for " + pane.getName());
}
// Write out the contents of the content buffer
OutputBuffer contentBuffer =
abstractPaneInstance.getCurrentBuffer(false);
// Write out the contents of this buffer, trim off any leading
// or trailing white space.
if (contentBuffer != null) {
module.writePaneContents(contentBuffer);
}
// Write out our pane postamble
attributes.setFormat(pane.getParent());
module.writeClosePane(attributes);
}