ElegantJ Tables Java API Specification v1.1

com.elegantj.editors
Class ExtVector

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended bycom.elegantj.editors.ExtVector
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class ExtVector
extends java.util.Vector

This class provides a vector which can be initialized by the a string.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ExtVector()
          Default constructor.
ExtVector(java.util.Collection c)
          Constructor which takes collection as an argument, and fills elements from it.
ExtVector(java.lang.Object[] anArray)
          Constructor which takes array of objects as an argument, and fills elements from it.
ExtVector(java.lang.String str)
          Constructor which takes string as an argument, parses it and fills elements from it.
 
Method Summary
 void exchange(int nIndex1, int nIndex2)
          Exchanges two elements in the vector.
static java.lang.String makeVectorToString(java.util.Vector v)
          This method converts a vector to its string represntation delimited by ","
static java.lang.String makeVectorToString(java.util.Vector v, boolean bStringize)
           
 void moveItems(int dx, int[] arrayIndices)
           
 boolean removeItem(int nIndex)
          This funtion removes an item from specified index.
 void removeItems(int[] arrayIndices)
           
protected static java.lang.String stringizeVector(java.util.Vector v, java.lang.String separator)
           
 
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
 

Constructor Detail

ExtVector

public ExtVector()
Default constructor.


ExtVector

public ExtVector(java.lang.String str)
Constructor which takes string as an argument, parses it and fills elements from it.


ExtVector

public ExtVector(java.util.Collection c)
Constructor which takes collection as an argument, and fills elements from it.


ExtVector

public ExtVector(java.lang.Object[] anArray)
Constructor which takes array of objects as an argument, and fills elements from it.

Method Detail

makeVectorToString

public static java.lang.String makeVectorToString(java.util.Vector v)
This method converts a vector to its string represntation delimited by ","

Returns:
The string representating the vector.

makeVectorToString

public static java.lang.String makeVectorToString(java.util.Vector v,
                                                  boolean bStringize)

stringizeVector

protected static java.lang.String stringizeVector(java.util.Vector v,
                                                  java.lang.String separator)

exchange

public void exchange(int nIndex1,
                     int nIndex2)
Exchanges two elements in the vector.


removeItem

public boolean removeItem(int nIndex)
This funtion removes an item from specified index.

Returns:
true if removed.

moveItems

public void moveItems(int dx,
                      int[] arrayIndices)
               throws java.lang.IllegalArgumentException,
                      java.lang.ArrayIndexOutOfBoundsException,
                      java.lang.NullPointerException
Throws:
java.lang.IllegalArgumentException
java.lang.ArrayIndexOutOfBoundsException
java.lang.NullPointerException

removeItems

public void removeItems(int[] arrayIndices)
                 throws java.lang.ArrayIndexOutOfBoundsException,
                        java.lang.NullPointerException
Throws:
java.lang.ArrayIndexOutOfBoundsException
java.lang.NullPointerException

ElegantJ Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.