www.element4solution.com

e4s.util
Class E4ElementsVec

java.lang.Object
  extended by e4s.util.E4ElementsVec

public class E4ElementsVec
extends java.lang.Object

Encapsulated Vector class used only to hold elements of type E4HtmlElement_Intf.

Since:
JDK 1.4
See Also:
E4HtmlElement_Intf, E4HtmlElement.addElement(e4s.html.E4HtmlElement_Intf)

Constructor Summary
E4ElementsVec()
           
E4ElementsVec(E4ElementsVec vec)
           
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
 void addElement(E4HtmlElement_Intf element)
           
 void addElements(E4ElementsVec vec)
           
 void collectScripts(E4ScriptsVec v, E4ServletImplementation_Intf servlet)
           
 E4HtmlElement_Intf elementAt(int i)
           
 java.util.Enumeration elements()
          Deprecated. Get an enumeration of the elements from the Vector. All elements are of type E4HtmlElement_Intf.
 void insertElementAt(E4HtmlElement_Intf element, int i)
           
 E4HtmlElement_Intf lastElement()
          Get the latest element
 void removeAll()
          Deprecated.  
 void removeAllElements()
           
 void removeAllElements(boolean destroy)
           
 void removeElement(E4HtmlElement_Intf element)
           
 void removeElementAt(int i)
           
 int size()
          Get the number of elements.
 void swap(int a, int b)
          Swaps to elements within the elements vector.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

E4ElementsVec

public E4ElementsVec()

E4ElementsVec

public E4ElementsVec(E4ElementsVec vec)
Method Detail

addElement

public void addElement(E4HtmlElement_Intf element)

addElements

public void addElements(E4ElementsVec vec)

elements

public java.util.Enumeration elements()
Deprecated. Get an enumeration of the elements from the Vector. All elements are of type E4HtmlElement_Intf.

Returns:
the elements Enumeration or null if no elements have been added so far. Return of an empty Enumeration could be possible.

lastElement

public E4HtmlElement_Intf lastElement()
Get the latest element

Returns:
null if the vector is empty or the latest element.

size

public int size()
Get the number of elements.

Returns:
the number of elements or 0 if no elements are available.

elementAt

public E4HtmlElement_Intf elementAt(int i)

removeElement

public void removeElement(E4HtmlElement_Intf element)

insertElementAt

public void insertElementAt(E4HtmlElement_Intf element,
                            int i)

removeElementAt

public void removeElementAt(int i)

removeAllElements

public void removeAllElements()

removeAllElements

public void removeAllElements(boolean destroy)

removeAll

public void removeAll()
Deprecated. 

See Also:
removeAllElements()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

collectScripts

public void collectScripts(E4ScriptsVec v,
                           E4ServletImplementation_Intf servlet)

swap

public void swap(int a,
                 int b)
Swaps to elements within the elements vector.

Parameters:
a - index of the fist element
b - index of the second element

_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

www.element4solution.com