| java.lang.Object com.gwtext.client.core.JsObject com.gwtext.client.core.BaseElement com.gwtext.client.core.ExtElement
All known Subclasses: com.gwtext.client.widgets.Layer,
Constructor Summary | |
protected | ExtElement() | public | ExtElement(JavaScriptObject jsObj) Create an ExtElement using an existing native element. | public | ExtElement(Element elem) Create an ExtElement wrapper around en existing DOM Element. | public | ExtElement(Element elem, boolean forceNew) Create an ExtElement wrapper around an existing DOM Element. |
Method Summary | |
native public ExtElement | appendChild(Element child) Appends the passed element to this element. | native public ExtElement | appendTo(Element el) Appends this element to the passed element. | native public ExtElement | blur() Tries to blur the element. | native public ExtElement | boxWrap() Wraps the specified element with a special markup/CSS block that renders by default as a gray container with a gradient background,
rounded corners and a 4-way shadow. | native public ExtElement | boxWrap(String boxClass) Wraps the specified element with a special markup/CSS block that renders by default as a gray container with a gradient background,
rounded corners and a 4-way shadow.
Parameters: boxClass - A base CSS class to apply to the containing wrapper element (defaults to 'x-box'). | native public ExtElement | center() Centers the Element in the viewport. | native public ExtElement | center(Element centerIn) Centers the Element in another Element.
Parameters: centerIn - the element in which to center the element. | native public Element | child(String selector) Selects a single child at any depth below this element based on the passed CSS selector
(the selector should not contain an id). | native public ExtElement | clearPositioning() Clear positioning back to the default when the document was loaded. | native public ExtElement | clearPositioning(Position value) | native public boolean | contains(Element el) Whether this element is an ancestor of the passed element. | native public ExtElement | createChild(DomConfig config) Creates the passed DomHelper config and appends it to this element
Parameters: config - DomHelper element config object. | native public ExtElement | createChild(DomConfig config, Element insertBefore) Creates the passed DomHelper config and appends inserts it before the passed child element.
Parameters: config - DomHelper element config object. | native public ExtElement | createProxy(DomConfig config) Creates a proxy element of this element. | native public ExtElement | createProxy(DomConfig config, Element renderTo, boolean matchBox) Creates a proxy element of this element. | native public ExtElement | createProxy(String cls) Creates a proxy element of this element. | native public ExtElement | createProxy(String cls, Element renderTo, boolean matchBox) Creates a proxy element of this element. | native public Element | down(String selector) Selects a single *direct* child based on the passed CSS selector
(the selector should not contain an id). | native public Element | findParent(String selector) Looks at this node and then at parent nodes for a match of the passed simple selector
(e.g. | native public Element | findParent(String selector, Element container) Looks at this node and then at parent nodes for a match of the passed simple selector
(e.g. | native public Element | findParent(String selector, int maxDepth) Looks at this node and then at parent nodes for a match of the passed simple selector
(e.g. | native public Element | findParentNode(String selector, Element container) Looks at parent nodes for a match of the passed simple selector
(e.g. | native public Element | findParentNode(String selector, int maxDepth) Looks at parent nodes for a match of the passed simple selector
(e.g. | native public static ExtElement | fly(String id) Gets the globally shared flyweight Element, with the passed node as the active element. | native public static ExtElement | fly(String id, String named) Gets the globally shared flyweight ExtElement, with the passed node as the active element. | native public ExtElement | focus() Tries to focus the element. | native public static ExtElement | get(String id) Static method to retrieve ExtElement objects. | native public int[] | getAlignToXY(Element element, String anchorPosition) Gets the x,y coordinates to align this element with another element. | native public int[] | getAlignToXY(Element element, String anchorPosition, int[] offesets) Gets the x,y coordinates to align this element with another element. | native public int[] | getAnchorXY() Gets the x,y coordinates specified by the anchor position on the element. | native public int[] | getAnchorXY(String anchorPosition, boolean local, int width, int height) Gets the x,y coordinates specified by the anchor position on the element. | native public String | getAttributeNS(String namespace, String name) Returns the value of a namespaced attribute from the element's underlying DOM node. | native public int | getBorderWidth(Side side) Gets the width of the border for the specified side. | native public int | getBottom(boolean local) | native public Box | getBox() Return a Box that can be used to set another elements size/location to match this element. | native public Box | getBox(boolean contentBox, boolean local) Return a Box that can be used to set another elements size/location to match this element. | native public int[] | getCenterXY() | native public int | getClientWidth() Return the client width of the element. | native public String | getColor(String attr, String defaultValue) Return the CSS color for the specified CSS attribute. | native public String | getColor(String attr, String defaultValue, String prefix) Return the CSS color for the specified CSS attribute. | native public int | getComputedHeight() Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders
when needed to simulate offsetHeight when offsets aren't available. | native public int | getComputedWidth() Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders when
needed to simulate offsetWidth when offsets aren't available. | native public Element | getDOM() Retursn the underlying DOM Element. | native public Element | getFirstChild() Return the first child of this element. | native public int | getFrameWidth(Side side) Returns the sum width of the padding and borders for the passed side. | native public int | getHeight() Returns the offset height of the element. | native public int | getHeight(boolean contentHeight) Returns the offset height of the element. | native public int | getLeft() | native public int | getLeft(boolean local) Gets the left X coordinate. | native public Margins | getMargins() Returns the margins of this element. | native public int | getPadding(Side side) Gets the width of the padding for the specified side. | native public Element | getParentNode() | native public PositioningConfig | getPositioning() Gets a
PositioningConfig object with all CSS positioning properties. | native public Region | getRegion() Returns the region of the given element. | native public int[] | getScroll() Returns the current scroll position of the element. | native public Size | getSize() Returns the size of the element.. | native public String | getStyle(String property) Normalizes currentStyle and computedStyle. | native public int | getTop() Returns the top Y coordinate. | native public int | getTop(boolean local) Returns the top Y coordinate. | native public UpdateManager | getUpdateManager() Gets this element's
UpdateManager . | native public String | getValue() | native public float | getValueAsNumber() Returns the value of the "value" attribute as a number. | native public Size | getViewSize() Returns the width and height of the viewport. | native public int | getWidth() Returns the offset width of the element. | native public int | getWidth(boolean contentWidth) Returns the offset width of the element. | native public int | getX() Gets the current X position of the element based on page coordinates. | native public int[] | getXY() Gets the current position of the element based on page coordinates. | native public int | getY() Gets the current Y position of the element based on page coordinates. | native public boolean | hasClass(String className) Checks if the specified CSS class exists on this element's DOM node. | native public ExtElement | insertAfter(Element el) Inserts this element after the passed element in the DOM. | native public ExtElement | insertBefore(Element el) Inserts this element before the passed element in the DOM. | native public ExtElement | insertFirst(Element el) Inserts an element as the first child of the this element. | native public ExtElement | insertFirst(DomConfig config) Creates an element as the first child of the this element. | native public Element | insertHtmlAfterBegin(String html) Inserts an html fragment into this element. | native public Element | insertHtmlAfterEnd(String html) Inserts an html fragment into this element. | native public Element | insertHtmlBeforeBegin(String html) Inserts an html fragment into this element. | native public Element | insertHtmlBeforeEnd(String html) Inserts an html fragment into this element. | native public Element | insertSibling(Element el) Inserts the passed element as a sibling of this element. | native public ExtElement | insertSibling(Element el, boolean before) Inserts the passed element as a sibling of this element. | native public Element | insertSibling(DomConfig config) Created the passed DomHelper config as a sibling of this element. | native public ExtElement | insertSibling(DomConfig config, boolean before) Created the passed DomHelper config as a sibling of this element. | native public boolean | is(String selector) Returns true if this element matches the passed simple selector (e.g. | native public boolean | isBorderBox() | native public boolean | isDisplayed() Returns true if display is not "none". | native public boolean | isMasked() Returns true if this element is masked. | native public boolean | isScrollable() Returns true if this element is scrollable. | native public boolean | isVisible() Checks whether the element is currently visible using both visibility and display properties. | native public boolean | isVisible(boolean deep) Checks whether the element is currently visible using both visibility and display properties. | native public ExtElement | mask() Puts a mask over this element to disable user interaction. | public ExtElement | mask(String msg) Puts a mask over this element to disable user interaction. | public ExtElement | mask(String msg, boolean animatedIcon) Puts a mask over this element to disable user interaction. | native public ExtElement | mask(String msg, String msgClass) Puts a mask over this element to disable user interaction. | native public Element | next() Gets the next sibling, skipping text nodes. | native public Element | next(String selector) Gets the next sibling, skipping text nodes. | native public void | position() Initializes positioning on this element. | native public void | position(Positioning pos, int zIndex, int x, int y) Initializes positioning on this element. | native public Element | prev() Gets the previous sibling, skipping text nodes. | native public Element | prev(String selector) Gets the previous sibling, skipping text nodes. | native public static Element[] | query(String selector) Selects child nodes based on the passed CSS selector (the selector should not contain an id). | native public ExtElement | replace(Element el) Replaces the passed element with this element. | native public ExtElement | scrollIntoView() Scrolls this element into view within the passed container. | native public ExtElement | scrollIntoView(Element container, boolean hscroll) | native public CompositeElement | select(String selector) Creates a CompositeElement for child nodes based on the passed CSS selector (the selector should not contain an id). | native public CompositeElement | select(String selector, boolean unique) Creates a CompositeElement for child nodes based on the passed CSS selector (the selector should not contain an id). | native public BaseElement | setPositioning(PositioningConfig posCfg) Set positioning with an object returned by getPositioning(). | native public int[] | translatePoints(int x, int y) | native public ExtElement | unclip() Return clipping (overflow) to original clipping before clip() was called. | native public void | unmask() Removes a previously applied mask. | native public ExtElement | up(String selector, Element container) Walks up the dom looking for a parent node that matches the passed simple selector (e.g. | native public ExtElement | up(String selector, int maxDepth) Walks up the dom looking for a parent node that matches the passed simple selector (e.g. | native public void | update(String html, boolean loadScripts, Function callback) Update the innerHTML of this element, optionally searching for and processing scripts. |
ExtElement | protected ExtElement()(Code) | | |
ExtElement | public ExtElement(JavaScriptObject jsObj)(Code) | | Create an ExtElement using an existing native element.
Parameters: jsObj - native Element object |
ExtElement | public ExtElement(Element elem)(Code) | | Create an ExtElement wrapper around en existing DOM Element.
Parameters: elem - the DOM Element |
ExtElement | public ExtElement(Element elem, boolean forceNew)(Code) | | Create an ExtElement wrapper around an existing DOM Element.
Parameters: elem - the DOM Element Parameters: forceNew - by default the constructor checks to see if there is already an instance of this element in the cache and if there is it returns the same instance.Passing true will skip that check (useful for extending this class) |
appendChild | native public ExtElement appendChild(Element child)(Code) | | Appends the passed element to this element.
Parameters: child - the child element this |
appendTo | native public ExtElement appendTo(Element el)(Code) | | Appends this element to the passed element.
Parameters: el - the new parent element this |
blur | native public ExtElement blur()(Code) | | Tries to blur the element. Any exceptions are caught and ignored.
this |
boxWrap | native public ExtElement boxWrap()(Code) | | Wraps the specified element with a special markup/CSS block that renders by default as a gray container with a gradient background,
rounded corners and a 4-way shadow.
this |
boxWrap | native public ExtElement boxWrap(String boxClass)(Code) | | Wraps the specified element with a special markup/CSS block that renders by default as a gray container with a gradient background,
rounded corners and a 4-way shadow.
Parameters: boxClass - A base CSS class to apply to the containing wrapper element (defaults to 'x-box'). Note that there are a number ofCSS rules that are dependent on this name to make the overall effect work, so if you supply an alternate base class, make sure you also supply all of the necessary rules. this |
center | native public ExtElement center()(Code) | | Centers the Element in the viewport.
this |
center | native public ExtElement center(Element centerIn)(Code) | | Centers the Element in another Element.
Parameters: centerIn - the element in which to center the element. this |
child | native public Element child(String selector)(Code) | | Selects a single child at any depth below this element based on the passed CSS selector
(the selector should not contain an id).
Parameters: selector - the CSS selector child element |
clearPositioning | native public ExtElement clearPositioning()(Code) | | Clear positioning back to the default when the document was loaded.
this |
clearPositioning | native public ExtElement clearPositioning(Position value)(Code) | | Clear positioning back to the default when the document was loaded
Parameters: value - the position value this |
contains | native public boolean contains(Element el)(Code) | | Whether this element is an ancestor of the passed element.
Parameters: el - the element to check true if this element is an ancestor of the passed element |
createChild | native public ExtElement createChild(DomConfig config)(Code) | | Creates the passed DomHelper config and appends it to this element
Parameters: config - DomHelper element config object. If no tag is specified (e.g., {tag:'input'}) then a div will be automatically generated with the specified attributes. the new child element |
createChild | native public ExtElement createChild(DomConfig config, Element insertBefore)(Code) | | Creates the passed DomHelper config and appends inserts it before the passed child element.
Parameters: config - DomHelper element config object. If no tag is specified (e.g., {tag:'input'}) then a div will be automatically generated with the specified attributes. Parameters: insertBefore - a child element of this element the new child element |
createProxy | native public ExtElement createProxy(DomConfig config)(Code) | | Creates a proxy element of this element.
Parameters: config - DomHelper config object the new proxy element |
createProxy | native public ExtElement createProxy(DomConfig config, Element renderTo, boolean matchBox)(Code) | | Creates a proxy element of this element.
Parameters: config - DomHelper config object Parameters: renderTo - The element render the proxy to Parameters: matchBox - true to align and size the proxy to this element now (defaults to false) the new proxy element |
createProxy | native public ExtElement createProxy(String cls)(Code) | | Creates a proxy element of this element.
Parameters: cls - the class name of the proxy element the new proxy element |
createProxy | native public ExtElement createProxy(String cls, Element renderTo, boolean matchBox)(Code) | | Creates a proxy element of this element.
Parameters: cls - the class name of the proxy element Parameters: renderTo - The element render the proxy to Parameters: matchBox - true to align and size the proxy to this element now (defaults to false) the new proxy element |
down | native public Element down(String selector)(Code) | | Selects a single *direct* child based on the passed CSS selector
(the selector should not contain an id).
Parameters: selector - the CSS selector the child element |
findParent | native public Element findParent(String selector)(Code) | | Looks at this node and then at parent nodes for a match of the passed simple selector
(e.g. div.some-class or span:first-child)
Parameters: selector - the simple selector to test the matching element of null if no node found |
findParent | native public Element findParent(String selector, Element container)(Code) | | Looks at this node and then at parent nodes for a match of the passed simple selector
(e.g. div.some-class or span:first-child)
Parameters: selector - the simple selector to test Parameters: container - search until container element is reached the matching element of null if no node found |
findParent | native public Element findParent(String selector, int maxDepth)(Code) | | Looks at this node and then at parent nodes for a match of the passed simple selector
(e.g. div.some-class or span:first-child)
Parameters: selector - the simple selector to test Parameters: maxDepth - the max depth to search as a number (defaults to 10) the matching element of null if no node found |
findParentNode | native public Element findParentNode(String selector, Element container)(Code) | | Looks at parent nodes for a match of the passed simple selector
(e.g. div.some-class or span:first-child)
Parameters: selector - the simple selector to test Parameters: container - search until container element is reached the matching element of null if no node found |
findParentNode | native public Element findParentNode(String selector, int maxDepth)(Code) | | Looks at parent nodes for a match of the passed simple selector
(e.g. div.some-class or span:first-child)
Parameters: selector - the simple selector to test Parameters: maxDepth - the max depth to search as a number (defaults to 10) the matching element of null if no node found |
fly | native public static ExtElement fly(String id)(Code) | | Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element -
the dom node can be overwritten by other code.
Parameters: id - the Element id the shared ExtElement object |
fly | native public static ExtElement fly(String id, String named)(Code) | | Gets the globally shared flyweight ExtElement, with the passed node as the active element. Do not store a reference to this element -
the dom node can be overwritten by other code.
Parameters: id - the Element id Parameters: named - allows for creation of named reusable flyweights to prevent conflicts (e.g. internally Ext uses "_internal") the shared ExtElement object |
focus | native public ExtElement focus()(Code) | | Tries to focus the element. Any exceptions are caught and ignored.
this |
get | native public static ExtElement get(String id)(Code) | | Static method to retrieve ExtElement objects. Uses simple caching to consistently return the same object. Automatically fixes
if an object was recreated with the same id via AJAX or DOM.
Parameters: id - the id of Element the ExtElement object |
getAlignToXY | native public int[] getAlignToXY(Element element, String anchorPosition)(Code) | | Gets the x,y coordinates to align this element with another element.
Parameters: element - The element to align to Parameters: anchorPosition - the element's anchor point an array containing the element's x and y coordinates |
getAlignToXY | native public int[] getAlignToXY(Element element, String anchorPosition, int[] offesets)(Code) | | Gets the x,y coordinates to align this element with another element.
Parameters: element - The element to align to. Parameters: anchorPosition - the element's anchor point Parameters: offesets - offset the positioning by [x, y] an array containing the element's x and y coordinates |
getAnchorXY | native public int[] getAnchorXY()(Code) | | Gets the x,y coordinates specified by the anchor position on the element.
an array containing the element's x and y coordinates |
getAnchorXY | native public int[] getAnchorXY(String anchorPosition, boolean local, int width, int height)(Code) | | Gets the x,y coordinates specified by the anchor position on the element.
Parameters: anchorPosition - the specified anchor position. Parameters: local - true to get the local (element top/left-relative) anchor position instead of page coordinates Parameters: width - width to use for calculating anchor position Parameters: height - height to use for calculating anchor position an array containing the element's x and y coordinates |
getAttributeNS | native public String getAttributeNS(String namespace, String name)(Code) | | Returns the value of a namespaced attribute from the element's underlying DOM node.
Parameters: namespace - the namespace in which to look for the attribute Parameters: name - the attribute name the attribute value |
getBorderWidth | native public int getBorderWidth(Side side)(Code) | | Gets the width of the border for the specified side.
Parameters: side - the side width of the side |
getBottom | native public int getBottom(boolean local)(Code) | | Gets the bottom Y coordinate of the element (element Y position + element height)
Parameters: local - true to get the local css position instead of page coordinate the bottom Y coordinate |
getBox | native public Box getBox()(Code) | | Return a Box that can be used to set another elements size/location to match this element.
the box object |
getBox | native public Box getBox(boolean contentBox, boolean local)(Code) | | Return a Box that can be used to set another elements size/location to match this element.
Parameters: contentBox - if true a box for the content of the element is returned. Parameters: local - if true the element's left and top are returned instead of page x/y the box object |
getCenterXY | native public int[] getCenterXY()(Code) | | Calculates the x, y to center this element on the screen
the x, y values [ |
getClientWidth | native public int getClientWidth()(Code) | | Return the client width of the element.
the client width |
getColor | native public String getColor(String attr, String defaultValue)(Code) | | Return the CSS color for the specified CSS attribute. rgb, 3 digit (like #fff) and valid values are convert
to standard 6 digit hex color.
Parameters: attr - the css attribute Parameters: defaultValue - the default value to use when a valid color isn't found the css color |
getColor | native public String getColor(String attr, String defaultValue, String prefix)(Code) | | Return the CSS color for the specified CSS attribute. rgb, 3 digit (like #fff) and valid values are convert
to standard 6 digit hex color.
Parameters: attr - the css attribute Parameters: defaultValue - the default value to use when a valid color isn't found Parameters: prefix - defaults to #. Use an empty string when working with YUI color anims. the css color |
getComputedHeight | native public int getComputedHeight()(Code) | | Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders
when needed to simulate offsetHeight when offsets aren't available. This may not work on display:none elements if
a height has not been set using CSS.
the computed height |
getComputedWidth | native public int getComputedWidth()(Code) | | Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders when
needed to simulate offsetWidth when offsets aren't available. This may not work on display:none elements if a width
has not been set using CSS.
the computed width |
getDOM | native public Element getDOM()(Code) | | Retursn the underlying DOM Element.
the DOM element |
getFirstChild | native public Element getFirstChild()(Code) | | Return the first child of this element.
the first child |
getFrameWidth | native public int getFrameWidth(Side side)(Code) | | Returns the sum width of the padding and borders for the passed side.
Parameters: side - the side sum of padding and border for the side |
getHeight | native public int getHeight()(Code) | | Returns the offset height of the element.
the element's height |
getHeight | native public int getHeight(boolean contentHeight)(Code) | | Returns the offset height of the element.
Parameters: contentHeight - true to get the height minus borders and padding the element's height |
getLeft | native public int getLeft()(Code) | | Gets the left X coordinate
the left coordinate. |
getLeft | native public int getLeft(boolean local)(Code) | | Gets the left X coordinate.
Parameters: local - true to get the local css position instead of page coordinate the X cooridinate |
getMargins | native public Margins getMargins()(Code) | | Returns the margins of this element.
the margin |
getPadding | native public int getPadding(Side side)(Code) | | Gets the width of the padding for the specified side.
Parameters: side - the side padding |
getParentNode | native public Element getParentNode()(Code) | | Return the parent node of this element,
the parent node |
getPositioning | native public PositioningConfig getPositioning()(Code) | | Gets a
PositioningConfig object with all CSS positioning properties. Useful along with setPostioning to get snapshot before
performing an update and then restoring the element.
positioning config object |
getRegion | native public Region getRegion()(Code) | | Returns the region of the given element. The element must be part of the DOM tree to have a region
(display:none or elements not appended return false).
region of the element |
getScroll | native public int[] getScroll()(Code) | | Returns the current scroll position of the element.
array of left and top scroll position |
getSize | native public Size getSize()(Code) | | Returns the size of the element..
element size |
getStyle | native public String getStyle(String property)(Code) | | Normalizes currentStyle and computedStyle.
Parameters: property - the style property whose value is returned the current value of the style property for this element |
getTop | native public int getTop()(Code) | | Returns the top Y coordinate.
the Y coordinate |
getTop | native public int getTop(boolean local)(Code) | | Returns the top Y coordinate.
Parameters: local - true to get the local css position instead of page coordinate the top Y coordinate |
getValue | native public String getValue()(Code) | | Returns the value of the "value" attribute
the value |
getValueAsNumber | native public float getValueAsNumber()(Code) | | Returns the value of the "value" attribute as a number.
tried to parse the value as number |
getViewSize | native public Size getViewSize()(Code) | | Returns the width and height of the viewport.
the viewport's Size |
getWidth | native public int getWidth()(Code) | | Returns the offset width of the element.
the elements width |
getWidth | native public int getWidth(boolean contentWidth)(Code) | | Returns the offset width of the element.
Parameters: contentWidth - true to get the width minus borders and padding the elemetns width |
getX | native public int getX()(Code) | | Gets the current X position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates
(display:none or elements not appended return false).
the X position of the element |
getXY | native public int[] getXY()(Code) | | Gets the current position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates
(display:none or elements not appended return false).
the XY position of the element |
getY | native public int getY()(Code) | | Gets the current Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates
(display:none or elements not appended return false).
the Y position of the element |
hasClass | native public boolean hasClass(String className)(Code) | | Checks if the specified CSS class exists on this element's DOM node.
Parameters: className - the CSS class to check for true if the class exists, else false |
insertAfter | native public ExtElement insertAfter(Element el)(Code) | | Inserts this element after the passed element in the DOM.
Parameters: el - the element to insert after this |
insertBefore | native public ExtElement insertBefore(Element el)(Code) | | Inserts this element before the passed element in the DOM.
Parameters: el - the element to insert before this |
insertFirst | native public ExtElement insertFirst(Element el)(Code) | | Inserts an element as the first child of the this element.
Parameters: el - the element to insert this |
insertFirst | native public ExtElement insertFirst(DomConfig config)(Code) | | Creates an element as the first child of the this element.
Parameters: config - DomHelper config to create element the new child i |
insertHtmlAfterBegin | native public Element insertHtmlAfterBegin(String html)(Code) | | Inserts an html fragment into this element.
Parameters: html - the html fragment the inserted node (or nearest related if more than 1 inserted) |
insertHtmlAfterEnd | native public Element insertHtmlAfterEnd(String html)(Code) | | Inserts an html fragment into this element.
Parameters: html - the html fragment the inserted node (or nearest related if more than 1 inserted) |
insertHtmlBeforeBegin | native public Element insertHtmlBeforeBegin(String html)(Code) | | Inserts an html fragment into this element.
Parameters: html - the html fragment the inserted node (or nearest related if more than 1 inserted) |
insertHtmlBeforeEnd | native public Element insertHtmlBeforeEnd(String html)(Code) | | Inserts an html fragment into this element.
Parameters: html - the html fragment the inserted node (or nearest related if more than 1 inserted) |
insertSibling | native public Element insertSibling(Element el)(Code) | | Inserts the passed element as a sibling of this element.
Parameters: el - the element to insert the inserted element |
insertSibling | native public ExtElement insertSibling(Element el, boolean before)(Code) | | Inserts the passed element as a sibling of this element.
Parameters: el - the element to insert Parameters: before - insert before or after the inserted element |
insertSibling | native public Element insertSibling(DomConfig config)(Code) | | Created the passed DomHelper config as a sibling of this element.
Parameters: config - the DomHelper config the inserted element |
insertSibling | native public ExtElement insertSibling(DomConfig config, boolean before)(Code) | | Created the passed DomHelper config as a sibling of this element.
Parameters: config - the DomHelper config Parameters: before - to insert before or after the inserted element |
is | native public boolean is(String selector)(Code) | | Returns true if this element matches the passed simple selector (e.g. div.some-class or span:first-child)
Parameters: selector - the simple selector to test true if this element matches the selector, else false |
isBorderBox | native public boolean isBorderBox()(Code) | | Tests various css rules/browsers to determine if this element uses a border box
true is element uses border box |
isDisplayed | native public boolean isDisplayed()(Code) | | Returns true if display is not "none".
true if display is not "none" |
isMasked | native public boolean isMasked()(Code) | | Returns true if this element is masked.
true if this element is masked |
isScrollable | native public boolean isScrollable()(Code) | | Returns true if this element is scrollable.
true if this element is scrollable |
isVisible | native public boolean isVisible()(Code) | | Checks whether the element is currently visible using both visibility and display properties.
true if visible |
isVisible | native public boolean isVisible(boolean deep)(Code) | | Checks whether the element is currently visible using both visibility and display properties.
Parameters: deep - true to walk the dom and see if parent elements are hidden (defaults to false) true if visible |
mask | native public ExtElement mask()(Code) | | Puts a mask over this element to disable user interaction. This method can only be applied to elements which accept child nodes.
the mask element |
mask | public ExtElement mask(String msg)(Code) | | Puts a mask over this element to disable user interaction. This method can only be applied to elements which accept child nodes.
By default an animated loading icon is added.
Parameters: msg - a message to display in the mask the mask element |
mask | public ExtElement mask(String msg, boolean animatedIcon)(Code) | | Puts a mask over this element to disable user interaction. This method can only be applied to elements which accept child nodes.
By default an animated loading icon is added.
Parameters: msg - a message to display in the mask Parameters: animatedIcon - true to add animated loading icon, false to skip the mask element |
mask | native public ExtElement mask(String msg, String msgClass)(Code) | | Puts a mask over this element to disable user interaction. This method can only be applied to elements which accept child nodes.
Parameters: msg - a message to display in the mask Parameters: msgClass - a css class to apply to the msg element the mask element |
next | native public Element next()(Code) | | Gets the next sibling, skipping text nodes.
the next sibling or null |
next | native public Element next(String selector)(Code) | | Gets the next sibling, skipping text nodes.
Parameters: selector - Find the next sibling that matches the passed simple selector the next sibling or null |
position | native public void position()(Code) | | Initializes positioning on this element. The element will be positioned relative IF it is not already positioned
|
position | native public void position(Positioning pos, int zIndex, int x, int y)(Code) | | Initializes positioning on this element.
Parameters: pos - positioning to use Parameters: zIndex - the zIndex to apply Parameters: x - set the page X position Parameters: y - set the page Y position |
prev | native public Element prev()(Code) | | Gets the previous sibling, skipping text nodes.
the previous sibling or null |
prev | native public Element prev(String selector)(Code) | | Gets the previous sibling, skipping text nodes.
Parameters: selector - Find the previous sibling that matches the passed simple selector the previous sibling or null |
query | native public static Element[] query(String selector)(Code) | | Selects child nodes based on the passed CSS selector (the selector should not contain an id).
Parameters: selector - the CSS selector an array of the matched nodes |
replace | native public ExtElement replace(Element el)(Code) | | Replaces the passed element with this element.
Parameters: el - the element to replace this |
scrollIntoView | native public ExtElement scrollIntoView()(Code) | | Scrolls this element into view within the passed container.
this |
scrollIntoView | native public ExtElement scrollIntoView(Element container, boolean hscroll)(Code) | | Scrolls this element into view within the passed container
Parameters: container - the container element to scroll (defaults to document.body) Parameters: hscroll - false to disable horizontal scroll (defaults to true) this |
select | native public CompositeElement select(String selector)(Code) | | Creates a CompositeElement for child nodes based on the passed CSS selector (the selector should not contain an id).
Parameters: selector - the CSS selector the CompositeElement |
select | native public CompositeElement select(String selector, boolean unique)(Code) | | Creates a CompositeElement for child nodes based on the passed CSS selector (the selector should not contain an id).
Parameters: selector - the CSS selector Parameters: unique - true to create a unique ExtElement for each child (defaults to false, which creates a single shared flyweight object) the CompositeElement |
setPositioning | native public BaseElement setPositioning(PositioningConfig posCfg)(Code) | | Set positioning with an object returned by getPositioning().
Parameters: posCfg - the position config this |
translatePoints | native public int[] translatePoints(int x, int y)(Code) | | Translates the passed page coordinates into left/top css values for this element
Parameters: x - the page x Parameters: y - the page y array of left, top values |
unclip | native public ExtElement unclip()(Code) | | Return clipping (overflow) to original clipping before clip() was called.
this |
unmask | native public void unmask()(Code) | | Removes a previously applied mask. If removeEl is true the mask overlay is destroyed, otherwise it is cached for reuse.
|
up | native public ExtElement up(String selector, Element container)(Code) | | Walks up the dom looking for a parent node that matches the passed simple selector (e.g. div.some-class or span:first-child). This is a shortcut for findParentNode() that always returns an ExtElement
Parameters: selector - the simple selector to test Parameters: container - the container to stop at the matching DOM or null if no match was found |
up | native public ExtElement up(String selector, int maxDepth)(Code) | | Walks up the dom looking for a parent node that matches the passed simple selector (e.g. div.some-class or span:first-child). This is a shortcut for findParentNode() that always returns an ExtElement
Parameters: selector - the simple selector to test Parameters: maxDepth - The max depth to search (defaults to 10 || document.body) the matching DOM or null if no match was found |
update | native public void update(String html, boolean loadScripts, Function callback)(Code) | | Update the innerHTML of this element, optionally searching for and processing scripts.
Parameters: html - the new HTML Parameters: loadScripts - true to look for and process scripts Parameters: callback - for async script loading you can be notified when the update completes |
Methods inherited from com.gwtext.client.core.BaseElement | native public BaseElement addClass(String className)(Code)(Java Doc) native public BaseElement addClass(String[] classNames)(Code)(Java Doc) native public BaseElement addClassOnClick(String className)(Code)(Java Doc) native public BaseElement addClassOnFocus(String className)(Code)(Java Doc) native public BaseElement addClassOnOver(String className)(Code)(Java Doc) native public BaseElement addClassOnOver(String className, boolean preventFlicker)(Code)(Java Doc) native public KeyMap addKeyListener(int keyCode, KeyListener listener)(Code)(Java Doc) native public KeyMap addKeyListener(int[] keyCodes, KeyListener listener)(Code)(Java Doc) native public KeyMap addKeyListener(String keys, KeyListener listener)(Code)(Java Doc) native public KeyMap addKeyMap(KeyMapConfig config)(Code)(Java Doc) native public void addListener(String eventName, EventCallback cb)(Code)(Java Doc) native public void addListener(String eventName, EventCallback cb, ListenerConfig config)(Code)(Java Doc) public BaseElement alignTo(String id, String anchorPosition)(Code)(Java Doc) native public BaseElement alignTo(String id, String anchorPosition, int[] offsetXY, boolean animate)(Code)(Java Doc) native public BaseElement anchorTo(String id, String anchorPosition)(Code)(Java Doc) native public BaseElement anchorTo(String id, String anchorPosition, int[] offsetXY, boolean animate, int bufferDelay)(Code)(Java Doc) native public BaseElement animate(GenericConfig args)(Code)(Java Doc) native public BaseElement animate(GenericConfig args, float duration, Function onComplete, Easing easing, String animType)(Code)(Java Doc) native public BaseElement applyStyles(String style)(Code)(Java Doc) native public BaseElement autoHeight()(Code)(Java Doc) native public BaseElement autoHeight(boolean animate, float duration, Function onComplete, Easing easing)(Code)(Java Doc) native public void clean()(Code)(Java Doc) native public void clean(boolean forceClean)(Code)(Java Doc) native public BaseElement clearOpacity()(Code)(Java Doc) native public BaseElement clip()(Code)(Java Doc) native public ExtElement createShim()(Code)(Java Doc) native public BaseElement enableDisplayMode()(Code)(Java Doc) native public BaseElement enableDisplayMode(String display)(Code)(Java Doc) native public Fx fadeIn()(Code)(Java Doc) native public Fx fadeIn(FxConfig config)(Code)(Java Doc) native public Fx fadeOut()(Code)(Java Doc) native public Fx fadeOut(FxConfig config)(Code)(Java Doc) native public Fx frame()(Code)(Java Doc) native public Fx frame(String color, int count, FxConfig config)(Code)(Java Doc) native public Fx ghost()(Code)(Java Doc) native public Fx ghost(String anchorPosition, FxConfig config)(Code)(Java Doc) native public boolean hasActiveFx()(Code)(Java Doc) native public boolean hasFxBlock()(Code)(Java Doc) native public BaseElement hide()(Code)(Java Doc) native public BaseElement hide(boolean animate)(Code)(Java Doc) native public BaseElement hide(AnimationConfig animateConfig)(Code)(Java Doc) native public Fx highlight()(Code)(Java Doc) native public Fx highlight(String color, FxConfig config)(Code)(Java Doc) native public Fx highlight(String color, String attr, String endColor, FxConfig config)(Code)(Java Doc) native public BaseElement move(Direction direction, int distance)(Code)(Java Doc) native public BaseElement move(Direction direction, int distance, boolean animate)(Code)(Java Doc) native public BaseElement move(Direction direction, int distance, AnimationConfig animateConfig)(Code)(Java Doc) native public BaseElement moveTo(int x, int y)(Code)(Java Doc) native public BaseElement moveTo(int x, int y, boolean animate)(Code)(Java Doc) native public BaseElement moveTo(int x, int y, AnimationConfig animateConfig)(Code)(Java Doc) native public Fx pause(int seconds)(Code)(Java Doc) native public Fx puff()(Code)(Java Doc) native public Fx puff(boolean remove, FxConfig config)(Code)(Java Doc) native public BaseElement radioClass(String className)(Code)(Java Doc) native public BaseElement radioClass(String[] classNames)(Code)(Java Doc) native public void remove()(Code)(Java Doc) native public void removeAllListeners()(Code)(Java Doc) native public BaseElement removeClass(String className)(Code)(Java Doc) native public BaseElement removeClass(String[] classNames)(Code)(Java Doc) native public BaseElement repaint()(Code)(Java Doc) native public BaseElement replaceClass(String oldClassName, String newClassName)(Code)(Java Doc) native public Fx scale(int width, int height)(Code)(Java Doc) native public Fx scale(int width, int height, FxConfig config)(Code)(Java Doc) native public boolean scroll(Direction direction, int distance, boolean animate)(Code)(Java Doc) native public boolean scroll(Direction direction, int distance, AnimationConfig animateConfig)(Code)(Java Doc) native public BaseElement scrollTo(String side, int value, boolean animate)(Code)(Java Doc) native public BaseElement scrollTo(String side, int value, AnimationConfig animateConfig)(Code)(Java Doc) native public Fx sequenceFx()(Code)(Java Doc) native public BaseElement setBottom(String bottom)(Code)(Java Doc) native public BaseElement setBounds(int x, int y, int width, int height)(Code)(Java Doc) native public BaseElement setBounds(int x, int y, int width, int height, boolean animate)(Code)(Java Doc) native public BaseElement setBounds(int x, int y, int width, int height, AnimationConfig animateConfig)(Code)(Java Doc) native public BaseElement setBox(Box box)(Code)(Java Doc) native public BaseElement setBox(Box box, boolean adjust, boolean animate)(Code)(Java Doc) native public BaseElement setBox(Box box, boolean adjust, AnimationConfig animateConfig)(Code)(Java Doc) native public BaseElement setDisplayed(boolean value)(Code)(Java Doc) native public BaseElement setHeight(int height, boolean animate)(Code)(Java Doc) native public BaseElement setHeight(int height, AnimationConfig animateConfig)(Code)(Java Doc) native public BaseElement setLeft(String left)(Code)(Java Doc) native public BaseElement setLeftTop(String left, String top)(Code)(Java Doc) native public BaseElement setLocation(int x, int y, boolean animate)(Code)(Java Doc) native public BaseElement setLocation(int x, int y, AnimationConfig animateConfig)(Code)(Java Doc) native public BaseElement setOpacity(float opacity, boolean animate)(Code)(Java Doc) native public BaseElement setOpacity(float opacity, AnimationConfig animateConfig)(Code)(Java Doc) native public BaseElement setRegion(Region region, boolean animate)(Code)(Java Doc) native public BaseElement setRegion(Region region, AnimationConfig animateConfig)(Code)(Java Doc) native public BaseElement setRight(String right)(Code)(Java Doc) native public BaseElement setSize(int width, int height, boolean animate)(Code)(Java Doc) native public BaseElement setSize(int width, int height, AnimationConfig animateConfig)(Code)(Java Doc) native public BaseElement setStyle(String style, String value)(Code)(Java Doc) native public BaseElement setStyles(GenericConfig styles)(Code)(Java Doc) native public BaseElement setTop(String top)(Code)(Java Doc) native public BaseElement setVisibilityMode(boolean useVisibleProperty)(Code)(Java Doc) public BaseElement setVisible(boolean visible)(Code)(Java Doc) native public BaseElement setVisible(boolean visible, boolean animate)(Code)(Java Doc) native public BaseElement setVisible(boolean visible, AnimationConfig animateConfig)(Code)(Java Doc) native public BaseElement setWidth(int width, boolean animate)(Code)(Java Doc) native public BaseElement setWidth(String width, boolean animate)(Code)(Java Doc) native public BaseElement setWidth(int width, AnimationConfig animateConfig)(Code)(Java Doc) native public BaseElement setX(int x, boolean animate)(Code)(Java Doc) native public BaseElement setX(int x, AnimationConfig animateConfig)(Code)(Java Doc) native public BaseElement setXY(int x, int y, boolean animate)(Code)(Java Doc) native public BaseElement setXY(int x, int y, AnimationConfig animateConfig)(Code)(Java Doc) native public BaseElement setY(int y, boolean animate)(Code)(Java Doc) native public BaseElement setY(int y, AnimationConfig animateConfig)(Code)(Java Doc) native public Fx shift(int x, int y, int width, int height, FxConfig config)(Code)(Java Doc) native public BaseElement show(boolean animate)(Code)(Java Doc) native public BaseElement show(AnimationConfig animateConfig)(Code)(Java Doc) native public Fx slideIn()(Code)(Java Doc) native public Fx slideIn(String anchorPosition, FxConfig config)(Code)(Java Doc) native public Fx slideOut()(Code)(Java Doc) native public Fx slideOut(boolean remove, String anchorPosition, FxConfig config)(Code)(Java Doc) native public Fx stopFx()(Code)(Java Doc) native public BaseElement swallowEvent(String eventName)(Code)(Java Doc) native public BaseElement swallowEvent(String eventName, boolean preventDefault)(Code)(Java Doc) native public Fx switchOff()(Code)(Java Doc) native public Fx switchOff(boolean remove, FxConfig config)(Code)(Java Doc) native public Fx syncFx()(Code)(Java Doc) native public BaseElement toggle(boolean animate)(Code)(Java Doc) native public BaseElement toggle(AnimationConfig animateConfig)(Code)(Java Doc) native public BaseElement toggleClass(String className)(Code)(Java Doc) native public void unselectable()(Code)(Java Doc) public void update(String html)(Code)(Java Doc) native public void update(String html, boolean loadScripts)(Code)(Java Doc) native public Element wrap(DomConfig config)(Code)(Java Doc)
|
Fields inherited from com.gwtext.client.core.JsObject | protected JavaScriptObject jsObj(Code)(Java Doc)
|
|
|