|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gwtext.client.core.JsObject
com.gwtext.client.core.BaseElement
com.gwtext.client.core.CompositeElement
public class CompositeElement
Standard composite class that creates an ExtElement for every element in the collection.
Field Summary |
---|
Fields inherited from class com.gwtext.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
CompositeElement(com.google.gwt.core.client.JavaScriptObject jsObj)
Create a CompositeElement using a native element. |
Method Summary | |
---|---|
CompositeElement |
add(ExtElement element)
Adds elements to this composite. |
CompositeElement |
add(java.lang.String selector)
Adds elements to this composite. |
void |
clear()
Removes all elements. |
void |
contains(ExtElement element)
Returns true if this composite contains the passed element. |
CompositeElement |
filter(java.lang.String selector)
Filters this composite to only elements that match the passed selector. |
ExtElement |
first()
Returns the first Element |
int |
getCount()
Returns the number of elements in this composite. |
int |
indexOf(ExtElement element)
Position of the Element in the CompositeElement list. |
ExtElement |
last()
Returns the last Element. |
CompositeElement |
removeElement(ExtElement element)
Removes the specified element. |
CompositeElement |
removeElement(ExtElement element,
boolean removeDom)
Removes the specified element. |
CompositeElement |
removeElement(int index)
Removes the specified element. |
CompositeElement |
removeElement(int index,
boolean removeDom)
Removes the specified element. |
CompositeElement |
replaceElement(ExtElement element,
ExtElement replacement)
Replaces the specified element with the passed element. |
CompositeElement |
replaceElement(ExtElement element,
ExtElement replacement,
boolean removeDom)
Replaces the specified element with the passed element. |
CompositeElement |
replaceElement(int index,
ExtElement replacement)
Replaces the specified element with the passed element. |
CompositeElement |
replaceElement(int index,
ExtElement replacement,
boolean removeDom)
Replaces the specified element with the passed element. |
Methods inherited from class com.gwtext.client.core.JsObject |
---|
getJsObj, getProperties, isCreated, setJsObj |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeElement(com.google.gwt.core.client.JavaScriptObject jsObj)
jsObj
- native objectMethod Detail |
---|
public CompositeElement add(java.lang.String selector)
selector
- a CSS selector
public CompositeElement add(ExtElement element)
element
- the elemetn to add
public void clear()
public void contains(ExtElement element)
element
- true if containts elementpublic CompositeElement filter(java.lang.String selector)
selector
- a CSS selector
public ExtElement first()
public int getCount()
public int indexOf(ExtElement element)
element
- the element
public ExtElement last()
public CompositeElement removeElement(int index)
index
- element to remove
public CompositeElement removeElement(int index, boolean removeDom)
index
- element to removeremoveDom
- true to also remove element from the document
public CompositeElement removeElement(ExtElement element)
element
- the element to remove
public CompositeElement removeElement(ExtElement element, boolean removeDom)
element
- the element to removeremoveDom
- true to also remove element from the document
public CompositeElement replaceElement(int index, ExtElement replacement)
index
- the index of the element in this composite to replacereplacement
- the element to replace with
public CompositeElement replaceElement(int index, ExtElement replacement, boolean removeDom)
index
- the index of the element in this composite to replacereplacement
- the element to replace withremoveDom
- true to remove and replace the element in the document too
public CompositeElement replaceElement(ExtElement element, ExtElement replacement)
element
- the element in this composite to replacereplacement
- the element to replace with
public CompositeElement replaceElement(ExtElement element, ExtElement replacement, boolean removeDom)
element
- the element in this composite to replacereplacement
- the element to replace withremoveDom
- true to remove and replace the element in the document too
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |