/** * Creates a {@link Bdo} element with the specified {@link Bdo#dir(String)} attribute and child nodes. * * @param dir The {@link Bdo#dir(String)} attribute. * @param children The child nodes. * @return The new element. */ public static final Bdo bdo(String dir, Object...children) { return bdo().dir(dir).children(children); }
/** * Creates a {@link Canvas} element with the specified {@link Canvas#width(Object)} and * {@link Canvas#height(Object)} attributes. * * @param width The {@link Canvas#width(Object)} attribute. * @param height The {@link Canvas#height(Object)} attribute. * @return The new element. */ public static final Canvas canvas(Number width, Number height) { return canvas().width(width).height(height); }
/** * Creates a {@link Datalist} element with the specified {@link Datalist#id(String)} attribute and child nodes. * * @param id The {@link Datalist#id(String)} attribute. * @param children The child nodes. * @return The new element. */ public static final Datalist datalist(String id, Option...children) { return datalist().id(id).children((Object[])children); }
/** * Creates a {@link Param} element with the specified {@link Param#name(String)} and {@link Param#value(Object)} * attributes. * * @param name The {@link Param#name(String)} attribute. * @param value The {@link Param#value(Object)} attribute. * @return The new element. */ public static final Param param(String name, Object value) { return param().name(name).value(value); }
/** * Creates a {@link Source} element with the specified {@link Source#src(Object)} and {@link Source#type(String)} * attributes. * * @param src The {@link Source#src(Object)} attribute. * @param type The {@link Source#type(String)} attribute. * @return The new element. */ public static final Source source(Object src, String type) { return source().src(src).type(type); }