Examples of MExpandPaneButton


Examples of com.bitmovers.maui.components.foundation.MExpandPaneButton

  // 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();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.