Class FormProperties

FormProperties

public class FormProperties

Class representing the properties of the form. Encapsulates the attributes that define a form, including the method and action attributes.


Constructor Summary
FormProperties(var $method, var $action)
          Constructs a FormProperties.
 
Method Summary
 java.lang.String getAction()
          Gets the action attribute of the object.
 java.lang.String getActionPair()
          Returns the action attribute as a HTML key-value pair.
 java.lang.String getMethod()
          Gets the method attribute of the object.
 java.lang.String getMethodPair()
          Returns the method attribute as a HTML key-value pair.
 void setAction(var $action)
          Sets the action attribute to the specified value.
 void setMethod(var $method)
          Sets the method attribute to the specified value.
 

Constructor Detail

FormProperties

public FormProperties(var $method,
                      var $action)
Constructs a FormProperties. Will set the method and action to the given values.
Parameters:
$method - String specifying the method attribute
$action - String specifying the action attribute
$method - Default Value: ""
$action - Default Value: ""
Method Detail

getMethodPair

public java.lang.String getMethodPair()
Returns the method attribute as a HTML key-value pair.

getActionPair

public java.lang.String getActionPair()
Returns the action attribute as a HTML key-value pair.

getMethod

public java.lang.String getMethod()
Gets the method attribute of the object.

getAction

public java.lang.String getAction()
Gets the action attribute of the object.

setMethod

public void setMethod(var $method)
Sets the method attribute to the specified value.
Parameters:
$method - String specifying the method attribute

setAction

public void setAction(var $action)
Sets the action attribute to the specified value.
Parameters:
$action - String specifying the action attribute