Interface Data<E extends Element<?,?,E> & Data<E>>

Type Parameters:
E - This element type
All Known Subinterfaces:
GlobalAttributes<E>
All Known Implementing Classes:
AnyA, AnyABBR, AnyADDRESS, AnyAREA, AnyARTICLE, AnyASIDE, AnyB, AnyBASE, AnyBDI, AnyBDO, AnyBLOCKQUOTE, AnyBODY, AnyBR, AnyCAPTION, AnyCITE, AnyCODE, AnyCOL, AnyCOLGROUP, AnyDATA, AnyDATALIST, AnyDD, AnyDEL, AnyDFN, AnyDIV, AnyDL, AnyDT, AnyEM, AnyFOOTER, AnyFORM, AnyH, AnyH1, AnyH2, AnyH3, AnyH4, AnyH5, AnyH6, AnyHEAD, AnyHEADER, AnyHR, AnyHTML, AnyI, AnyIMG, AnyINPUT, AnyINPUT.Button, AnyINPUT.Checkbox, AnyINPUT.Color, AnyINPUT.Date, AnyINPUT.DatetimeLocal, AnyINPUT.Dynamic, AnyINPUT.Email, AnyINPUT.File, AnyINPUT.Hidden, AnyINPUT.Image, AnyINPUT.Month, AnyINPUT.Number, AnyINPUT.Password, AnyINPUT.Radio, AnyINPUT.Range, AnyINPUT.Reset, AnyINPUT.Search, AnyINPUT.Submit, AnyINPUT.Tel, AnyINPUT.Text, AnyINPUT.Time, AnyINPUT.Url, AnyINPUT.Week, AnyINS, AnyKBD, AnyLABEL, AnyLI, AnyLINK, AnyMAIN, AnyMAP, AnyMARK, AnyMENU, AnyMETA, AnyMETER, AnyNAV, AnyOBJECT, AnyOL, AnyOPTGROUP, AnyOPTION, AnyOUTPUT, AnyP, AnyPARAM, AnyPRE, AnyPROGRESS, AnyQ, AnyS, AnySAMP, AnySCRIPT, AnySECTION, AnySELECT, AnySMALL, AnySPAN, AnySTRONG, AnySTYLE, AnySUB, AnySUP, AnyTABLE, AnyTBODY, AnyTD, AnyTEXTAREA, AnyTFOOT, AnyTH, AnyTHEAD, AnyTITLE, AnyTR, AnyU, AnyUL, AnyVAR, AnyWBR, Element, Normal, NormalText, Transparent, TransparentText, Void

public interface Data<E extends Element<?,?,E> & Data<E>>
Since:
HTML 5
Author:
AO Industries, Inc.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Utility class for working with Data as data-* HTML attributes.
    static final class 
    Utility class for working with Data as JavaScript dataset property.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <Ex extends Throwable>
    E
    data(String attrName, TextWritable<Ex> value)
    Data provided by HTML attribute name.
    default <Ex extends Throwable>
    E
    data(String attrName, IOSupplierE<?,Ex> value)
    Data provided by HTML attribute name.
    default E
    data(String attrName, Object value)
    Data provided by HTML attribute name.
    default <Ex extends Throwable>
    E
    dataset(String jsName, TextWritable<Ex> value)
    Data provided by JavaScript dataset property name.
    default <Ex extends Throwable>
    E
    dataset(String jsName, IOSupplierE<?,Ex> value)
    Data provided by JavaScript dataset property name.
    default E
    dataset(String jsName, Object value)
    Data provided by JavaScript dataset property name.