Java Doc for BaseElement.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

All known Subclasses:   com.gwtext.client.core.CompositeElement,  com.gwtext.client.core.ExtElement,
BaseElement
public class BaseElement extends JsObject implements Fx(Code)
Represents a base Element in the DOM.



Constructor Summary
protected  BaseElement()
    
public  BaseElement(JavaScriptObject jsObj)
    

Method Summary
native public  BaseElementaddClass(String className)
     Adds a CSS class to the element.
native public  BaseElementaddClass(String[] classNames)
     Adds CSS classes to the element.
native public  BaseElementaddClassOnClick(String className)
     Sets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect).
native public  BaseElementaddClassOnFocus(String className)
    
native public  BaseElementaddClassOnOver(String className)
    
native public  BaseElementaddClassOnOver(String className, boolean preventFlicker)
     Sets up event handlers to add and remove a css class when the mouse is over this element.
native public  KeyMapaddKeyListener(int keyCode, KeyListener listener)
     Convenience method for constructing a KeyMap.
native public  KeyMapaddKeyListener(int[] keyCodes, KeyListener listener)
     Convenience method for constructing a KeyMap.
native public  KeyMapaddKeyListener(String keys, KeyListener listener)
     Convenience method for constructing a KeyMap.
native public  KeyMapaddKeyMap(KeyMapConfig config)
     Convenience method for constructing a KeyMap.
native public  voidaddListener(String eventName, EventCallback cb)
     Appends an event handler.
native public  voidaddListener(String eventName, EventCallback cb, ListenerConfig config)
     Appends an event handler.
public  BaseElementalignTo(String id, String anchorPosition)
     Aligns this element with another element relative to the specified anchor points.
native public  BaseElementalignTo(String id, String anchorPosition, int[] offsetXY, boolean animate)
     Aligns this element with another element relative to the specified anchor points.
native public  BaseElementanchorTo(String id, String anchorPosition)
     Aligns this element with another element relative to the specified anchor points.
native public  BaseElementanchorTo(String id, String anchorPosition, int[] offsetXY, boolean animate, int bufferDelay)
     Aligns this element with another element relative to the specified anchor points.
native public  BaseElementanimate(GenericConfig args)
     Perform animation on this element.
native public  BaseElementanimate(GenericConfig args, float duration, Function onComplete, Easing easing, String animType)
     Perform animation on this element.
Parameters:
  args - animation control args
Parameters:
  duration - how long the animation lasts in seconds (defaults to .35)
Parameters:
  onComplete - function to call when animation completes
Parameters:
  easing - Easing method to use (defaults to easeOut) easeOut.
native public  BaseElementapplyStyles(String style)
     More flexible version of BaseElement.setStyle for setting style properties.
Parameters:
  style - a style specification string, e.g.
native public  BaseElementautoHeight()
     Measures the element's content height and updates height to match.
native public  BaseElementautoHeight(boolean animate, float duration, Function onComplete, Easing easing)
     Measures the element's content height and updates height to match.
native public  voidclean()
     Removes worthless text nodes.
native public  voidclean(boolean forceClean)
     Removes worthless text nodes.
Parameters:
  forceClean - by default the element keeps track if it has been cleaned already so you can call this over and over.
native public  BaseElementclearOpacity()
     Clears any opacity settings from this element.
native public  BaseElementclip()
     Store the current overflow setting and clip overflow on the element - use unclip to remove.
native public  ExtElementcreateShim()
     Creates an iframe shim for this element to keep selects and other windowed objects from showing through.
native public  BaseElementenableDisplayMode()
    
native public  BaseElementenableDisplayMode(String display)
    
native public  FxfadeIn()
    
native public  FxfadeIn(FxConfig config)
    
native public  FxfadeOut()
    
native public  FxfadeOut(FxConfig config)
    
native public  Fxframe()
    
native public  Fxframe(String color, int count, FxConfig config)
    
native public  Fxghost()
    
native public  Fxghost(String anchorPosition, FxConfig config)
    
native public  booleanhasActiveFx()
    
native public  booleanhasFxBlock()
    
native public  BaseElementhide()
     Hide this element - Uses display mode to determine whether to use "display" or "visibility".
native public  BaseElementhide(boolean animate)
     Hide this element - Uses display mode to determine whether to use "display" or "visibility".
native public  BaseElementhide(AnimationConfig animateConfig)
     Hide this element - Uses display mode to determine whether to use "display" or "visibility".
native public  Fxhighlight()
    
native public  Fxhighlight(String color, FxConfig config)
    
native public  Fxhighlight(String color, String attr, String endColor, FxConfig config)
    
native public  BaseElementmove(Direction direction, int distance)
     Move this element relative to its current position.
native public  BaseElementmove(Direction direction, int distance, boolean animate)
     Move this element relative to its current position.
native public  BaseElementmove(Direction direction, int distance, AnimationConfig animateConfig)
     Move this element relative to its current position.
native public  BaseElementmoveTo(int x, int y)
     Sets the position of the element in page coordinates, regardless of how the element is positioned.
native public  BaseElementmoveTo(int x, int y, boolean animate)
     Sets the position of the element in page coordinates, regardless of how the element is positioned.
native public  BaseElementmoveTo(int x, int y, AnimationConfig animateConfig)
     Sets the position of the element in page coordinates, regardless of how the element is positioned.
native public  Fxpause(int seconds)
    
native public  Fxpuff()
    
native public  Fxpuff(boolean remove, FxConfig config)
    
native public  BaseElementradioClass(String className)
     Adds a CSS class to this element and removes the same class(es) from all siblings.
native public  BaseElementradioClass(String[] classNames)
     Adds one or more CSS classes to this element and removes the same class(es) from all siblings.
native public  voidremove()
     Removes this element from the DOM and deletes it from the cache.
native public  voidremoveAllListeners()
     Removes all previous added listeners from this element.
native public  BaseElementremoveClass(String className)
     Removes the CSS classes from the element.
native public  BaseElementremoveClass(String[] classNames)
     Removes the CSS classes from the element.
native public  BaseElementrepaint()
     Forces the browser to repaint this element.
native public  BaseElementreplaceClass(String oldClassName, String newClassName)
     Replaces a CSS class on the element with another.
native public  Fxscale(int width, int height)
    
native public  Fxscale(int width, int height, FxConfig config)
    
native public  booleanscroll(Direction direction, int distance, boolean animate)
     Scrolls this element the specified direction.
native public  booleanscroll(Direction direction, int distance, AnimationConfig animateConfig)
     Scrolls this element the specified direction.
native public  BaseElementscrollTo(String side, int value, boolean animate)
     Scrolls this element the specified scroll point.
native public  BaseElementscrollTo(String side, int value, AnimationConfig animateConfig)
     Scrolls this element the specified scroll point.
native public  FxsequenceFx()
    
native public  BaseElementsetBottom(String bottom)
     Sets the element's CSS bottom style.
native public  BaseElementsetBounds(int x, int y, int width, int height)
     Sets the element's position and size in one shot.
native public  BaseElementsetBounds(int x, int y, int width, int height, boolean animate)
     Sets the element's position and size in one shot.
native public  BaseElementsetBounds(int x, int y, int width, int height, AnimationConfig animateConfig)
     Sets the element's position and size in one shot.
native public  BaseElementsetBox(Box box)
     Sets the element's box.
native public  BaseElementsetBox(Box box, boolean adjust, boolean animate)
     Sets the element's box.
native public  BaseElementsetBox(Box box, boolean adjust, AnimationConfig animateConfig)
     Sets the element's box.
native public  BaseElementsetDisplayed(boolean value)
     Sets the CSS display property.
native public  BaseElementsetHeight(int height, boolean animate)
     Set the height of the element.
native public  BaseElementsetHeight(int height, AnimationConfig animateConfig)
     Set the height of the element.
native public  BaseElementsetLeft(String left)
     Sets the element's left position directly using CSS style (instead of setX).
native public  BaseElementsetLeftTop(String left, String top)
     Quick set left and top adding default units.
native public  BaseElementsetLocation(int x, int y, boolean animate)
     Sets the position of the element in page coordinates, regardless of how the element is positioned.
native public  BaseElementsetLocation(int x, int y, AnimationConfig animateConfig)
     Sets the position of the element in page coordinates, regardless of how the element is positioned.
native public  BaseElementsetOpacity(float opacity, boolean animate)
     Set the opacity of the element.
Parameters:
  opacity - the new opacity.
native public  BaseElementsetOpacity(float opacity, AnimationConfig animateConfig)
     Set the opacity of the element.
Parameters:
  opacity - the new opacity.
native public  BaseElementsetRegion(Region region, boolean animate)
     Sets the element's position and size the the specified region.
native public  BaseElementsetRegion(Region region, AnimationConfig animateConfig)
     Sets the element's position and size the the specified region.
native public  BaseElementsetRight(String right)
     Sets the element's CSS right style.
native public  BaseElementsetSize(int width, int height, boolean animate)
     Set the size of the element.
native public  BaseElementsetSize(int width, int height, AnimationConfig animateConfig)
     Set the size of the element.
native public  BaseElementsetStyle(String style, String value)
     Wrapper for setting style properties.
native public  BaseElementsetStyles(GenericConfig styles)
     Wrapper for setting style properties.
native public  BaseElementsetTop(String top)
     Sets the element's top position directly using CSS style (instead of setY).
native public  BaseElementsetVisibilityMode(boolean useVisibleProperty)
     Sets the element's visibility mode.
public  BaseElementsetVisible(boolean visible)
     Sets the visibility of the element.
native public  BaseElementsetVisible(boolean visible, boolean animate)
     Sets the visibility of the element.
native public  BaseElementsetVisible(boolean visible, AnimationConfig animateConfig)
     Sets the visibility of the element.
native public  BaseElementsetWidth(int width, boolean animate)
     Set the width of the element.
native public  BaseElementsetWidth(String width, boolean animate)
     Set the width of the element.
native public  BaseElementsetWidth(int width, AnimationConfig animateConfig)
     Set the width of the element.
native public  BaseElementsetX(int x, boolean animate)
     Sets the X position of the element based on page coordinates.
native public  BaseElementsetX(int x, AnimationConfig animateConfig)
     Sets the X position of the element based on page coordinates.
native public  BaseElementsetXY(int x, int y, boolean animate)
     Sets the position of the element in page coordinates, regardless of how the element is positioned.
native public  BaseElementsetXY(int x, int y, AnimationConfig animateConfig)
     Sets the position of the element in page coordinates, regardless of how the element is positioned.
native public  BaseElementsetY(int y, boolean animate)
     Sets the Y position of the element based on page coordinates.
native public  BaseElementsetY(int y, AnimationConfig animateConfig)
     Sets the Y position of the element based on page coordinates.
native public  Fxshift(int x, int y, int width, int height, FxConfig config)
    
native public  BaseElementshow(boolean animate)
     Show this element - Uses display mode to determine whether to use "display" or "visibility".
native public  BaseElementshow(AnimationConfig animateConfig)
     Show this element - Uses display mode to determine whether to use "display" or "visibility".
native public  FxslideIn()
    
native public  FxslideIn(String anchorPosition, FxConfig config)
    
native public  FxslideOut()
    
native public  FxslideOut(boolean remove, String anchorPosition, FxConfig config)
    
native public  FxstopFx()
    
native public  BaseElementswallowEvent(String eventName)
     Stops the specified event from bubbling and optionally prevents the default action.
native public  BaseElementswallowEvent(String eventName, boolean preventDefault)
     Stops the specified event from bubbling and optionally prevents the default action.
native public  FxswitchOff()
    
native public  FxswitchOff(boolean remove, FxConfig config)
    
native public  FxsyncFx()
    
native public  BaseElementtoggle(boolean animate)
     Toggles the element's visibility or display, depending on visibility mode.
native public  BaseElementtoggle(AnimationConfig animateConfig)
     Toggles the element's visibility or display, depending on visibility mode.
native public  BaseElementtoggleClass(String className)
     Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it).
native public  voidunselectable()
     Disables text selection for this element (normalized across browsers).
public  voidupdate(String html)
     Update the innerHTML of this element.
native public  voidupdate(String html, boolean loadScripts)
     Update the innerHTML of this element, optionally searching for and processing scripts.
native public  Elementwrap(DomConfig config)
     Creates and wraps this element with another element.


Constructor Detail
BaseElement
protected BaseElement()(Code)



BaseElement
public BaseElement(JavaScriptObject jsObj)(Code)




Method Detail
addClass
native public BaseElement addClass(String className)(Code)
Adds a CSS class to the element. Duplicate classes are automatically filtered out.
Parameters:
  className - the CSS class to add this



addClass
native public BaseElement addClass(String[] classNames)(Code)
Adds CSS classes to the element. Duplicate classes are automatically filtered out.
Parameters:
  classNames - an array of CSS classes this



addClassOnClick
native public BaseElement addClassOnClick(String className)(Code)
Sets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect).
Parameters:
  className - the CSS class to add this



addClassOnFocus
native public BaseElement addClassOnFocus(String className)(Code)
Sets up event handlers to add and remove a css class when this element has the focus
Parameters:
  className - the CSS class to add this



addClassOnOver
native public BaseElement addClassOnOver(String className)(Code)



addClassOnOver
native public BaseElement addClassOnOver(String className, boolean preventFlicker)(Code)
Sets up event handlers to add and remove a css class when the mouse is over this element.
Parameters:
  className - the CSS class to add
Parameters:
  preventFlicker - if set to true, it prevents flickering by filtering mouseout events for children elements this



addKeyListener
native public KeyMap addKeyListener(int keyCode, KeyListener listener)(Code)
Convenience method for constructing a KeyMap.
Parameters:
  keyCode - the numeric key code
Parameters:
  listener - the key listener the KeyMap created



addKeyListener
native public KeyMap addKeyListener(int[] keyCodes, KeyListener listener)(Code)
Convenience method for constructing a KeyMap.
Parameters:
  keyCodes - array of key codes
Parameters:
  listener - the key listener the KeyMap created



addKeyListener
native public KeyMap addKeyListener(String keys, KeyListener listener)(Code)
Convenience method for constructing a KeyMap.
Parameters:
  keys - a string with the keys to listen for
Parameters:
  listener - the key listener the KeyMap created



addKeyMap
native public KeyMap addKeyMap(KeyMapConfig config)(Code)
Convenience method for constructing a KeyMap.
Parameters:
  config - the key map config the KeyMap created



addListener
native public void addListener(String eventName, EventCallback cb)(Code)
Appends an event handler.
Parameters:
  eventName - the type of event to append
Parameters:
  cb - the event callback



addListener
native public void addListener(String eventName, EventCallback cb, ListenerConfig config)(Code)
Appends an event handler.
Parameters:
  eventName - the type of event to append
Parameters:
  cb - the event callback
Parameters:
  config - the listener config



alignTo
public BaseElement alignTo(String id, String anchorPosition)(Code)
Aligns this element with another element relative to the specified anchor points. If the other element is the document it aligns it to the viewport. The anchorPosition value is separated by a dash, the first value is used as the element's anchor point, and the second value is used as the target's anchor point. In addition to the anchor points, the position parameter also supports the "?" character. If "?" is passed at the end of the position string, the element will attempt to align as specified, but the position will be adjusted to constrain to the viewport if necessary. Note that the element being aligned might be swapped to align to a different position than that specified in order to enforce the viewport constraints. Following are all of the supported anchor positions:
Value  Description
 -----  -----------------------------
 tl     The top left corner (default)
 t      The center of the top edge
 tr     The top right corner
 l      The center of the left edge
 c      In the center of the element
 r      The center of the right edge
 bl     The bottom left corner
 b      The center of the bottom edge
 br     The bottom right corner
Example Usage:

 // align el to other-el using the default positioning ("tl-bl", non-constrained)
 el.alignTo("other-el");
 // align the top left corner of el with the top right corner of other-el (constrained to viewport)
 el.alignTo("other-el", "tr?");
 // align the bottom right corner of el with the center left edge of other-el
 el.alignTo("other-el", "br-l?");
 // align the center of el with the bottom left corner of other-el and
 // adjust the x position by -6 pixels (and the y position by 0)
 el.alignTo("other-el", "c-bl", new int[]{-6, 0});

Parameters:
  id - the element to align to
Parameters:
  anchorPosition - the element's anchor point this



alignTo
native public BaseElement alignTo(String id, String anchorPosition, int[] offsetXY, boolean animate)(Code)
Aligns this element with another element relative to the specified anchor points. If the other element is the document it aligns it to the viewport. The anchorPosition value is separated by a dash, the first value is used as the element's anchor point, and the second value is used as the target's anchor point. In addition to the anchor points, the position parameter also supports the "?" character. If "?" is passed at the end of the position string, the element will attempt to align as specified, but the position will be adjusted to constrain to the viewport if necessary. Note that the element being aligned might be swapped to align to a different position than that specified in order to enforce the viewport constraints. Following are all of the supported anchor positions:
Value  Description
 -----  -----------------------------
 tl     The top left corner (default)
 t      The center of the top edge
 tr     The top right corner
 l      The center of the left edge
 c      In the center of the element
 r      The center of the right edge
 bl     The bottom left corner
 b      The center of the bottom edge
 br     The bottom right corner
Example Usage:

 // align el to other-el using the default positioning ("tl-bl", non-constrained)
 el.alignTo("other-el");
 // align the top left corner of el with the top right corner of other-el (constrained to viewport)
 el.alignTo("other-el", "tr?");
 // align the bottom right corner of el with the center left edge of other-el
 el.alignTo("other-el", "br-l?");
 // align the center of el with the bottom left corner of other-el and
 // adjust the x position by -6 pixels (and the y position by 0)
 el.alignTo("other-el", "c-bl", new int[]{-6, 0});

Parameters:
  id - the element to align to
Parameters:
  anchorPosition - the element's anchor point
Parameters:
  offsetXY - offset the positioning by [x, y]
Parameters:
  animate - true for the default animation this



anchorTo
native public BaseElement anchorTo(String id, String anchorPosition)(Code)
Aligns this element with another element relative to the specified anchor points. If the other element is the document it aligns it to the viewport.
Parameters:
  id - the element to align to
Parameters:
  anchorPosition - the element's anchor point this



anchorTo
native public BaseElement anchorTo(String id, String anchorPosition, int[] offsetXY, boolean animate, int bufferDelay)(Code)
Aligns this element with another element relative to the specified anchor points. If the other element is the document it aligns it to the viewport.
Parameters:
  id - the element to align to
Parameters:
  anchorPosition - the element's anchor point
Parameters:
  offsetXY - offset the positioning by [x, y]
Parameters:
  animate - true for the default animation
Parameters:
  bufferDelay - buffer delay this



animate
native public BaseElement animate(GenericConfig args)(Code)
Perform animation on this element. For example :
 GenericConfig animArgs = new GenericConfig();
 GenericConfig widthArgs = new GenericConfig();
 widthArgs.setProperty("from", 600);
 widthArgs.setProperty("to", 0);
 animArgs.setProperty("width", widthArgs);
 el.animate(animArgs);
 

Parameters:
  args - animation control args this



animate
native public BaseElement animate(GenericConfig args, float duration, Function onComplete, Easing easing, String animType)(Code)
Perform animation on this element.
Parameters:
  args - animation control args
Parameters:
  duration - how long the animation lasts in seconds (defaults to .35)
Parameters:
  onComplete - function to call when animation completes
Parameters:
  easing - Easing method to use (defaults to easeOut) easeOut. See http://developer.yahoo.com/yui/docs/YAHOO.util.Easing.html
Parameters:
  animType - 'run' is the default. Can also be 'color', 'motion', or 'scroll' this



applyStyles
native public BaseElement applyStyles(String style)(Code)
More flexible version of BaseElement.setStyle for setting style properties.
Parameters:
  style - a style specification string, e.g. "width:100px" this



autoHeight
native public BaseElement autoHeight()(Code)
Measures the element's content height and updates height to match. Note: this function uses setTimeout so the new height may not be available immediately. this



autoHeight
native public BaseElement autoHeight(boolean animate, float duration, Function onComplete, Easing easing)(Code)
Measures the element's content height and updates height to match. Note: this function uses setTimeout so the new height may not be available immediately.
Parameters:
  animate - animate the transition (defaults to false)
Parameters:
  duration - length of the animation in seconds (defaults to .35)
Parameters:
  onComplete - Function to call when animation completes
Parameters:
  easing - Easing method to use (defaults to easeOut) this



clean
native public void clean()(Code)
Removes worthless text nodes.



clean
native public void clean(boolean forceClean)(Code)
Removes worthless text nodes.
Parameters:
  forceClean - by default the element keeps track if it has been cleaned already so you can call this over and over. However, if you update the element and need to force a reclean, you can pass true.



clearOpacity
native public BaseElement clearOpacity()(Code)
Clears any opacity settings from this element. Required in some cases for IE. this



clip
native public BaseElement clip()(Code)
Store the current overflow setting and clip overflow on the element - use unclip to remove. this



createShim
native public ExtElement createShim()(Code)
Creates an iframe shim for this element to keep selects and other windowed objects from showing through. the new shim element



enableDisplayMode
native public BaseElement enableDisplayMode()(Code)
Convenience method for setVisibilityMode(Element.DISPLAY) this



enableDisplayMode
native public BaseElement enableDisplayMode(String display)(Code)
Convenience method for setVisibilityMode(Element.DISPLAY)
Parameters:
  display - what to set display to when visible this



fadeIn
native public Fx fadeIn()(Code)



fadeIn
native public Fx fadeIn(FxConfig config)(Code)



fadeOut
native public Fx fadeOut()(Code)



fadeOut
native public Fx fadeOut(FxConfig config)(Code)



frame
native public Fx frame()(Code)



frame
native public Fx frame(String color, int count, FxConfig config)(Code)



ghost
native public Fx ghost()(Code)



ghost
native public Fx ghost(String anchorPosition, FxConfig config)(Code)



hasActiveFx
native public boolean hasActiveFx()(Code)



hasFxBlock
native public boolean hasFxBlock()(Code)



hide
native public BaseElement hide()(Code)
Hide this element - Uses display mode to determine whether to use "display" or "visibility". See BaseElement.setVisible . this



hide
native public BaseElement hide(boolean animate)(Code)
Hide this element - Uses display mode to determine whether to use "display" or "visibility". See BaseElement.setVisible .
Parameters:
  animate - true for the default animation this



hide
native public BaseElement hide(AnimationConfig animateConfig)(Code)
Hide this element - Uses display mode to determine whether to use "display" or "visibility". See BaseElement.setVisible .
Parameters:
  animateConfig - the animation config this



highlight
native public Fx highlight()(Code)



highlight
native public Fx highlight(String color, FxConfig config)(Code)



highlight
native public Fx highlight(String color, String attr, String endColor, FxConfig config)(Code)



move
native public BaseElement move(Direction direction, int distance)(Code)
Move this element relative to its current position.
Parameters:
  direction - the direction
Parameters:
  distance - how far to move the element in pixels this



move
native public BaseElement move(Direction direction, int distance, boolean animate)(Code)
Move this element relative to its current position.
Parameters:
  direction - the direction
Parameters:
  distance - how far to move the element in pixels
Parameters:
  animate - true for the default animation this



move
native public BaseElement move(Direction direction, int distance, AnimationConfig animateConfig)(Code)
Move this element relative to its current position.
Parameters:
  direction - the direction
Parameters:
  distance - how far to move the element in pixels
Parameters:
  animateConfig - the animation config this



moveTo
native public BaseElement moveTo(int x, int y)(Code)
Sets the position of the element in page coordinates, regardless of how the element is positioned. the element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
Parameters:
  x - X value for new position (coordinates are page-based)
Parameters:
  y - Y value for new position (coordinates are page-based) this



moveTo
native public BaseElement moveTo(int x, int y, boolean animate)(Code)
Sets the position of the element in page coordinates, regardless of how the element is positioned. the element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
Parameters:
  x - X value for new position (coordinates are page-based)
Parameters:
  y - Y value for new position (coordinates are page-based)
Parameters:
  animate - true to animate this



moveTo
native public BaseElement moveTo(int x, int y, AnimationConfig animateConfig)(Code)
Sets the position of the element in page coordinates, regardless of how the element is positioned. the element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
Parameters:
  x - X value for new position (coordinates are page-based)
Parameters:
  y - Y value for new position (coordinates are page-based)
Parameters:
  animateConfig - the animcation config this



pause
native public Fx pause(int seconds)(Code)



puff
native public Fx puff()(Code)



puff
native public Fx puff(boolean remove, FxConfig config)(Code)



radioClass
native public BaseElement radioClass(String className)(Code)
Adds a CSS class to this element and removes the same class(es) from all siblings.
Parameters:
  className - the CSS class to add this



radioClass
native public BaseElement radioClass(String[] classNames)(Code)
Adds one or more CSS classes to this element and removes the same class(es) from all siblings.
Parameters:
  classNames - the CSS classes to add this



remove
native public void remove()(Code)
Removes this element from the DOM and deletes it from the cache.



removeAllListeners
native public void removeAllListeners()(Code)
Removes all previous added listeners from this element.



removeClass
native public BaseElement removeClass(String className)(Code)
Removes the CSS classes from the element.
Parameters:
  className - the CSS class to remove this



removeClass
native public BaseElement removeClass(String[] classNames)(Code)
Removes the CSS classes from the element.
Parameters:
  classNames - the CSS classes to remove this



repaint
native public BaseElement repaint()(Code)
Forces the browser to repaint this element. this



replaceClass
native public BaseElement replaceClass(String oldClassName, String newClassName)(Code)
Replaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added.
Parameters:
  oldClassName - the CSS class to replace
Parameters:
  newClassName - the replacement CSS class this



scale
native public Fx scale(int width, int height)(Code)



scale
native public Fx scale(int width, int height, FxConfig config)(Code)



scroll
native public boolean scroll(Direction direction, int distance, boolean animate)(Code)
Scrolls this element the specified direction. Does bounds checking to make sure the scroll is within this element's scrollable range.
Parameters:
  direction - the direction
Parameters:
  distance - how far to scroll the element in pixels
Parameters:
  animate - true to animate this



scroll
native public boolean scroll(Direction direction, int distance, AnimationConfig animateConfig)(Code)
Scrolls this element the specified direction. Does bounds checking to make sure the scroll is within this element's scrollable range.
Parameters:
  direction - the direction
Parameters:
  distance - how far to scroll the element in pixels
Parameters:
  animateConfig - the animation config this



scrollTo
native public BaseElement scrollTo(String side, int value, boolean animate)(Code)
Scrolls this element the specified scroll point. It does NOT do bounds checking so if you scroll to a weird value it will try to do it. For auto bounds checking, use scroll().
Parameters:
  side - Either "left" for scrollLeft values or "top" for scrollTop values.
Parameters:
  value - the new scroll value
Parameters:
  animate - true for the default animation this



scrollTo
native public BaseElement scrollTo(String side, int value, AnimationConfig animateConfig)(Code)
Scrolls this element the specified scroll point. It does NOT do bounds checking so if you scroll to a weird value it will try to do it. For auto bounds checking, use scroll().
Parameters:
  side - Either "left" for scrollLeft values or "top" for scrollTop values.
Parameters:
  value - the new scroll value
Parameters:
  animateConfig - the animation config this



sequenceFx
native public Fx sequenceFx()(Code)



setBottom
native public BaseElement setBottom(String bottom)(Code)
Sets the element's CSS bottom style.
Parameters:
  bottom - the bottom CSS property value this



setBounds
native public BaseElement setBounds(int x, int y, int width, int height)(Code)
Sets the element's position and size in one shot.
Parameters:
  x - X value for new position (coordinates are page-based)
Parameters:
  y - Y value for new position (coordinates are page-based)
Parameters:
  width - the new width
Parameters:
  height - the new height this



setBounds
native public BaseElement setBounds(int x, int y, int width, int height, boolean animate)(Code)
Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated concurrently.
Parameters:
  x - X value for new position (coordinates are page-based)
Parameters:
  y - Y value for new position (coordinates are page-based)
Parameters:
  width - the new width
Parameters:
  height - the new height
Parameters:
  animate - true to animate this



setBounds
native public BaseElement setBounds(int x, int y, int width, int height, AnimationConfig animateConfig)(Code)
Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated concurrently.
Parameters:
  x - X value for new position (coordinates are page-based)
Parameters:
  y - Y value for new position (coordinates are page-based)
Parameters:
  width - the new width
Parameters:
  height - the new height
Parameters:
  animateConfig - the animation config this



setBox
native public BaseElement setBox(Box box)(Code)
Sets the element's box. Use getBox() on another element to get a box obj.
Parameters:
  box - the box to fill {x, y, width, height} this



setBox
native public BaseElement setBox(Box box, boolean adjust, boolean animate)(Code)
Sets the element's box. Use getBox() on another element to get a box obj. If animate is true then width, height, x and y will be animated concurrently.
Parameters:
  box - the box to fill {x, y, width, height}
Parameters:
  adjust - Whether to adjust for box-model issues automatically
Parameters:
  animate - true for the default animation this



setBox
native public BaseElement setBox(Box box, boolean adjust, AnimationConfig animateConfig)(Code)
Sets the element's box. Use getBox() on another element to get a box obj. If animate is true then width, height, x and y will be animated concurrently.
Parameters:
  box - the box to fill {x, y, width, height}
Parameters:
  adjust - Whether to adjust for box-model issues automatically
Parameters:
  animateConfig - the animation config this



setDisplayed
native public BaseElement setDisplayed(boolean value)(Code)
Sets the CSS display property. Uses originalDisplay if the specified value is a boolean true.
Parameters:
  value - Boolean value to display the element using its default display this



setHeight
native public BaseElement setHeight(int height, boolean animate)(Code)
Set the height of the element.
Parameters:
  height - the new height
Parameters:
  animate - true to animate this



setHeight
native public BaseElement setHeight(int height, AnimationConfig animateConfig)(Code)
Set the height of the element.
Parameters:
  height - the new height
Parameters:
  animateConfig - the animation config this



setLeft
native public BaseElement setLeft(String left)(Code)
Sets the element's left position directly using CSS style (instead of setX).
Parameters:
  left - the left CSS property value this



setLeftTop
native public BaseElement setLeftTop(String left, String top)(Code)
Quick set left and top adding default units.
Parameters:
  left - the left CSS property value
Parameters:
  top - the top CSS property value this



setLocation
native public BaseElement setLocation(int x, int y, boolean animate)(Code)
Sets the position of the element in page coordinates, regardless of how the element is positioned. the element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
Parameters:
  x - X value for new position (coordinates are page-based)
Parameters:
  y - Y value for new position (coordinates are page-based)
Parameters:
  animate - true to animate this



setLocation
native public BaseElement setLocation(int x, int y, AnimationConfig animateConfig)(Code)
Sets the position of the element in page coordinates, regardless of how the element is positioned. the element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
Parameters:
  x - X value for new position (coordinates are page-based)
Parameters:
  y - Y value for new position (coordinates are page-based)
Parameters:
  animateConfig - the animation config this



setOpacity
native public BaseElement setOpacity(float opacity, boolean animate)(Code)
Set the opacity of the element.
Parameters:
  opacity - the new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc
Parameters:
  animate - true to animate this



setOpacity
native public BaseElement setOpacity(float opacity, AnimationConfig animateConfig)(Code)
Set the opacity of the element.
Parameters:
  opacity - the new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc
Parameters:
  animateConfig - the animation config this



setRegion
native public BaseElement setRegion(Region region, boolean animate)(Code)
Sets the element's position and size the the specified region. If animation is true then width, height, x and y will be animated concurrently.
Parameters:
  region - the region to fill
Parameters:
  animate - true to animate this



setRegion
native public BaseElement setRegion(Region region, AnimationConfig animateConfig)(Code)
Sets the element's position and size the the specified region. If animation is true then width, height, x and y will be animated concurrently.
Parameters:
  region - the region to fill
Parameters:
  animateConfig - the animation config this



setRight
native public BaseElement setRight(String right)(Code)
Sets the element's CSS right style.
Parameters:
  right - the right CSS property value this



setSize
native public BaseElement setSize(int width, int height, boolean animate)(Code)
Set the size of the element. If animation is true, both width an height will be animated concurrently.
Parameters:
  width - the new width
Parameters:
  height - the new height
Parameters:
  animate - true to animate this



setSize
native public BaseElement setSize(int width, int height, AnimationConfig animateConfig)(Code)
Set the size of the element. If animation is true, both width an height will be animated concurrently.
Parameters:
  width - the new width
Parameters:
  height - the new height
Parameters:
  animateConfig - the animation config this



setStyle
native public BaseElement setStyle(String style, String value)(Code)
Wrapper for setting style properties.
Parameters:
  style - the style property to be set
Parameters:
  value - the value to apply to the given property this



setStyles
native public BaseElement setStyles(GenericConfig styles)(Code)
Wrapper for setting style properties.
Parameters:
  styles - the style property to be set this



setTop
native public BaseElement setTop(String top)(Code)
Sets the element's top position directly using CSS style (instead of setY).
Parameters:
  top - the top CSS property value this



setVisibilityMode
native public BaseElement setVisibilityMode(boolean useVisibleProperty)(Code)
Sets the element's visibility mode. When setVisible() is called it will use this to determine whether to set the visibility or the display property.
Parameters:
  useVisibleProperty - true to use VISIBILITY, false for DISPLAY this



setVisible
public BaseElement setVisible(boolean visible)(Code)
Sets the visibility of the element. If the visibilityMode is set to Element.DISPLAY, it will use the display property to hide the element, otherwise it uses visibility. the default is to hide and show using the visibility property.
Parameters:
  visible - Whether the element is visible this



setVisible
native public BaseElement setVisible(boolean visible, boolean animate)(Code)
Sets the visibility of the element. If the visibilityMode is set to Element.DISPLAY, it will use the display property to hide the element, otherwise it uses visibility. the default is to hide and show using the visibility property.
Parameters:
  visible - Whether the element is visible
Parameters:
  animate - true to animate this



setVisible
native public BaseElement setVisible(boolean visible, AnimationConfig animateConfig)(Code)
Sets the visibility of the element. If the visibilityMode is set to Element.DISPLAY, it will use the display property to hide the element, otherwise it uses visibility. the default is to hide and show using the visibility property.
Parameters:
  visible - Whether the element is visible
Parameters:
  animateConfig - the animation config this



setWidth
native public BaseElement setWidth(int width, boolean animate)(Code)
Set the width of the element.
Parameters:
  width - the new width
Parameters:
  animate - true to animate this



setWidth
native public BaseElement setWidth(String width, boolean animate)(Code)
Set the width of the element.
Parameters:
  width - the new width
Parameters:
  animate - true to animate this



setWidth
native public BaseElement setWidth(int width, AnimationConfig animateConfig)(Code)
Set the width of the element.
Parameters:
  width - the new width
Parameters:
  animateConfig - the animation config this



setX
native public BaseElement setX(int x, boolean animate)(Code)
Sets the 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).
Parameters:
  x - X position of the element
Parameters:
  animate - true to animate this



setX
native public BaseElement setX(int x, AnimationConfig animateConfig)(Code)
Sets the 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).
Parameters:
  x - X position of the element
Parameters:
  animateConfig - the animation config this



setXY
native public BaseElement setXY(int x, int y, boolean animate)(Code)
Sets the position of the element in page coordinates, regardless of how the element is positioned. the element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
Parameters:
  x - X position of the element
Parameters:
  y - Y position of the element
Parameters:
  animate - true to animate this



setXY
native public BaseElement setXY(int x, int y, AnimationConfig animateConfig)(Code)
Sets the position of the element in page coordinates, regardless of how the element is positioned. the element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
Parameters:
  x - X position of the element
Parameters:
  y - Y position of the element
Parameters:
  animateConfig - the animation config this



setY
native public BaseElement setY(int y, boolean animate)(Code)
Sets the 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).
Parameters:
  y - Y position of the element
Parameters:
  animate - true to animate this



setY
native public BaseElement setY(int y, AnimationConfig animateConfig)(Code)
Sets the 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).
Parameters:
  y - Y position of the element
Parameters:
  animateConfig - the animation config this



shift
native public Fx shift(int x, int y, int width, int height, FxConfig config)(Code)



show
native public BaseElement show(boolean animate)(Code)
Show this element - Uses display mode to determine whether to use "display" or "visibility". See BaseElement.setVisible .
Parameters:
  animate - true to animate this



show
native public BaseElement show(AnimationConfig animateConfig)(Code)
Show this element - Uses display mode to determine whether to use "display" or "visibility". See BaseElement.setVisible .
Parameters:
  animateConfig - the animation config this



slideIn
native public Fx slideIn()(Code)



slideIn
native public Fx slideIn(String anchorPosition, FxConfig config)(Code)



slideOut
native public Fx slideOut()(Code)



slideOut
native public Fx slideOut(boolean remove, String anchorPosition, FxConfig config)(Code)



stopFx
native public Fx stopFx()(Code)



swallowEvent
native public BaseElement swallowEvent(String eventName)(Code)
Stops the specified event from bubbling and optionally prevents the default action.
Parameters:
  eventName - the event name this



swallowEvent
native public BaseElement swallowEvent(String eventName, boolean preventDefault)(Code)
Stops the specified event from bubbling and optionally prevents the default action.
Parameters:
  eventName - the event name
Parameters:
  preventDefault - true to prevent the default action too this



switchOff
native public Fx switchOff()(Code)



switchOff
native public Fx switchOff(boolean remove, FxConfig config)(Code)



syncFx
native public Fx syncFx()(Code)



toggle
native public BaseElement toggle(boolean animate)(Code)
Toggles the element's visibility or display, depending on visibility mode.
Parameters:
  animate - true to animate this



toggle
native public BaseElement toggle(AnimationConfig animateConfig)(Code)
Toggles the element's visibility or display, depending on visibility mode.
Parameters:
  animateConfig - the animation config this



toggleClass
native public BaseElement toggleClass(String className)(Code)
Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it).
Parameters:
  className - the CSS class to toggle this



unselectable
native public void unselectable()(Code)
Disables text selection for this element (normalized across browsers).



update
public void update(String html)(Code)
Update the innerHTML of this element.
Parameters:
  html - the new HTML



update
native public void update(String html, boolean loadScripts)(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



wrap
native public Element wrap(DomConfig config)(Code)
Creates and wraps this element with another element.
Parameters:
  config - DomHelper element config object for the wrapper element this



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.