Expresso 5-5-0

com.jcorporate.expresso.services.html
Class Button

java.lang.Object
  extended bycom.jcorporate.expresso.services.html.HtmlElement
      extended bycom.jcorporate.expresso.services.html.Button

public class Button
extends HtmlElement

Button A button for an HTML form

Version:
$Revision: 1.7 $ $Date: 2004/03/06 11:14:58 $
Author:
Michael P. Nash

Field Summary
 
Fields inherited from class com.jcorporate.expresso.services.html.HtmlElement
attributes, contents, cSSClass, cSSID
 
Constructor Summary
Button()
          Constructor: No arguments constructor to be able to create a basic button & set options individually
Button(String newFieldName, String newFieldValue)
          Constructor
 
Method Summary
protected  void display(PrintWriter out, int depth)
          Implement the standard display method for this element
 
Methods inherited from class com.jcorporate.expresso.services.html.HtmlElement
add, display, finalize, getAttribute, getContentCount, getCSSClass, getName, padWithTabs, setAttribute, setCSSClass, setCSSID, setDisplayed, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Button

public Button()
       throws HtmlException
Constructor: No arguments constructor to be able to create a basic button & set options individually

Throws:
HtmlException - If the constructor fails

Button

public Button(String newFieldName,
              String newFieldValue)
       throws HtmlException
Constructor

Parameters:
newFieldName - Field name for the new button - must not be null
newFieldValue - Field value for the new button - must not be null
Throws:
HtmlException - If the initial parameters are invalid
Method Detail

display

protected void display(PrintWriter out,
                       int depth)
                throws HtmlException
Implement the standard display method for this element

Specified by:
display in class HtmlElement
Parameters:
out - A valid PrintWriter to which to send the output
depth - the number of tabs to indent
Throws:
HtmlException - If the button could not be properly displayed

Expresso 5-5-0

Please see www.jcorporate.com for information about new Expresso releases.