Plugin components could now specify an index position in the container, where they'll be added.

cusax-fix
Yana Stamcheva 18 years ago
parent cbd2fa70d2
commit fcbe0eb2b9

@ -967,5 +967,10 @@ public void setCurrentContactGroup(MetaContactGroup metaGroup)
((ContactAwareComponent) component)
.setCurrentContactGroup(metaGroup);
}
public int getPositionIndex()
{
return -1;
}
}
}

@ -58,4 +58,9 @@ public void setCurrentContact(MetaContact metaContact)
public void setCurrentContactGroup(MetaContactGroup metaGroup)
{
}
public int getPositionIndex()
{
return -1;
}
}

@ -85,4 +85,9 @@ public String getName()
{
return menuItem.getText();
}
public int getPositionIndex()
{
return -1;
}
}

@ -89,4 +89,9 @@ public void setCurrentContact(MetaContact metaContact)
public void setCurrentContactGroup(MetaContactGroup metaGroup)
{
}
public int getPositionIndex()
{
return -1;
}
}

@ -60,4 +60,9 @@ public void setCurrentContact(MetaContact metaContact)
public void setCurrentContactGroup(MetaContactGroup metaGroup)
{
}
public int getPositionIndex()
{
return -1;
}
}

@ -156,4 +156,9 @@ public String getName()
{
return whiteboardMenu.getText();
}
public int getPositionIndex()
{
return -1;
}
}

@ -57,6 +57,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

Loading…
Cancel
Save