net.sf.jolene.dom
Class Button

java.lang.Object
  extended by net.sf.jolene.dom.HTMLElement
      extended by net.sf.jolene.dom.Button
All Implemented Interfaces:
java.lang.Cloneable, IAttributes, ICollection, IStyles

public final class Button
extends HTMLElement

A button in a html document using the button - not the input tag.

Since:
Nov 16, 2003
Author:
Dan Howard

Constructor Summary
Button()
          Default constructor.
Button(java.lang.String name)
          Construct a button with the specified name.
 
Method Summary
 Button clone()
          Returns a clone of the button object.
 void setName(java.lang.String name)
          Sets the name of the button.
 void setValue(java.lang.String value)
          Sets the value of the button.
 java.lang.String toString()
          Renders the button.
 
Methods inherited from class net.sf.jolene.dom.HTMLElement
clear, getAfterText, getAttribute, getBeforeText, getContent, getName, getStyle, getTag, getValue, hasAttribute, hasStyle, isChecked, isDisabled, isReadonly, isRenderable, keySet, removeAttribute, removeStyle, resetStyles, resetStyles, setAfterText, setAttribute, setBeforeText, setChecked, setContent, setDisabled, setReadonly, setRenderable, setStyle, setStyles, setStyles, swapWith
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Button

public Button(java.lang.String name)
Construct a button with the specified name.

Parameters:
name - name of the button.

Button

public Button()
Default constructor.

Method Detail

clone

public Button clone()
Returns a clone of the button object.

Overrides:
clone in class HTMLElement
Returns:
Button object.
See Also:
DocumentFactory

setName

public void setName(java.lang.String name)
Sets the name of the button.

Overrides:
setName in class HTMLElement
Parameters:
name - name of the button.

setValue

public void setValue(java.lang.String value)
Sets the value of the button.

Overrides:
setValue in class HTMLElement
Parameters:
value - value of the button.

toString

public java.lang.String toString()
Renders the button.

Overrides:
toString in class HTMLElement
Returns:
The button as a html string.