aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service
diff options
context:
space:
mode:
authorYana Stamcheva <yana@jitsi.org>2008-05-26 12:16:30 +0000
committerYana Stamcheva <yana@jitsi.org>2008-05-26 12:16:30 +0000
commitfcbe0eb2b9548bf07c3d7eadf2f314cb07a06bbf (patch)
treedf9d6cb4609deacce45d69a4d8576b4ebccb602c /src/net/java/sip/communicator/service
parentcbd2fa70d2835623b746aa3861e49271430b72fd (diff)
downloadjitsi-fcbe0eb2b9548bf07c3d7eadf2f314cb07a06bbf.zip
jitsi-fcbe0eb2b9548bf07c3d7eadf2f314cb07a06bbf.tar.gz
jitsi-fcbe0eb2b9548bf07c3d7eadf2f314cb07a06bbf.tar.bz2
Plugin components could now specify an index position in the container, where they'll be added.
Diffstat (limited to 'src/net/java/sip/communicator/service')
-rw-r--r--src/net/java/sip/communicator/service/gui/PluginComponent.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/gui/PluginComponent.java b/src/net/java/sip/communicator/service/gui/PluginComponent.java
index 9cf537b..5946753 100644
--- a/src/net/java/sip/communicator/service/gui/PluginComponent.java
+++ b/src/net/java/sip/communicator/service/gui/PluginComponent.java
@@ -58,6 +58,16 @@ public interface PluginComponent
public String getConstraints();
/**
+ * Returns the index position of this component in the container, where it
+ * will be added. An index of 0 would mean that this component should be
+ * added before all other components. An index of -1 would mean that the
+ * position of this component is not important.
+ * @return the index position of this component in the container, where it
+ * will be added.
+ */
+ public int getPositionIndex();
+
+ /**
* Returns the component that should be added. This method should return a
* valid AWT, SWT or Swing object in order to appear properly in the user
* interface.