Java Doc for ExtElement.java in  » Ajax » gwtext-2.01 » com » gwtext » client » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » gwtext 2.01 » com.gwtext.client.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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,
ExtElement
public class ExtElement extends BaseElement (Code)



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  ExtElementappendChild(Element child)
     Appends the passed element to this element.
native public  ExtElementappendTo(Element el)
     Appends this element to the passed element.
native public  ExtElementblur()
     Tries to blur the element.
native public  ExtElementboxWrap()
     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  ExtElementboxWrap(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  ExtElementcenter()
     Centers the Element in the viewport.
native public  ExtElementcenter(Element centerIn)
     Centers the Element in another Element.
Parameters:
  centerIn - the element in which to center the element.
native public  Elementchild(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  ExtElementclearPositioning()
     Clear positioning back to the default when the document was loaded.
native public  ExtElementclearPositioning(Position value)
    
native public  booleancontains(Element el)
     Whether this element is an ancestor of the passed element.
native public  ExtElementcreateChild(DomConfig config)
     Creates the passed DomHelper config and appends it to this element
Parameters:
  config - DomHelper element config object.
native public  ExtElementcreateChild(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  ExtElementcreateProxy(DomConfig config)
     Creates a proxy element of this element.
native public  ExtElementcreateProxy(DomConfig config, Element renderTo, boolean matchBox)
     Creates a proxy element of this element.
native public  ExtElementcreateProxy(String cls)
     Creates a proxy element of this element.
native public  ExtElementcreateProxy(String cls, Element renderTo, boolean matchBox)
     Creates a proxy element of this element.
native public  Elementdown(String selector)
     Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id).
native public  ElementfindParent(String selector)
     Looks at this node and then at parent nodes for a match of the passed simple selector (e.g.
native public  ElementfindParent(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  ElementfindParent(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  ElementfindParentNode(String selector, Element container)
     Looks at parent nodes for a match of the passed simple selector (e.g.
native public  ElementfindParentNode(String selector, int maxDepth)
     Looks at parent nodes for a match of the passed simple selector (e.g.
native public static  ExtElementfly(String id)
     Gets the globally shared flyweight Element, with the passed node as the active element.
native public static  ExtElementfly(String id, String named)
     Gets the globally shared flyweight ExtElement, with the passed node as the active element.
native public  ExtElementfocus()
     Tries to focus the element.
native public static  ExtElementget(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  StringgetAttributeNS(String namespace, String name)
     Returns the value of a namespaced attribute from the element's underlying DOM node.
native public  intgetBorderWidth(Side side)
     Gets the width of the border for the specified side.
native public  intgetBottom(boolean local)
    
native public  BoxgetBox()
     Return a Box that can be used to set another elements size/location to match this element.
native public  BoxgetBox(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  intgetClientWidth()
     Return the client width of the element.
native public  StringgetColor(String attr, String defaultValue)
     Return the CSS color for the specified CSS attribute.
native public  StringgetColor(String attr, String defaultValue, String prefix)
     Return the CSS color for the specified CSS attribute.
native public  intgetComputedHeight()
     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  intgetComputedWidth()
     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  ElementgetDOM()
     Retursn the underlying DOM Element.
native public  ElementgetFirstChild()
     Return the first child of this element.
native public  intgetFrameWidth(Side side)
     Returns the sum width of the padding and borders for the passed side.
native public  intgetHeight()
     Returns the offset height of the element.
native public  intgetHeight(boolean contentHeight)
     Returns the offset height of the element.
native public  intgetLeft()
    
native public  intgetLeft(boolean local)
     Gets the left X coordinate.
native public  MarginsgetMargins()
     Returns the margins of this element.
native public  intgetPadding(Side side)
     Gets the width of the padding for the specified side.
native public  ElementgetParentNode()
    
native public  PositioningConfiggetPositioning()
     Gets a PositioningConfig object with all CSS positioning properties.
native public  RegiongetRegion()
     Returns the region of the given element.
native public  int[]getScroll()
     Returns the current scroll position of the element.
native public  SizegetSize()
     Returns the size of the element..
native public  StringgetStyle(String property)
     Normalizes currentStyle and computedStyle.
native public  intgetTop()
     Returns the top Y coordinate.
native public  intgetTop(boolean local)
     Returns the top Y coordinate.
native public  UpdateManagergetUpdateManager()
     Gets this element's UpdateManager .
native public  StringgetValue()
    
native public  floatgetValueAsNumber()
     Returns the value of the "value" attribute as a number.
native public  SizegetViewSize()
     Returns the width and height of the viewport.
native public  intgetWidth()
     Returns the offset width of the element.
native public  intgetWidth(boolean contentWidth)
     Returns the offset width of the element.
native public  intgetX()
     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  intgetY()
     Gets the current Y position of the element based on page coordinates.
native public  booleanhasClass(String className)
     Checks if the specified CSS class exists on this element's DOM node.
native public  ExtElementinsertAfter(Element el)
     Inserts this element after the passed element in the DOM.
native public  ExtElementinsertBefore(Element el)
     Inserts this element before the passed element in the DOM.
native public  ExtElementinsertFirst(Element el)
     Inserts an element as the first child of the this element.
native public  ExtElementinsertFirst(DomConfig config)
     Creates an element as the first child of the this element.
native public  ElementinsertHtmlAfterBegin(String html)
     Inserts an html fragment into this element.
native public  ElementinsertHtmlAfterEnd(String html)
     Inserts an html fragment into this element.
native public  ElementinsertHtmlBeforeBegin(String html)
     Inserts an html fragment into this element.
native public  ElementinsertHtmlBeforeEnd(String html)
     Inserts an html fragment into this element.
native public  ElementinsertSibling(Element el)
     Inserts the passed element as a sibling of this element.
native public  ExtElementinsertSibling(Element el, boolean before)
     Inserts the passed element as a sibling of this element.
native public  ElementinsertSibling(DomConfig config)
     Created the passed DomHelper config as a sibling of this element.
native public  ExtElementinsertSibling(DomConfig config, boolean before)
     Created the passed DomHelper config as a sibling of this element.
native public  booleanis(String selector)
     Returns true if this element matches the passed simple selector (e.g.
native public  booleanisBorderBox()
    
native public  booleanisDisplayed()
     Returns true if display is not "none".
native public  booleanisMasked()
     Returns true if this element is masked.
native public  booleanisScrollable()
     Returns true if this element is scrollable.
native public  booleanisVisible()
     Checks whether the element is currently visible using both visibility and display properties.
native public  booleanisVisible(boolean deep)
     Checks whether the element is currently visible using both visibility and display properties.
native public  ExtElementmask()
     Puts a mask over this element to disable user interaction.
public  ExtElementmask(String msg)
     Puts a mask over this element to disable user interaction.
public  ExtElementmask(String msg, boolean animatedIcon)
     Puts a mask over this element to disable user interaction.
native public  ExtElementmask(String msg, String msgClass)
     Puts a mask over this element to disable user interaction.
native public  Elementnext()
     Gets the next sibling, skipping text nodes.
native public  Elementnext(String selector)
     Gets the next sibling, skipping text nodes.
native public  voidposition()
     Initializes positioning on this element.
native public  voidposition(Positioning pos, int zIndex, int x, int y)
     Initializes positioning on this element.
native public  Elementprev()
     Gets the previous sibling, skipping text nodes.
native public  Elementprev(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  ExtElementreplace(Element el)
     Replaces the passed element with this element.
native public  ExtElementscrollIntoView()
     Scrolls this element into view within the passed container.
native public  ExtElementscrollIntoView(Element container, boolean hscroll)
    
native public  CompositeElementselect(String selector)
     Creates a CompositeElement for child nodes based on the passed CSS selector (the selector should not contain an id).
native public  CompositeElementselect(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  BaseElementsetPositioning(PositioningConfig posCfg)
     Set positioning with an object returned by getPositioning().
native public  int[]translatePoints(int x, int y)
    
native public  ExtElementunclip()
     Return clipping (overflow) to original clipping before clip() was called.
native public  voidunmask()
     Removes a previously applied mask.
native public  ExtElementup(String selector, Element container)
     Walks up the dom looking for a parent node that matches the passed simple selector (e.g.
native public  ExtElementup(String selector, int maxDepth)
     Walks up the dom looking for a parent node that matches the passed simple selector (e.g.
native public  voidupdate(String html, boolean loadScripts, Function callback)
     Update the innerHTML of this element, optionally searching for and processing scripts.


Constructor Detail
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)




Method Detail
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



getUpdateManager
native public UpdateManager getUpdateManager()(Code)
Gets this element's UpdateManager . the UpdateManager



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)

Methods inherited from com.gwtext.client.core.JsObject
public JavaScriptObject getJsObj()(Code)(Java Doc)
native public String[] getProperties()(Code)(Java Doc)
protected boolean isCreated()(Code)(Java Doc)
public void setJsObj(JavaScriptObject jsObj)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.