// METHOD: render
// ----------------------------------------------------------------------
public String render(I_Renderable aRenderable)
{
MExpandPaneButton button = (MExpandPaneButton)aRenderable;
StringBuffer returnValue = new StringBuffer();
if (button.isOpen())
{
// Open
returnValue.append("<!-- MExpandPaneButton: Open,");
returnValue.append(button.getComponentID());
returnValue.append(" (start) -->\n");
returnValue.append("- <input type=\"submit\" name=\"");
returnValue.append(button.getComponentID());
returnValue.append("\" value=\"");
returnValue.append(HTMLCompositor.encodeHTML(button.getLabel()));
returnValue.append("\">\n");
returnValue.append("<!-- MExpandPaneButton: Open,");
returnValue.append(button.getComponentID());
returnValue.append(" (end) -->\n");
}
else
{
// Closed
returnValue.append("<!-- MExpandPaneButton: Closed,");
returnValue.append(button.getComponentID());
returnValue.append(" (start) -->\n");
returnValue.append("+ <input type=\"submit\" name=\"");
returnValue.append(button.getComponentID());
returnValue.append("\" value=\"");
returnValue.append(HTMLCompositor.encodeHTML(button.getLabel()));
returnValue.append("\">\n");
returnValue.append("<!-- MExpandPaneButton: Closed,");
returnValue.append(button.getComponentID());
returnValue.append(" (end) -->\n");
}
return returnValue.toString();
}