All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zkoss.zhtml.Canvas Maven / Gradle / Ivy

There is a newer version: 10.0.0-jakarta
Show newest version
/* Canvas.java

	Purpose:
		
	Description:
		
	History:
		Tue Nov 14 10:19:42 2017, Created by jameschu

Copyright (C) 2017 Potix Corporation. All Rights Reserved.

{{IS_RIGHT
	This program is distributed under LGPL Version 2.1 in the hope that
	it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
package org.zkoss.zhtml;

import org.zkoss.zhtml.impl.AbstractTag;
import org.zkoss.zk.ui.WrongValueException;

/**
 * The CANVAS tag.
 * 
 * @author jameschu
 */
public class Canvas extends AbstractTag {
	public Canvas() {
		super("canvas");
	}

	/**
	 * Returns the height of this canvas tag.
	 * 

Notice that this attribute refers to the corresponding attribute of the HTML5 specification. * Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it. * @since 8.5.1 */ public String getHeight() { return (String) getDynamicProperty("height"); } /** * Sets the height of this canvas tag. *

Notice that this attribute refers to the corresponding attribute of the HTML5 specification. * Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it. * @since 8.5.1 */ public void setHeight(String height) throws WrongValueException { setDynamicProperty("height", height); } /** * Returns the width of this canvas tag. *

Notice that this attribute refers to the corresponding attribute of the HTML5 specification. * Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it. * @since 8.5.1 */ public String getWidth() { return (String) getDynamicProperty("width"); } /** * Sets the width of this canvas tag. *

Notice that this attribute refers to the corresponding attribute of the HTML5 specification. * Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it. * @since 8.5.1 */ public void setWidth(String width) throws WrongValueException { setDynamicProperty("width", width); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy