summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/CSSPrimitiveValue.java
blob: 650bc1390fe813844c95ced6d9e46393df124da7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
//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();
}