1. /*
  2. * @(#)MutableComboBoxModel.java 1.8 00/02/02
  3. *
  4. * Copyright 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package javax.swing;
  11. /**
  12. * A mutable version of <code>ComboBoxModel</code>.
  13. *
  14. * @version 1.8 02/02/00
  15. * @author Tom Santos
  16. */
  17. public interface MutableComboBoxModel extends ComboBoxModel {
  18. /**
  19. * Adds an item to the end of the model.
  20. * @param obj the <code>Object</code> to be added
  21. */
  22. public void addElement( Object obj );
  23. /**
  24. * Removes an item from the model.
  25. * @param obj the <code>Object</code> to be removed
  26. */
  27. public void removeElement( Object obj );
  28. /**
  29. * Adds an item at a specific index
  30. * @param obj the <code>Object</code> to be added
  31. * @param index location to add the object
  32. */
  33. public void insertElementAt( Object obj, int index );
  34. /**
  35. * Removes an item at a specific index
  36. * @param index location of object to be removed
  37. */
  38. public void removeElementAt( int index );
  39. }