summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/Factory.java
blob: 80be66629c6011d89664a4901fce7011e7aa0cd3 (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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQObject;
import org.kde.qt.TQWidget;

/**

 A generic factory object to create a Part.
 Factory is an abstract class. Reimplement the 
 createPartObject() method to give it functionality.
		@short    A generic factory object to create a Part.
		@see KLibFactory#

*/
public class Factory extends KLibFactory  {
	protected Factory(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Creates a part.
			 The ArrayList can be used to pass additional arguments to the part.
		 If the part needs additional arguments, it should take them as
		 name="value" pairs. This is the way additional arguments will get passed
		 to the part from eg. khtml. You can for example embed the part into HTML
		 by using the following code:
		 <pre>
		    <object type="my_mimetype" data="url_to_my_data">
		        <param name="name1" value="value1">
		        <param name="name2" value="value2">
		    </object>
		 </pre>
		 This could result in a call to
		 <pre>
		     createPart( parentWidget, name, parentObject, parentName, "KParts.Part",
		                 ArrayList("name1="value1"", "name2="value2") );
		 </pre>
			 createPart() automatically emits a signal KLibFactory.objectCreated to tell
		 the library about its newly created object.  This is very
		 important for reference counting, and allows unloading the
		 library automatically once all its objects have been destroyed.
		     		@return the newly created part.

		@short    Creates a part.
	*/
	public native Part createPart(TQWidget parentWidget, String widgetName, TQObject parent, String name, String classname, String[] args);
	public native Part createPart(TQWidget parentWidget, String widgetName, TQObject parent, String name, String classname);
	public native Part createPart(TQWidget parentWidget, String widgetName, TQObject parent, String name);
	public native Part createPart(TQWidget parentWidget, String widgetName, TQObject parent);
	public native Part createPart(TQWidget parentWidget, String widgetName);
	public native Part createPart(TQWidget parentWidget);
	public native Part createPart();
	/**	
		 If you have a part contained in a shared library you might want to query
		 for meta-information like the about-data, or the TDEInstance in general.
		 If the part is exported using KParts.GenericFactory then this method will
		 return the instance that belongs to the part without the need to instantiate
		 the part component.
		      		@short    If you have a part contained in a shared library you might want to query  for meta-information like the about-data, or the TDEInstance in general.
	*/
	public native TDEInstanceInterface partInstance();
	/**	
		 A convenience method for partInstance() that takes care of retrieving
		 the factory for a given library name and calling partInstance() on it.
			@param libraryName name of the library to query the instance from
		      		@short    A convenience method for partInstance() that takes care of retrieving  the factory for a given library name and calling partInstance() on it.
	*/
	public static native TDEInstanceInterface partInstanceFromLibrary(String libraryName);
}