| 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.
|
Method Summary | |
native public BaseElement | addClass(String className) Adds a CSS class to the element. | native public BaseElement | addClass(String[] classNames) Adds CSS classes to the element. | native public BaseElement | addClassOnClick(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 BaseElement | addClassOnFocus(String className) | native public BaseElement | addClassOnOver(String className) | native public BaseElement | addClassOnOver(String className, boolean preventFlicker) Sets up event handlers to add and remove a css class when the mouse is over this element. | native public KeyMap | addKeyListener(int keyCode, KeyListener listener) Convenience method for constructing a KeyMap. | native public KeyMap | addKeyListener(int[] keyCodes, KeyListener listener) Convenience method for constructing a KeyMap. | native public KeyMap | addKeyListener(String keys, KeyListener listener) Convenience method for constructing a KeyMap. | native public KeyMap | addKeyMap(KeyMapConfig config) Convenience method for constructing a KeyMap. | native public void | addListener(String eventName, EventCallback cb) Appends an event handler. | native public void | addListener(String eventName, EventCallback cb, ListenerConfig config) Appends an event handler. | public BaseElement | alignTo(String id, String anchorPosition) Aligns this element with another element relative to the specified anchor points. | native public BaseElement | alignTo(String id, String anchorPosition, int[] offsetXY, boolean animate) Aligns this element with another element relative to the specified anchor points. | native public BaseElement | anchorTo(String id, String anchorPosition) Aligns this element with another element relative to the specified anchor points. | native public BaseElement | anchorTo(String id, String anchorPosition, int[] offsetXY, boolean animate, int bufferDelay) Aligns this element with another element relative to the specified anchor points. | native public BaseElement | animate(GenericConfig args) Perform animation on this element. | native public BaseElement | animate(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 BaseElement | applyStyles(String style) More flexible version of
BaseElement.setStyle for setting style properties.
Parameters: style - a style specification string, e.g. | native public BaseElement | autoHeight() Measures the element's content height and updates height to match. | native public BaseElement | autoHeight(boolean animate, float duration, Function onComplete, Easing easing) Measures the element's content height and updates height to match. | native public void | clean() Removes worthless text nodes. | native public void | clean(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 BaseElement | clearOpacity() Clears any opacity settings from this element. | native public BaseElement | clip() Store the current overflow setting and clip overflow on the element - use unclip to remove. | native public ExtElement | createShim() Creates an iframe shim for this element to keep selects and other windowed objects from showing through. | native public BaseElement | enableDisplayMode() | native public BaseElement | enableDisplayMode(String display) | native public Fx | fadeIn() | native public Fx | fadeIn(FxConfig config) | native public Fx | fadeOut() | native public Fx | fadeOut(FxConfig config) | native public Fx | frame() | native public Fx | frame(String color, int count, FxConfig config) | native public Fx | ghost() | native public Fx | ghost(String anchorPosition, FxConfig config) | native public boolean | hasActiveFx() | native public boolean | hasFxBlock() | native public BaseElement | hide() Hide this element - Uses display mode to determine whether to use "display" or "visibility". | native public BaseElement | hide(boolean animate) Hide this element - Uses display mode to determine whether to use "display" or "visibility". | native public BaseElement | hide(AnimationConfig animateConfig) Hide this element - Uses display mode to determine whether to use "display" or "visibility". | native public Fx | highlight() | native public Fx | highlight(String color, FxConfig config) | native public Fx | highlight(String color, String attr, String endColor, FxConfig config) | native public BaseElement | move(Direction direction, int distance) Move this element relative to its current position. | native public BaseElement | move(Direction direction, int distance, boolean animate) Move this element relative to its current position. | native public BaseElement | move(Direction direction, int distance, AnimationConfig animateConfig) Move this element relative to its current position. | native public BaseElement | moveTo(int x, int y) Sets the position of the element in page coordinates, regardless of how the element is positioned. | native public BaseElement | moveTo(int x, int y, boolean animate) Sets the position of the element in page coordinates, regardless of how the element is positioned. | native public BaseElement | moveTo(int x, int y, AnimationConfig animateConfig) Sets the position of the element in page coordinates, regardless of how the element is positioned. | native public Fx | pause(int seconds) | native public Fx | puff() | native public Fx | puff(boolean remove, FxConfig config) | native public BaseElement | radioClass(String className) Adds a CSS class to this element and removes the same class(es) from all siblings. | native public BaseElement | radioClass(String[] classNames) Adds one or more CSS classes to this element and removes the same class(es) from all siblings. | native public void | remove() Removes this element from the DOM and deletes it from the cache. | native public void | removeAllListeners() Removes all previous added listeners from this element. | native public BaseElement | removeClass(String className) Removes the CSS classes from the element. | native public BaseElement | removeClass(String[] classNames) Removes the CSS classes from the element. | native public BaseElement | repaint() Forces the browser to repaint this element. | native public BaseElement | replaceClass(String oldClassName, String newClassName) Replaces a CSS class on the element with another. | native public Fx | scale(int width, int height) | native public Fx | scale(int width, int height, FxConfig config) | native public boolean | scroll(Direction direction, int distance, boolean animate) Scrolls this element the specified direction. | native public boolean | scroll(Direction direction, int distance, AnimationConfig animateConfig) Scrolls this element the specified direction. | native public BaseElement | scrollTo(String side, int value, boolean animate) Scrolls this element the specified scroll point. | native public BaseElement | scrollTo(String side, int value, AnimationConfig animateConfig) Scrolls this element the specified scroll point. | native public Fx | sequenceFx() | native public BaseElement | setBottom(String bottom) Sets the element's CSS bottom style. | native public BaseElement | setBounds(int x, int y, int width, int height) Sets the element's position and size in one shot. | native public BaseElement | setBounds(int x, int y, int width, int height, boolean animate) Sets the element's position and size in one shot. | native public BaseElement | setBounds(int x, int y, int width, int height, AnimationConfig animateConfig) Sets the element's position and size in one shot. | native public BaseElement | setBox(Box box) Sets the element's box. | native public BaseElement | setBox(Box box, boolean adjust, boolean animate) Sets the element's box. | native public BaseElement | setBox(Box box, boolean adjust, AnimationConfig animateConfig) Sets the element's box. | native public BaseElement | setDisplayed(boolean value) Sets the CSS display property. | native public BaseElement | setHeight(int height, boolean animate) Set the height of the element. | native public BaseElement | setHeight(int height, AnimationConfig animateConfig) Set the height of the element. | native public BaseElement | setLeft(String left) Sets the element's left position directly using CSS style (instead of setX). | native public BaseElement | setLeftTop(String left, String top) Quick set left and top adding default units. | native public BaseElement | setLocation(int x, int y, boolean animate) Sets the position of the element in page coordinates, regardless of how the element is positioned. | native public BaseElement | setLocation(int x, int y, AnimationConfig animateConfig) Sets the position of the element in page coordinates, regardless of how the element is positioned. | native public BaseElement | setOpacity(float opacity, boolean animate) Set the opacity of the element.
Parameters: opacity - the new opacity. | native public BaseElement | setOpacity(float opacity, AnimationConfig animateConfig) Set the opacity of the element.
Parameters: opacity - the new opacity. | native public BaseElement | setRegion(Region region, boolean animate) Sets the element's position and size the the specified region. | native public BaseElement | setRegion(Region region, AnimationConfig animateConfig) Sets the element's position and size the the specified region. | native public BaseElement | setRight(String right) Sets the element's CSS right style. | native public BaseElement | setSize(int width, int height, boolean animate) Set the size of the element. | native public BaseElement | setSize(int width, int height, AnimationConfig animateConfig) Set the size of the element. | native public BaseElement | setStyle(String style, String value) Wrapper for setting style properties. | native public BaseElement | setStyles(GenericConfig styles) Wrapper for setting style properties. | native public BaseElement | setTop(String top) Sets the element's top position directly using CSS style (instead of setY). | native public BaseElement | setVisibilityMode(boolean useVisibleProperty) Sets the element's visibility mode. | public BaseElement | setVisible(boolean visible) Sets the visibility of the element. | native public BaseElement | setVisible(boolean visible, boolean animate) Sets the visibility of the element. | native public BaseElement | setVisible(boolean visible, AnimationConfig animateConfig) Sets the visibility of the element. | native public BaseElement | setWidth(int width, boolean animate) Set the width of the element. | native public BaseElement | setWidth(String width, boolean animate) Set the width of the element. | native public BaseElement | setWidth(int width, AnimationConfig animateConfig) Set the width of the element. | native public BaseElement | setX(int x, boolean animate) Sets the X position of the element based on page coordinates. | native public BaseElement | setX(int x, AnimationConfig animateConfig) Sets the X position of the element based on page coordinates. | native public BaseElement | setXY(int x, int y, boolean animate) Sets the position of the element in page coordinates, regardless of how the element is positioned. | native public BaseElement | setXY(int x, int y, AnimationConfig animateConfig) Sets the position of the element in page coordinates, regardless of how the element is positioned. | native public BaseElement | setY(int y, boolean animate) Sets the Y position of the element based on page coordinates. | native public BaseElement | setY(int y, AnimationConfig animateConfig) Sets the Y position of the element based on page coordinates. | native public Fx | shift(int x, int y, int width, int height, FxConfig config) | native public BaseElement | show(boolean animate) Show this element - Uses display mode to determine whether to use "display" or "visibility". | native public BaseElement | show(AnimationConfig animateConfig) Show this element - Uses display mode to determine whether to use "display" or "visibility". | native public Fx | slideIn() | native public Fx | slideIn(String anchorPosition, FxConfig config) | native public Fx | slideOut() | native public Fx | slideOut(boolean remove, String anchorPosition, FxConfig config) | native public Fx | stopFx() | native public BaseElement | swallowEvent(String eventName) Stops the specified event from bubbling and optionally prevents the default action. | native public BaseElement | swallowEvent(String eventName, boolean preventDefault) Stops the specified event from bubbling and optionally prevents the default action. | native public Fx | switchOff() | native public Fx | switchOff(boolean remove, FxConfig config) | native public Fx | syncFx() | native public BaseElement | toggle(boolean animate) Toggles the element's visibility or display, depending on visibility mode. | native public BaseElement | toggle(AnimationConfig animateConfig) Toggles the element's visibility or display, depending on visibility mode. | native public BaseElement | toggleClass(String className) Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it). | native public void | unselectable() Disables text selection for this element (normalized across browsers). | public void | update(String html) Update the innerHTML of this element. | native public void | update(String html, boolean loadScripts) Update the innerHTML of this element, optionally searching for and processing scripts. | native public Element | wrap(DomConfig config) Creates and wraps this element with another element. |
BaseElement | protected BaseElement()(Code) | | |
BaseElement | public BaseElement(JavaScriptObject jsObj)(Code) | | |
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, 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 |
hasActiveFx | native public boolean hasActiveFx()(Code) | | |
hasFxBlock | native public boolean hasFxBlock()(Code) | | |
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 |
highlight | native public Fx highlight()(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) | | |
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) | | |
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 |
slideOut | native public Fx slideOut()(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) | | |
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)
|
|
|