bstate.setRuntimeData(runtimeData);
context.setState(bstate);
}
public void renderXML(ContentHandler out) throws PortalException {
IUserLayoutNodeDescription node=getUserLayoutManager().getNode(editElementID);
String elType="folder";
if(node instanceof IUserLayoutChannelDescription) {
elType="channel";
}
// construct the descriptive XML
Document doc = DocumentFactory.getNewDocument();
Element edEl = doc.createElement("editelement");
Element typeEl = doc.createElement("type");
if (elType.equals("folder")) {
typeEl.appendChild(doc.createTextNode("folder"));
} else {
typeEl.appendChild(doc.createTextNode("channel"));
}
edEl.appendChild(typeEl);
Element nameEl = doc.createElement("name");
nameEl.appendChild(doc.createTextNode(node.getName()));
edEl.appendChild(nameEl);
// determine element type
if (elType.equals("folder")) {
// target is a folder
StructureStylesheetUserPreferences ssup = context.getUserPreferences().getStructureStylesheetUserPreferences();