* set the selected/checked attribute
*
* @param boolean Active?
+ *
+ * @return fluent interface
*/
public function setActive($active)
{
throw new Exception('BSPrinterElement::setActive() can only be used on elements of type checkbox, radio, or option');
}
$this->active = $active;
+ return $this;
}
// ###################################################################
* Sets the JavaScript onclick action
*
* @param string onClick attribute value
+ *
+ * @return fluent interface
*/
public function setOnClick($onClick)
{
$this->onClick = $onClick;
+ return $this;
}
// ###################################################################
* Sets the accesskey attribute value
*
* @param string Access key
+ *
+ * @return fluent interface
*/
public function setAccessKey($accessKey)
{
$this->accessKey = $accessKey;
+ return $this;
}
// ###################################################################
* Sets the name of the element
*
* @param string A new name
+ *
+ * @return fluent interface
*/
public function setName($name)
{
$this->name = $name;
+ return $this;
}
// ###################################################################