org.apache.felix.ipojo.junit4osgi.command
Class TestListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.apache.felix.ipojo.junit4osgi.command.TestListModel
All Implemented Interfaces:
Serializable, ListModel

public class TestListModel
extends AbstractListModel

Test Suite list model.

Author:
Felix Project Team
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
TestListModel()
           
 
Method Summary
 void addTest(junit.framework.Test test)
          Adds a test.
 void clear()
          Clears the list.
 Object getElementAt(int index)
          Gets the element placed at the given index.
 int getSize()
          Gets the list size.
 junit.framework.Test getTestElementAt(int index)
          Gets the test object placed at the given index.
 void removeTest(junit.framework.Test test)
          Removes a test.
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestListModel

public TestListModel()
Method Detail

getElementAt

public Object getElementAt(int index)
Gets the element placed at the given index.

Parameters:
index - the index
Returns:
the element placed at the given index or null if no element at this index
See Also:
ListModel.getElementAt(int)

getTestElementAt

public junit.framework.Test getTestElementAt(int index)
Gets the test object placed at the given index.

Parameters:
index - the index
Returns:
the test object placed at the given index

addTest

public void addTest(junit.framework.Test test)
Adds a test.

Parameters:
test - the test to add

removeTest

public void removeTest(junit.framework.Test test)
Removes a test.

Parameters:
test - the test to remove

clear

public void clear()
Clears the list.


getSize

public int getSize()
Gets the list size.

Returns:
the list size.
See Also:
ListModel.getSize()


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.