} else {
writer.write(" Key: " + key + " Value: <br />");
}
}
PortletURL url;
url = res.createActionURL();
url.setPortletMode(PortletMode.EDIT);
writer.write("<form method=\"POST\" action=\"" + url.toString() + "\"><br />");
writer.write("Update Preferences: <br />");
writer.write(" Key: <input type=\"text\" name=\"name\" size=\"16\" maxlength=\"16\">");
writer.write(" Value: <input type=\"text\" name=\"value\" size=\"32\" maxlength=\"32\">");
writer.write("<br /><input type=\"submit\" value=\"Update Preferences\"/>");
writer.write("</form>");
writer.write("<table><tr><td>Change Portlet Mode:</td>");
url = res.createRenderURL();
url.setPortletMode(PortletMode.EDIT);
this.writeLink(writer, url, "Edit");
url = res.createRenderURL();
url.setPortletMode(PortletMode.HELP);
this.writeLink(writer, url, "Help");
url = res.createRenderURL();
url.setPortletMode(PortletMode.VIEW);
this.writeLink(writer, url, "View");
writer.write("</tr><tr><td>Change Window Mode:</td>");
url = res.createRenderURL();
url.setWindowState(WindowState.MINIMIZED);
this.writeLink(writer, url, "Minimized");
url = res.createRenderURL();
url.setWindowState(WindowState.NORMAL);
this.writeLink(writer, url, "Normal");
url = res.createRenderURL();
url.setWindowState(WindowState.MAXIMIZED);
this.writeLink(writer, url, "Maximized");
writer.write("</tr></table>");
}