IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester API Reference

Project Version 2.3

com.rational.test.ft.value
Class ExpandableList

java.lang.Object   extended by com.rational.test.ft.value.ExpandableList

public class ExpandableList
extends java.lang.Object

Represents an expandable list of names. For example, datapool column names

Since:
RFT1.0

Constructor Summary
ExpandableList()
           
ExpandableList(int current, java.lang.String[] list, boolean editable)
           
 
Method Summary
 void add(java.lang.String name)
          Adds an element to the ExpandableList.
 boolean contains(java.lang.String name)
          Determines whether a name in included in the ExpandableList.
 java.lang.String[] elementArray()
          Returns the number of elements in the ExpandableList.
 java.util.Enumeration elements()
          Lists the elements in the ExpandableList.
 int getCurrentIndex()
          Gets the current index.
 java.lang.String getCurrentText()
          Gets the text associated with the current index.
 boolean getEditable()
          Determines whether a new element can be added and set as the selected.
 void remove(java.lang.String name)
          Removes an element from the ExpandableList.
 void removeAll()
          Removes all elements from the ExpandableList.
 void replace(int index, java.lang.String name)
          Replaces a name at a supplied index in the ExpandableList.
 void setCurrentIndex(int current)
          Sets the current index into the list.
 int size()
          Returns the size of the ExpandableList.
 java.lang.String toString()
          Returns a String representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpandableList

public ExpandableList()
Since:
RFT1.0

ExpandableList

public ExpandableList(int current,                       java.lang.String[] list,                       boolean editable)
Since:
RFT1.0
Method Detail

add

public void add(java.lang.String name)
Adds an element to the ExpandableList.

Since:
RFT1.0

replace

public void replace(int index,                     java.lang.String name)
Replaces a name at a supplied index in the ExpandableList.

Parameters:
index - the index within the ExpandableList to replace
name - the new name to add to the set
Since:
RFT1.0

contains

public boolean contains(java.lang.String name)
Determines whether a name in included in the ExpandableList.

Since:
RFT1.0

size

public int size()
Returns the size of the ExpandableList.

Since:
RFT1.0

elements

public java.util.Enumeration elements()
Lists the elements in the ExpandableList.

Since:
RFT1.0

elementArray

public java.lang.String[] elementArray()
Returns the number of elements in the ExpandableList.

Since:
RFT1.0

remove

public void remove(java.lang.String name)
Removes an element from the ExpandableList.

Since:
RFT1.0

removeAll

public void removeAll()
Removes all elements from the ExpandableList.

Since:
RFT1.0

toString

public java.lang.String toString()
Returns a String representation of the object.

Overrides:
toString in class java.lang.Object
Since:
RFT1.0

setCurrentIndex

public void setCurrentIndex(int current)
Sets the current index into the list.

Since:
RFT1.0

getCurrentIndex

public int getCurrentIndex()
Gets the current index.

Since:
RFT1.0

getCurrentText

public java.lang.String getCurrentText()
Gets the text associated with the current index.

Since:
RFT1.0

getEditable

public boolean getEditable()
Determines whether a new element can be added and set as the selected.

Since:
RFT1.0