//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QtSupport;

/**

 The <code>CSSPrimitiveValue</code> interface represents a single
 <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#values"> CSS
 value </a> . This interface may be used to determine the value of a
 specific style property currently set in a block or to set a
 specific style properties explicitly within the block. An instance
 of this interface can be obtained from the
 <code>getPropertyCSSValue</code> method of the
 <code>CSSStyleDeclaration</code> interface.
 		@short    The <code>CSSPrimitiveValue</code> interface represents a single  <a href="http://www.

*/
public class CSSPrimitiveValue extends CSSValue  {
	protected CSSPrimitiveValue(Class dummy){super((Class) null);}
	public CSSPrimitiveValue() {
		super((Class) null);
		newCSSPrimitiveValue();
	}
	private native void newCSSPrimitiveValue();
	public CSSPrimitiveValue(CSSPrimitiveValue other) {
		super((Class) null);
		newCSSPrimitiveValue(other);
	}
	private native void newCSSPrimitiveValue(CSSPrimitiveValue other);
	public CSSPrimitiveValue(CSSValue other) {
		super((Class) null);
		newCSSPrimitiveValue(other);
	}
	private native void newCSSPrimitiveValue(CSSValue other);
	// DOM::CSSPrimitiveValue* CSSPrimitiveValue(DOM::CSSPrimitiveValueImpl* arg1); >>>> NOT CONVERTED
	/**	
		 The type of the value as defined by the constants specified
		 above.
			     		@short    The type of the value as defined by the constants specified  above.
	*/
	public native short primitiveType();
	/**	
		 A method to set the float value with a specified unit. If the
		 property attached with this value can not accept the specified
		 unit or the float value, the value will be unchanged and a
		 <code>DOMException</code> will be raised.
			@param unitType A unit code as defined above. The unit code can
		 only be a float unit type (e.g. <code>NUMBER</code> ,
		 <code>PERCENTAGE</code> , <code>CSS_EMS</code> , <code>CSS_EXS</code>
		 , <code>CSS_PX</code> , <code>CSS_PX</code> ,
		 <code>CSS_CM</code> , <code>CSS_MM</code> , <code>CSS_IN</code>
		 , <code>CSS_PT</code> , <code>CSS_PC</code> ,
		 <code>CSS_DEG</code> , <code>CSS_RAD</code> ,
		 <code>CSS_GRAD</code> , <code>CSS_MS</code> , <code>CSS_S</code>
		 , <code>CSS_HZ</code> , <code>CSS_KHZ</code> ,
		 <code>CSS_DIMENSION</code>  ).
			@param floatValue The new float value.
			  NO_MODIFICATION_ALLOWED_ERR: Raised if this property is
		 readonly.
			     		@short    A method to set the float value with a specified unit.
	*/
	public native void setFloatValue(short unitType, float floatValue);
	/**	
		 This method is used to get a float value in a specified unit.
		 If this CSS value doesn't contain a float value or can't be
		 converted into the specified unit, a <code>DOMException</code>
		 is raised.
			@param unitType A unit code to get the float value. The unit
		 code can only be a float unit type (e.g. <code>CSS_NUMBER</code>
		 , <code>CSS_PERCENTAGE</code> , <code>CSS_EMS</code>
		 , <code>CSS_EXS</code> , <code>CSS_PX</code> ,
		 <code>CSS_PX</code> , <code>CSS_CM</code> , <code>CSS_MM</code>
		 , <code>CSS_IN</code> , <code>CSS_PT</code> ,
		 <code>CSS_PC</code> , <code>CSS_DEG</code> , <code>CSS_RAD</code>
		 , <code>CSS_GRAD</code> , <code>CSS_MS</code> ,
		 <code>CSS_S</code> , <code>CSS_HZ</code> , <code>CSS_KHZ</code>
		 , <code>CSS_DIMENSION</code> ).
			     		@return The float value in the specified unit.

		@short    This method is used to get a float value in a specified unit.
	*/
	public native float getFloatValue(short unitType);
	/**	
		 A method to set the string value with a specified unit. If the
		 property attached to this value can't accept the specified unit
		 or the string value, the value will be unchanged and a
		 <code>DOMException</code> will be raised.
			@param stringType A string code as defined above. The string
		 code can only be a string unit type (e.g. <code>CSS_URI</code>
		 , <code>CSS_IDENT</code> , <code>CSS_INHERIT</code>
		 and <code>CSS_ATTR</code> ).
			@param stringValue The new string value. If the
		 <code>stringType</code> is equal to <code>CSS_INHERIT</code> , the
		 <code>stringValue</code> should be <code>inherit</code> .
			  NO_MODIFICATION_ALLOWED_ERR: Raised if this property is
		 readonly.
			     		@short    A method to set the string value with a specified unit.
	*/
	public native void setStringValue(short stringType, String stringValue);
	/**	
		 This method is used to get the string value in a specified
		 unit. If the CSS value doesn't contain a string value, a
		 <code>DOMException</code> is raised.
			     		@return The string value in the current unit. The current
 <code>valueType</code> can only be a string unit type (e.g.
 <code>CSS_URI</code> , <code>CSS_IDENT</code> and
 <code>CSS_ATTR</code> ).

		@short    This method is used to get the string value in a specified  unit.
	*/
	public native String getStringValue();
	/**	
		 This method is used to get the Counter value. If this CSS value
		 doesn't contain a counter value, a <code>DOMException</code>
		 is raised. Modification to the corresponding style property can
		 be achieved using the <code>Counter</code> interface.
			     		@return The Counter value.

		@short    This method is used to get the Counter value.
	*/
	public native Counter getCounterValue();
	/**	
		 This method is used to get the Rect value. If this CSS value
		 doesn't contain a rect value, a <code>DOMException</code> is
		 raised. Modification to the corresponding style property can be
		 achieved using the <code>Rect</code> interface.
			     		@return The Rect value.

		@short    This method is used to get the Rect value.
	*/
	public native Rect getRectValue();
	/**	
		 This method is used to get the RGB color. If this CSS value
		 doesn't contain a RGB color value, a <code>DOMException</code>
		 is raised. Modification to the corresponding style
		 property can be achieved using the <code>RGBColor</code>
		 interface.
			     		@return the RGB color value.

		@short    This method is used to get the RGB color.
	*/
	public native RGBColor getRGBColorValue();
}
