summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KEditListBox.java
blob: 26377d5865fa05e9fc7bde3b837b41a3a7192fd1 (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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQListBox;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import java.util.ArrayList;
import org.kde.qt.TQPushButton;
import org.kde.qt.TQWidget;
import org.kde.qt.TQGroupBox;

/**

 An editable listbox
 This class provides a editable listbox ;-), this means
 a listbox which is accompanied by a line edit to enter new
 items into the listbox and pushbuttons to add and remove
 items from the listbox and two buttons to move items up and down.
 \image html keditlistbox.png "KDE Edit List Box Widget"
  See {@link KEditListBoxSignals} for signals emitted by KEditListBox
		@short    An editable listbox

*/
public class KEditListBox extends TQGroupBox  {
	protected KEditListBox(Class dummy){super((Class) null);}

	/**	
		 Enumeration of the buttons, the listbox offers. Specify them in the
		 constructor in the buttons parameter, or in setButtons.
		       		@short    Enumeration of the buttons, the listbox offers.
	*/
	public static final int Add = 1;
	public static final int Remove = 2;
	public static final int UpDown = 4;

	public static final int All = Add|Remove|UpDown;

	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Create an editable listbox.
			 If <code>checkAtEntering</code> is true, after every character you type
		 in the line edit KEditListBox will enable or disable
		 the Add-button, depending whether the current content of the
		 line edit is already in the listbox. Maybe this can become a
		 performance hit with large lists on slow machines.
		 If <code>checkAtEntering</code> is false,
		 it will be checked if you press the Add-button. It is not
		 possible to enter items twice into the listbox.
		       		@short    Create an editable listbox.
	*/
	public KEditListBox(TQWidget parent, String name, boolean checkAtEntering, int buttons) {
		super((Class) null);
		newKEditListBox(parent,name,checkAtEntering,buttons);
	}
	private native void newKEditListBox(TQWidget parent, String name, boolean checkAtEntering, int buttons);
	public KEditListBox(TQWidget parent, String name, boolean checkAtEntering) {
		super((Class) null);
		newKEditListBox(parent,name,checkAtEntering);
	}
	private native void newKEditListBox(TQWidget parent, String name, boolean checkAtEntering);
	public KEditListBox(TQWidget parent, String name) {
		super((Class) null);
		newKEditListBox(parent,name);
	}
	private native void newKEditListBox(TQWidget parent, String name);
	public KEditListBox(TQWidget parent) {
		super((Class) null);
		newKEditListBox(parent);
	}
	private native void newKEditListBox(TQWidget parent);
	public KEditListBox() {
		super((Class) null);
		newKEditListBox();
	}
	private native void newKEditListBox();
	/**	
		 Create an editable listbox.
			 The same as the other constructor, additionally it takes
		 <code>title</code>, which will be the title of the frame around the listbox.
		       		@short    Create an editable listbox.
	*/
	public KEditListBox(String title, TQWidget parent, String name, boolean checkAtEntering, int buttons) {
		super((Class) null);
		newKEditListBox(title,parent,name,checkAtEntering,buttons);
	}
	private native void newKEditListBox(String title, TQWidget parent, String name, boolean checkAtEntering, int buttons);
	public KEditListBox(String title, TQWidget parent, String name, boolean checkAtEntering) {
		super((Class) null);
		newKEditListBox(title,parent,name,checkAtEntering);
	}
	private native void newKEditListBox(String title, TQWidget parent, String name, boolean checkAtEntering);
	public KEditListBox(String title, TQWidget parent, String name) {
		super((Class) null);
		newKEditListBox(title,parent,name);
	}
	private native void newKEditListBox(String title, TQWidget parent, String name);
	public KEditListBox(String title, TQWidget parent) {
		super((Class) null);
		newKEditListBox(title,parent);
	}
	private native void newKEditListBox(String title, TQWidget parent);
	public KEditListBox(String title) {
		super((Class) null);
		newKEditListBox(title);
	}
	private native void newKEditListBox(String title);
	/**	
		 Another constructor, which allows to use a custom editing widget
		 instead of the standard KLineEdit widget. E.g. you can use a
		 KURLRequester or a KComboBox as input widget. The custom
		 editor must consist of a lineedit and optionally another widget that
		 is used as representation. A KComboBox or a KURLRequester have a
		 KLineEdit as child-widget for example, so the KComboBox is used as
		 the representation widget.
				@short    Another constructor, which allows to use a custom editing widget  instead of the standard KLineEdit widget.
		@see KURLRequester#customEditor
	*/
	// KEditListBox* KEditListBox(const TQString& arg1,const KEditListBox::CustomEditor& arg2,TQWidget* arg3,const char* arg4,bool arg5,int arg6); >>>> NOT CONVERTED
	// KEditListBox* KEditListBox(const TQString& arg1,const KEditListBox::CustomEditor& arg2,TQWidget* arg3,const char* arg4,bool arg5); >>>> NOT CONVERTED
	// KEditListBox* KEditListBox(const TQString& arg1,const KEditListBox::CustomEditor& arg2,TQWidget* arg3,const char* arg4); >>>> NOT CONVERTED
	// KEditListBox* KEditListBox(const TQString& arg1,const KEditListBox::CustomEditor& arg2,TQWidget* arg3); >>>> NOT CONVERTED
	// KEditListBox* KEditListBox(const TQString& arg1,const KEditListBox::CustomEditor& arg2); >>>> NOT CONVERTED
	/**	
		 Return a pointer to the embedded TQListBox.
		       		@short    Return a pointer to the embedded TQListBox.
	*/
	public native TQListBox listBox();
	/**	
		 Return a pointer to the embedded TQLineEdit.
		       		@short    Return a pointer to the embedded TQLineEdit.
	*/
	public native KLineEdit lineEdit();
	/**	
		 Return a pointer to the Add button
		       		@short    Return a pointer to the Add button
	*/
	public native TQPushButton addButton();
	/**	
		 Return a pointer to the Remove button
		       		@short    Return a pointer to the Remove button
	*/
	public native TQPushButton removeButton();
	/**	
		 Return a pointer to the Up button
		       		@short    Return a pointer to the Up button
	*/
	public native TQPushButton upButton();
	/**	
		 Return a pointer to the Down button
		       		@short    Return a pointer to the Down button
	*/
	public native TQPushButton downButton();
	/**	
		 See TQListBox.count()
		       		@short    See TQListBox.count()
	*/
	public native int count();
	/**	
		 See TQListBox.insertStringList()
		       		@short    See TQListBox.insertStringList()
	*/
	public native void insertStringList(String[] list, int index);
	public native void insertStringList(String[] list);
	/**	
		 See TQListBox.insertStringList()
		       		@short    See TQListBox.insertStringList()
	*/
	public native void insertStrList(String[] list, int index);
	public native void insertStrList(String[] list);
	/**	
		 See TQListBox.insertStrList()
		       		@short    See TQListBox.insertStrList()
	*/
	public native void insertStrList(String[] list, int numStrings, int index);
	/**	
		 See TQListBox.insertItem()
		       		@short    See TQListBox.insertItem()
	*/
	public native void insertItem(String text, int index);
	public native void insertItem(String text);
	/**	
		 Clears both the listbox and the line edit.
		       		@short    Clears both the listbox and the line edit.
	*/
	public native void clear();
	/**	
		 See TQListBox.text()
		       		@short    See TQListBox.text()
	*/
	public native String text(int index);
	/**	
		 See TQListBox.currentItem()
		       		@short    See TQListBox.currentItem()
	*/
	public native int currentItem();
	/**	
		 See TQListBox.currentText()
		       		@short    See TQListBox.currentText()
	*/
	public native String currentText();
	/**	
				@return a stringlist of all items in the listbox
       
		@short
	*/
	public native ArrayList items();
	/**	
		 Clears the listbox and sets the contents to <code>items</code>
				@short    Clears the listbox and sets the contents to <code>items</code>
	*/
	public native void setItems(String[] items);
	/**	
		 Returns which buttons are visible
		       		@short    Returns which buttons are visible
	*/
	public native int buttons();
	/**	
		 Specifies which buttons should be visible
		       		@short    Specifies which buttons should be visible
	*/
	public native void setButtons(int buttons);
	protected native void moveItemUp();
	protected native void moveItemDown();
	protected native void addItem();
	protected native void removeItem();
	protected native void enableMoveButtons(int index);
	protected native void typedSomething(String text);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}