summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/TextEvent.java
blob: 1b498609ee26f0adfbe1462d2e7d44ae1b8e5748 (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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

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

/**

 DOM.TextEvent
 The detail attribute inherited from UIEvent is used to indicate
 the number of keypresses which have occurred during key repetition.
 If this information is not available this value should be 0.
 		@short    DOM.TextEvent  The detail attribute inherited from UIEvent is used to indicate  the number of keypresses which have occurred during key repetition.

*/
public class TextEvent extends UIEvent  {
	protected TextEvent(Class dummy){super((Class) null);}
	public TextEvent() {
		super((Class) null);
		newTextEvent();
	}
	private native void newTextEvent();
	public TextEvent(TextEvent other) {
		super((Class) null);
		newTextEvent(other);
	}
	private native void newTextEvent(TextEvent other);
	public TextEvent(Event other) {
		super((Class) null);
		newTextEvent(other);
	}
	private native void newTextEvent(Event other);
	/**	
		 initTextEvent
			 The initTextEvent method is used to initialize the value of a
		 MouseEvent created through the DocumentEvent interface. This
		 method may only be called before the TextEvent has been dispatched
		 via the dispatchEvent method, though it may be called multiple
		 times during that phase if necessary. If called multiple times,
		 the final invocation takes precedence. This method has no effect
		 if called after the event has been dispatched.
			 Parameters:
			 typeArg of type DOMString
		   Specifies the event type.
		 canBubbleArg of type booleanean
		   Specifies whether or not the event can bubble.
		 cancelableArg of type booleanean
		   Specifies whether or not the event's default action can be prevent.
		 viewArg of type views.AbstractView
		   Specifies the TextEvent's AbstractView.
		 detailArg of type unsigned short
		   Specifies the number of repeated keypresses, if available.
		 outputStringArg of type DOMString
		   Specifies the TextEvent's outputString attribute
		 keyValArg of type unsigned long
		   Specifies the TextEvent's keyValattribute
		 virtKeyValArg of type unsigned long
		   Specifies the TextEvent's virtKeyValattribute
		 inputGeneratedArg of type booleanean
		   Specifies the TextEvent's inputGeneratedattribute
		 numPadArg of type booleanean
		   Specifies the TextEvent's numPadattribute
			 No Return Value.
		 No Exceptions.
		     		@short    initTextEvent
	*/
	public native void initTextEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, long detailArg, String outputStringArg, long keyValArg, long virtKeyValArg, boolean inputGeneratedArg, boolean numPadArg);
	/**	
		 initModifier
			 The initModifier method is used to initialize the values of any
		 modifiers associated with a TextEvent created through the
		 DocumentEvent interface. This method may only be called before the
		 TextEvent has been dispatched via the dispatchEvent method, though
		 it may be called multiple times during that phase if necessary. If
		 called multiple times with the same modifier property the final
		 invocation takes precedence. Unless explicitly give a value of
		 true, all modifiers have a value of false. This method has no
		 effect if called after the event has been dispatched.  The list of
		 keys below represents the allowable modifier parameters for this
		 method:
		    DOM_VK_LEFT_ALT
		    DOM_VK_RIGHT_ALT
		    DOM_VK_LEFT_CONTROL
		    DOM_VK_RIGHT_CONTROL
		    DOM_VK_LEFT_SHIFT
		    DOM_VK_RIGHT_SHIFT
		    DOM_VK_META
			 Parameters:
			 modifier of type unsigned long
		   The modifier which the user wishes to initialize
		 value of type booleanean
		   The new value of the modifier.
			 No Return Value
		 No Exceptions
		     		@short    initModifier
	*/
	public native void initModifier(long modifierArg, boolean valueArg);
	/**	
		 inputGenerated of type booleanean
			  The inputGenerated attribute indicates whether the key event will
		  normally cause visible output. If the key event does not
		  generate any visible output, such as the use of a function key
		  or the combination of certain modifier keys used in conjunction
		  with another key, then the value will be false. If visible
		  output is normally generated by the key event then the value
		  will be true.  The value of inputGenerated does not guarantee
		  the creation of a character. If a key event causing visible
		  output is cancelable it may be prevented from causing
		  output. This attribute is intended primarily to differentiate
		  between keys events which may or may not produce visible output
		  depending on the system state.
		     		@short    inputGenerated of type boolean
	*/
	public native boolean inputGenerated();
	/**	 keyVal of type unsigned long
			  The value of keyVal holds the value of the Unicode character
		  associated with the depressed key. If the key has no Unicode
		  representation or no Unicode character is available the value is
		  0.
		     		@short   keyVal of type unsigned long
	*/
	public native long keyVal();
	/**	 numPad of type booleanean
			  The numPad attribute indicates whether or not the key event was
		  generated on the number pad section of the keyboard. If the number
		  pad was used to generate the key event the value is true,
		  otherwise the value is false.
		     		@short   numPad of type boolean
	*/
	public native boolean numPad();
	/**	
		outputString of type DOMString
			  outputString holds the value of the output generated by the key
		  event. This may be a single Unicode character or it may be a
		  string. It may also be null in the case where no output was
		  generated by the key event.
		     		@short   outputString of type DOMString
	*/
	public native String outputString();
	/**	 virtKeyVal of type unsigned long
			  When the key associated with a key event is not representable via
		  a Unicode character virtKeyVale holds the key code
		  associated with the depressed key. If the key has a Unicode
		  representation or no code is available the value is
		  DOM_VK_UNDEFINED.
		     		@short   virtKeyVal of type unsigned long
	*/
	public native long virtKeyVal();
	/**	
		  checkModifier
			 Note: the below description does not match the actual behavior.
		       it's extended in a way that you can query multiple modifiers
		       at once by logically OR`ing them.
		       also, we use the Qt modifier enum instead of the DOM one.
			 The CheckModifier method is used to check the status of a single
		 modifier key associated with a TextEvent. The identifier of the
		 modifier in question is passed into the CheckModifier function. If
		 the modifier is triggered it will return true. If not, it will
		 return false.  The list of keys below represents the allowable
		 modifier parameters for this method:
		     DOM_VK_LEFT_ALT
		     DOM_VK_RIGHT_ALT
		     DOM_VK_LEFT_CONTROL
		     DOM_VK_RIGHT_CONTROL
		     DOM_VK_LEFT_SHIFT
		     DOM_VK_RIGHT_SHIFT
		     DOM_VK_META
			 Parameters:
			 modifier of type unsigned long
		   The modifier which the user wishes to query.
			 Return Value: booleanean
		   The status of the modifier represented as a booleanean.
			 No Exceptions
		     		@short     checkModifier
	*/
	public native boolean checkModifier(long modifierArg);
	// DOM::TextEvent* TextEvent(DOM::TextEventImpl* arg1); >>>> NOT CONVERTED
}