public abstract class PluginComponentFactory
extends java.lang.Object
Constructor and Description |
---|
PluginComponentFactory(Container container)
Creates a default factory for a container.
|
PluginComponentFactory(Container container,
java.lang.String constraints,
int position,
boolean nativeComponent)
Creates factory.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConstraints()
Returns the constraints, which will indicate to the container, where this
component should be added.
|
Container |
getContainer()
Returns the identifier of the container, where we would like to add
our control.
|
PluginComponent |
getPluginComponentInstance(java.lang.Object parent)
Returns the component that should be added.
|
protected abstract PluginComponent |
getPluginInstance()
Implementers use it to create plugin component instances.
|
int |
getPositionIndex()
Returns the index position of this component in the container, where it
will be added.
|
boolean |
isNativeComponent()
Returns
true to indicate that this component is a native
component and false otherwise. |
public PluginComponentFactory(Container container)
container
- the container id for the plugins to be created.public PluginComponentFactory(Container container, java.lang.String constraints, int position, boolean nativeComponent)
container
- the container idconstraints
- the constraintsposition
- a position for the plugin component.nativeComponent
- is it native one.public Container getContainer()
public java.lang.String getConstraints()
public int getPositionIndex()
public boolean isNativeComponent()
true
to indicate that this component is a native
component and false
otherwise. This method is meant to be
used by containers if a special treatment is needed for native components.true
to indicate that this component is a native
component and false
otherwise.public PluginComponent getPluginComponentInstance(java.lang.Object parent)
parent
- the parent that will contain this pluginprotected abstract PluginComponent getPluginInstance()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.