wt.clients.replication.unit
Class UnitUsesInterfaceList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended bywt.clients.replication.unit.UnitUsageItemList
                  extended bywt.clients.replication.unit.UnitUsesInterfaceList
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class UnitUsesInterfaceList
extends UnitUsageItemList

UsesInterfaceList is a model class for manipulating Links of parts to units. This list corresponds to the list of the used wt.part.WTPartMasters for a wt.part.WTPart object.

Supported API: false

Extendable: false

See Also:
PartItem, UsageInterfaceItem, WTPart, WTPartMaster, Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
(package private)  Vector addedUsage
           
(package private)  boolean frameStarted
           
(package private)  Vector removedUsage
           
(package private)  UnitItem unit
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
UnitUsesInterfaceList()
          Construct an empty list.
UnitUsesInterfaceList(UnitItem unit)
          Construct a list of parts contained by a unit.
 
Method Summary
 void addElement(UnitUsageInterfaceItem usage)
           
 UnitUsageItem elementAt(String s)
          Implemented to fulfill base class obligation.
(package private)  void endFrame()
           
 void insertElementAt(UnitUsageInterfaceItem usage, int index)
           
 UnitUsageInterfaceItem interfaceElementAt(String id)
          Get the item at the specified position.
 void populate()
           
 void removeElementAt(String part_number)
           
(package private)  boolean saveFrame()
           
(package private)  void startFrame()
           
 String[] toMultiList()
           
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

frameStarted

boolean frameStarted

removedUsage

Vector removedUsage

addedUsage

Vector addedUsage

unit

UnitItem unit
Constructor Detail

UnitUsesInterfaceList

public UnitUsesInterfaceList(UnitItem unit)
                      throws WTException
Construct a list of parts contained by a unit.

Parameters:
unit - the containing unit.
Throws:
WTException - if error occurred retrieving the list.

UnitUsesInterfaceList

public UnitUsesInterfaceList()
Construct an empty list.

Method Detail

interfaceElementAt

public UnitUsageInterfaceItem interfaceElementAt(String id)
Get the item at the specified position.

Parameters:
id - the specified position.
Returns:
the item at the specified position.

elementAt

public UnitUsageItem elementAt(String s)
Implemented to fulfill base class obligation.

Specified by:
elementAt in class UnitUsageItemList
Returns:
null

insertElementAt

public void insertElementAt(UnitUsageInterfaceItem usage,
                            int index)

removeElementAt

public void removeElementAt(String part_number)
Overrides:
removeElementAt in class UnitUsageItemList

addElement

public void addElement(UnitUsageInterfaceItem usage)

populate

public void populate()
              throws WTException
Throws:
WTException

toMultiList

public String[] toMultiList()

saveFrame

boolean saveFrame()
            throws WTException
Throws:
WTException

startFrame

void startFrame()

endFrame

void endFrame()