Class WebXAttribute

java.lang.Object
webx.WebXAttribute

public class WebXAttribute extends Object
Represents a single HTML attribute
 
 	<p style="color: red;"></p>
 
 
Attributes are used to add special user data to html elements for processing
  • Constructor Details

    • WebXAttribute

      public WebXAttribute(String key, String value)
      Creates a new attribute
       
       	<p style="color: red;"></p>
       
       
      style is a Key and the String value is the value in this case
      Parameters:
      key - Left side of the attribute, represents the data name
      value - Right side of the attribute, represents the value for the data
  • Method Details

    • render

      public String render()
      Combines the key and value into a valid HTML attribute
      Returns:
      A String representation of the attribute.