Class Param


@Bean(typeName="param") public class Param extends HtmlElementVoid
DTO for an HTML <param> element.

The param element defines parameters for an object element. It provides configuration data to the embedded content, such as Flash applications or other plugins. The name attribute specifies the parameter name, and the value attribute provides the parameter value.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple parameter Param param1 = param() .name("autoplay") .value("true"); // Parameter with constructor Param param2 = new Param("quality", "high"); // Parameters in an object Object_ object1 = object_() .data("video.swf") .type("application/x-shockwave-flash") .children( new Param("autoplay", "false"), new Param("loop", "true"), new Param("quality", "high") ); // Parameter with special characters Param param3 = param() .name("config") .value("width=800&height=600&theme=dark");

The following convenience methods are provided for constructing instances of this bean:

See Also: