public class ElementFactory extends PluginFeature
find(java.lang.String) and create(java.lang.String) methods to create element instances
or use make(java.lang.String, java.lang.String) as a convenient shortcut.GObject.GCallbackNativeObject.InitializerdefaultInit, ownsHandle| Constructor and Description |
|---|
ElementFactory(NativeObject.Initializer init)
Creates a new instance of ElementFactory
|
| Modifier and Type | Method and Description |
|---|---|
Element |
create(java.lang.String name)
Creates a new element from the factory.
|
static ElementFactory |
find(java.lang.String name)
Retrieve an instance of a factory that can produce
Elements |
java.lang.String |
getAuthor()
Returns the name of the person who wrote the factory.
|
java.lang.String |
getDescription()
Returns a description of the factory.
|
java.lang.String |
getKlass()
Returns a string describing the type of factory.
|
java.lang.String |
getLongName()
Returns the long, English name for the factory.
|
java.util.List<StaticPadTemplate> |
getStaticPadTemplates()
Gets the list of
StaticPadTemplate for this factory. |
static Element |
make(java.lang.String factoryName,
java.lang.String name)
Creates a new Element from the specified factory.
|
static void |
registerElement(java.lang.Class<? extends Element> klass,
java.lang.String name) |
checkVersion, getName, getRank, setName, setRank, toStringaddListenerProxy, getParent, initializer, initializer, ref, removeListenerProxy, steal, unrefaddCallback, connect, connect, connect, disconnect, disconnect, disposeNativeHandle, emit, emit, g_signal_connect, get, getPointer, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getType, invalidate, objectForX, removeCallback, setclassFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectForpublic ElementFactory(NativeObject.Initializer init)
init - internal initialization data.public Element create(java.lang.String name)
name - the name to assign to the created ElementElementpublic java.lang.String getAuthor()
public java.lang.String getDescription()
public java.lang.String getLongName()
public java.lang.String getKlass()
public java.util.List<StaticPadTemplate> getStaticPadTemplates()
StaticPadTemplate for this factory.StaticPadTemplatepublic static void registerElement(java.lang.Class<? extends Element> klass, java.lang.String name)
public static ElementFactory find(java.lang.String name)
Elementspublic static Element make(java.lang.String factoryName, java.lang.String name)
factoryName - The name of the factory to use to produce the Elementname - The name to assign to the created Element