|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gwtext.client.core.JsObject
com.gwtext.client.core.BaseElement
public class BaseElement
Represents a base Element in the DOM.
Field Summary |
---|
Fields inherited from class com.gwtext.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
protected |
BaseElement()
|
|
BaseElement(com.google.gwt.core.client.JavaScriptObject jsObj)
|
Method Summary | |
---|---|
BaseElement |
addClass(java.lang.String className)
Adds a CSS class to the element. |
BaseElement |
addClass(java.lang.String[] classNames)
Adds CSS classes to the element. |
BaseElement |
addClassOnClick(java.lang.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). |
BaseElement |
addClassOnFocus(java.lang.String className)
Sets up event handlers to add and remove a css class when this element has the focus |
BaseElement |
addClassOnOver(java.lang.String className)
|
BaseElement |
addClassOnOver(java.lang.String className,
boolean preventFlicker)
Sets up event handlers to add and remove a css class when the mouse is over this element. |
KeyMap |
addKeyListener(int[] keyCodes,
KeyListener listener)
Convenience method for constructing a KeyMap. |
KeyMap |
addKeyListener(int keyCode,
KeyListener listener)
Convenience method for constructing a KeyMap. |
KeyMap |
addKeyListener(java.lang.String keys,
KeyListener listener)
Convenience method for constructing a KeyMap. |
KeyMap |
addKeyMap(KeyMapConfig config)
Convenience method for constructing a KeyMap. |
void |
addListener(java.lang.String eventName,
EventCallback cb)
Appends an event handler. |
void |
addListener(java.lang.String eventName,
EventCallback cb,
ListenerConfig config)
Appends an event handler. |
BaseElement |
alignTo(java.lang.String id,
java.lang.String anchorPosition)
Aligns this element with another element relative to the specified anchor points. |
BaseElement |
alignTo(java.lang.String id,
java.lang.String anchorPosition,
int[] offsetXY,
boolean animate)
Aligns this element with another element relative to the specified anchor points. |
BaseElement |
anchorTo(java.lang.String id,
java.lang.String anchorPosition)
Aligns this element with another element relative to the specified anchor points. |
BaseElement |
anchorTo(java.lang.String id,
java.lang.String anchorPosition,
int[] offsetXY,
boolean animate,
int bufferDelay)
Aligns this element with another element relative to the specified anchor points. |
BaseElement |
animate(GenericConfig args)
Perform animation on this element. |
BaseElement |
animate(GenericConfig args,
float duration,
Function onComplete,
com.gwtext.client.animation.Easing easing,
java.lang.String animType)
Perform animation on this element. |
BaseElement |
applyStyles(java.lang.String style)
More flexible version of setStyle(java.lang.String, java.lang.String) for setting style properties. |
BaseElement |
autoHeight()
Measures the element's content height and updates height to match. |
BaseElement |
autoHeight(boolean animate,
float duration,
Function onComplete,
com.gwtext.client.animation.Easing easing)
Measures the element's content height and updates height to match. |
void |
clean()
Removes worthless text nodes. |
void |
clean(boolean forceClean)
Removes worthless text nodes. |
BaseElement |
clearOpacity()
Clears any opacity settings from this element. |
BaseElement |
clip()
Store the current overflow setting and clip overflow on the element - use unclip to remove. |
ExtElement |
createShim()
Creates an iframe shim for this element to keep selects and other windowed objects from showing through. |
BaseElement |
enableDisplayMode()
Convenience method for setVisibilityMode(Element.DISPLAY) |
BaseElement |
enableDisplayMode(java.lang.String display)
Convenience method for setVisibilityMode(Element.DISPLAY) |
Fx |
fadeIn()
Fade an element in (from transparent to opaque). |
Fx |
fadeIn(FxConfig config)
Fade an element in (from transparent to opaque). |
Fx |
fadeOut()
Fade an element out (from opaque to transparent) from the element's current opacity to 0. |
Fx |
fadeOut(FxConfig config)
Fade an element out (from opaque to transparent). |
Fx |
frame()
Shows a ripple of exploding, attenuating borders to draw attention to an Element. |
Fx |
frame(java.lang.String color,
int count,
FxConfig config)
Shows a ripple of exploding, attenuating borders to draw attention to an Element. |
Fx |
ghost()
Slides the element while fading it out of view. |
Fx |
ghost(java.lang.String anchorPosition,
FxConfig config)
Slides the element while fading it out of view. |
boolean |
hasActiveFx()
Returns true if the element has any effects actively running or queued, else returns false. |
boolean |
hasFxBlock()
Returns true if the element is currently blocking so that no other effect can be queued until this effect is finished, else returns false if blocking is not set. |
BaseElement |
hide()
Hide this element - Uses display mode to determine whether to use "display" or "visibility". |
BaseElement |
hide(AnimationConfig animateConfig)
Hide this element - Uses display mode to determine whether to use "display" or "visibility". |
BaseElement |
hide(boolean animate)
Hide this element - Uses display mode to determine whether to use "display" or "visibility". |
Fx |
highlight()
Highlights the Element by setting a color (applies to the background-color by default, but can be changed using the "attr" config option) and then fading back to the original color. |
Fx |
highlight(java.lang.String color,
FxConfig config)
Highlights the Element by setting a color (applies to the background-color by default, but can be changed using the "attr" config option) and then fading back to the original color. |
Fx |
highlight(java.lang.String color,
java.lang.String attr,
java.lang.String endColor,
FxConfig config)
Highlights the Element by setting a color (applies to the background-color by default, but can be changed using the "attr" config option) and then fading back to the original color. |
BaseElement |
move(Direction direction,
int distance)
Move this element relative to its current position. |
BaseElement |
move(Direction direction,
int distance,
AnimationConfig animateConfig)
Move this element relative to its current position. |
BaseElement |
move(Direction direction,
int distance,
boolean animate)
Move this element relative to its current position. |
BaseElement |
moveTo(int x,
int y)
Sets the position of the element in page coordinates, regardless of how the element is positioned. |
BaseElement |
moveTo(int x,
int y,
AnimationConfig animateConfig)
Sets the position of the element in page coordinates, regardless of how the element is positioned. |
BaseElement |
moveTo(int x,
int y,
boolean animate)
Sets the position of the element in page coordinates, regardless of how the element is positioned. |
Fx |
pause(int seconds)
Creates a pause before any subsequent queued effects begin. |
Fx |
puff()
Fades the element out while slowly expanding it in all directions. |
Fx |
puff(boolean remove,
FxConfig config)
Fades the element out while slowly expanding it in all directions. |
BaseElement |
radioClass(java.lang.String className)
Adds a CSS class to this element and removes the same class(es) from all siblings. |
BaseElement |
radioClass(java.lang.String[] classNames)
Adds one or more CSS classes to this element and removes the same class(es) from all siblings. |
void |
remove()
Removes this element from the DOM and deletes it from the cache. |
void |
removeAllListeners()
Removes all previous added listeners from this element. |
BaseElement |
removeClass(java.lang.String className)
Removes the CSS classes from the element. |
BaseElement |
removeClass(java.lang.String[] classNames)
Removes the CSS classes from the element. |
BaseElement |
repaint()
Forces the browser to repaint this element. |
BaseElement |
replaceClass(java.lang.String oldClassName,
java.lang.String newClassName)
Replaces a CSS class on the element with another. |
Fx |
scale(int width,
int height)
Animates the transition of an element's dimensions from a starting height/width to an ending height/width. |
Fx |
scale(int width,
int height,
FxConfig config)
Animates the transition of an element's dimensions from a starting height/width to an ending height/width. |
boolean |
scroll(Direction direction,
int distance,
AnimationConfig animateConfig)
Scrolls this element the specified direction. |
boolean |
scroll(Direction direction,
int distance,
boolean animate)
Scrolls this element the specified direction. |
BaseElement |
scrollTo(java.lang.String side,
int value,
AnimationConfig animateConfig)
Scrolls this element the specified scroll point. |
BaseElement |
scrollTo(java.lang.String side,
int value,
boolean animate)
Scrolls this element the specified scroll point. |
Fx |
sequenceFx()
Ensures that all effects queued after sequenceFx is called on the element are run in sequence. |
BaseElement |
setBottom(java.lang.String bottom)
Sets the element's CSS bottom style. |
BaseElement |
setBounds(int x,
int y,
int width,
int height)
Sets the element's position and size in one shot. |
BaseElement |
setBounds(int x,
int y,
int width,
int height,
AnimationConfig animateConfig)
Sets the element's position and size in one shot. |
BaseElement |
setBounds(int x,
int y,
int width,
int height,
boolean animate)
Sets the element's position and size in one shot. |
BaseElement |
setBox(Box box)
Sets the element's box. |
BaseElement |
setBox(Box box,
boolean adjust,
AnimationConfig animateConfig)
Sets the element's box. |
BaseElement |
setBox(Box box,
boolean adjust,
boolean animate)
Sets the element's box. |
BaseElement |
setDisplayed(boolean value)
Sets the CSS display property. |
BaseElement |
setHeight(int height,
AnimationConfig animateConfig)
Set the height of the element. |
BaseElement |
setHeight(int height,
boolean animate)
Set the height of the element. |
BaseElement |
setLeft(java.lang.String left)
Sets the element's left position directly using CSS style (instead of setX). |
BaseElement |
setLeftTop(java.lang.String left,
java.lang.String top)
Quick set left and top adding default units. |
BaseElement |
setLocation(int x,
int y,
AnimationConfig animateConfig)
Sets the position of the element in page coordinates, regardless of how the element is positioned. |
BaseElement |
setLocation(int x,
int y,
boolean animate)
Sets the position of the element in page coordinates, regardless of how the element is positioned. |
BaseElement |
setOpacity(float opacity,
AnimationConfig animateConfig)
Set the opacity of the element. |
BaseElement |
setOpacity(float opacity,
boolean animate)
Set the opacity of the element. |
BaseElement |
setRegion(Region region,
AnimationConfig animateConfig)
Sets the element's position and size the the specified region. |
BaseElement |
setRegion(Region region,
boolean animate)
Sets the element's position and size the the specified region. |
BaseElement |
setRight(java.lang.String right)
Sets the element's CSS right style. |
BaseElement |
setSize(int width,
int height,
AnimationConfig animateConfig)
Set the size of the element. |
BaseElement |
setSize(int width,
int height,
boolean animate)
Set the size of the element. |
BaseElement |
setStyle(java.lang.String style,
java.lang.String value)
Wrapper for setting style properties. |
BaseElement |
setStyles(GenericConfig styles)
Wrapper for setting style properties. |
BaseElement |
setTop(java.lang.String top)
Sets the element's top position directly using CSS style (instead of setY). |
BaseElement |
setVisibilityMode(boolean useVisibleProperty)
Sets the element's visibility mode. |
BaseElement |
setVisible(boolean visible)
Sets the visibility of the element. |
BaseElement |
setVisible(boolean visible,
AnimationConfig animateConfig)
Sets the visibility of the element. |
BaseElement |
setVisible(boolean visible,
boolean animate)
Sets the visibility of the element. |
BaseElement |
setWidth(int width,
AnimationConfig animateConfig)
Set the width of the element. |
BaseElement |
setWidth(int width,
boolean animate)
Set the width of the element. |
BaseElement |
setWidth(java.lang.String width,
boolean animate)
Set the width of the element. |
BaseElement |
setX(int x,
AnimationConfig animateConfig)
Sets the X position of the element based on page coordinates. |
BaseElement |
setX(int x,
boolean animate)
Sets the X position of the element based on page coordinates. |
BaseElement |
setXY(int x,
int y,
AnimationConfig animateConfig)
Sets the position of the element in page coordinates, regardless of how the element is positioned. |
BaseElement |
setXY(int x,
int y,
boolean animate)
Sets the position of the element in page coordinates, regardless of how the element is positioned. |
BaseElement |
setY(int y,
AnimationConfig animateConfig)
Sets the Y position of the element based on page coordinates. |
BaseElement |
setY(int y,
boolean animate)
Sets the Y position of the element based on page coordinates. |
Fx |
shift(int x,
int y,
int width,
int height,
FxConfig config)
Animates the transition of any combination of an element's dimensions, xy position and/or opacity. |
BaseElement |
show(AnimationConfig animateConfig)
Show this element - Uses display mode to determine whether to use "display" or "visibility". |
BaseElement |
show(boolean animate)
Show this element - Uses display mode to determine whether to use "display" or "visibility". |
Fx |
slideIn()
Slides the element into view. |
Fx |
slideIn(java.lang.String anchorPosition,
FxConfig config)
Slides the element into view. |
Fx |
slideOut()
Slides the element out of view. |
Fx |
slideOut(boolean remove,
java.lang.String anchorPosition,
FxConfig config)
Slides the element out of view. |
Fx |
stopFx()
Stops any running effects and clears the element's internal effects queue if it contains any additional effects that haven't started yet. |
BaseElement |
swallowEvent(java.lang.String eventName)
Stops the specified event from bubbling and optionally prevents the default action. |
BaseElement |
swallowEvent(java.lang.String eventName,
boolean preventDefault)
Stops the specified event from bubbling and optionally prevents the default action. |
Fx |
switchOff()
Blinks the element as if it was clicked and then collapses on its center (similar to switching off a television). |
Fx |
switchOff(boolean remove,
FxConfig config)
Blinks the element as if it was clicked and then collapses on its center (similar to switching off a television). |
Fx |
syncFx()
Ensures that all effects queued after syncFx is called on the element are run concurrently. |
BaseElement |
toggle(AnimationConfig animateConfig)
Toggles the element's visibility or display, depending on visibility mode. |
BaseElement |
toggle(boolean animate)
Toggles the element's visibility or display, depending on visibility mode. |
BaseElement |
toggleClass(java.lang.String className)
Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it). |
void |
unselectable()
Disables text selection for this element (normalized across browsers). |
void |
update(java.lang.String html)
Update the innerHTML of this element. |
void |
update(java.lang.String html,
boolean loadScripts)
Update the innerHTML of this element, optionally searching for and processing scripts. |
com.google.gwt.user.client.Element |
wrap(DomConfig config)
Creates and wraps this element with another element. |
Methods inherited from class com.gwtext.client.core.JsObject |
---|
getJsObj, getProperties, isCreated, setJsObj |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BaseElement()
public BaseElement(com.google.gwt.core.client.JavaScriptObject jsObj)
Method Detail |
---|
public BaseElement addClass(java.lang.String className)
className
- the CSS class to add
public BaseElement addClass(java.lang.String[] classNames)
classNames
- an array of CSS classes
public BaseElement addClassOnClick(java.lang.String className)
className
- the CSS class to add
public BaseElement addClassOnFocus(java.lang.String className)
className
- the CSS class to add
public BaseElement addClassOnOver(java.lang.String className)
public BaseElement addClassOnOver(java.lang.String className, boolean preventFlicker)
className
- the CSS class to addpreventFlicker
- if set to true, it prevents flickering by filtering mouseout events for children elements
public KeyMap addKeyListener(int keyCode, KeyListener listener)
keyCode
- the numeric key codelistener
- the key listener
public KeyMap addKeyListener(int[] keyCodes, KeyListener listener)
keyCodes
- array of key codeslistener
- the key listener
public KeyMap addKeyListener(java.lang.String keys, KeyListener listener)
keys
- a string with the keys to listen forlistener
- the key listener
public KeyMap addKeyMap(KeyMapConfig config)
config
- the key map config
public void addListener(java.lang.String eventName, EventCallback cb)
eventName
- the type of event to appendcb
- the event callbackpublic void addListener(java.lang.String eventName, EventCallback cb, ListenerConfig config)
eventName
- the type of event to appendcb
- the event callbackconfig
- the listener configpublic BaseElement alignTo(java.lang.String id, java.lang.String anchorPosition)
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 cornerExample 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});
id
- the element to align toanchorPosition
- the element's anchor point
public BaseElement alignTo(java.lang.String id, java.lang.String anchorPosition, int[] offsetXY, boolean animate)
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 cornerExample 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});
id
- the element to align toanchorPosition
- the element's anchor pointoffsetXY
- offset the positioning by [x, y]animate
- true for the default animation
public BaseElement anchorTo(java.lang.String id, java.lang.String anchorPosition)
id
- the element to align toanchorPosition
- the element's anchor point
public BaseElement anchorTo(java.lang.String id, java.lang.String anchorPosition, int[] offsetXY, boolean animate, int bufferDelay)
id
- the element to align toanchorPosition
- the element's anchor pointoffsetXY
- offset the positioning by [x, y]animate
- true for the default animationbufferDelay
- buffer delay
public BaseElement animate(GenericConfig args)
GenericConfig animArgs = new GenericConfig();
GenericConfig widthArgs = new GenericConfig();
widthArgs.setProperty("from", 600);
widthArgs.setProperty("to", 0);
animArgs.setProperty("width", widthArgs);
el.animate(animArgs);
args
- animation control args
public BaseElement animate(GenericConfig args, float duration, Function onComplete, com.gwtext.client.animation.Easing easing, java.lang.String animType)
args
- animation control argsduration
- how long the animation lasts in seconds (defaults to .35)onComplete
- function to call when animation completeseasing
- Easing method to use (defaults to easeOut) easeOut. See http://developer.yahoo.com/yui/docs/YAHOO.util.Easing.htmlanimType
- 'run' is the default. Can also be 'color', 'motion', or 'scroll'
public BaseElement applyStyles(java.lang.String style)
setStyle(java.lang.String, java.lang.String)
for setting style properties.
style
- a style specification string, e.g. "width:100px"
public BaseElement autoHeight()
public BaseElement autoHeight(boolean animate, float duration, Function onComplete, com.gwtext.client.animation.Easing easing)
animate
- animate the transition (defaults to false)duration
- length of the animation in seconds (defaults to .35)onComplete
- Function to call when animation completeseasing
- Easing method to use (defaults to easeOut)
public void clean()
public void clean(boolean forceClean)
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.public BaseElement clearOpacity()
public BaseElement clip()
public ExtElement createShim()
public BaseElement enableDisplayMode()
public BaseElement enableDisplayMode(java.lang.String display)
display
- what to set display to when visible
public BaseElement hide()
setVisible(boolean)
.
public BaseElement hide(boolean animate)
setVisible(boolean)
.
animate
- true for the default animation
public BaseElement hide(AnimationConfig animateConfig)
setVisible(boolean)
.
animateConfig
- the animation config
public BaseElement move(Direction direction, int distance)
direction
- the directiondistance
- how far to move the element in pixels
public BaseElement move(Direction direction, int distance, boolean animate)
direction
- the directiondistance
- how far to move the element in pixelsanimate
- true for the default animation
public BaseElement move(Direction direction, int distance, AnimationConfig animateConfig)
direction
- the directiondistance
- how far to move the element in pixelsanimateConfig
- the animation config
public BaseElement moveTo(int x, int y)
x
- X value for new position (coordinates are page-based)y
- Y value for new position (coordinates are page-based)
public BaseElement moveTo(int x, int y, boolean animate)
x
- X value for new position (coordinates are page-based)y
- Y value for new position (coordinates are page-based)animate
- true to animate
public BaseElement moveTo(int x, int y, AnimationConfig animateConfig)
x
- X value for new position (coordinates are page-based)y
- Y value for new position (coordinates are page-based)animateConfig
- the animcation config
public BaseElement radioClass(java.lang.String className)
className
- the CSS class to add
public BaseElement radioClass(java.lang.String[] classNames)
classNames
- the CSS classes to add
public void remove()
public void removeAllListeners()
public BaseElement removeClass(java.lang.String className)
className
- the CSS class to remove
public BaseElement removeClass(java.lang.String[] classNames)
classNames
- the CSS classes to remove
public BaseElement repaint()
public BaseElement replaceClass(java.lang.String oldClassName, java.lang.String newClassName)
oldClassName
- the CSS class to replacenewClassName
- the replacement CSS class
public boolean scroll(Direction direction, int distance, boolean animate)
direction
- the directiondistance
- how far to scroll the element in pixelsanimate
- true to animate
public boolean scroll(Direction direction, int distance, AnimationConfig animateConfig)
direction
- the directiondistance
- how far to scroll the element in pixelsanimateConfig
- the animation config
public BaseElement scrollTo(java.lang.String side, int value, boolean animate)
side
- Either "left" for scrollLeft values or "top" for scrollTop values.value
- the new scroll valueanimate
- true for the default animation
public BaseElement scrollTo(java.lang.String side, int value, AnimationConfig animateConfig)
side
- Either "left" for scrollLeft values or "top" for scrollTop values.value
- the new scroll valueanimateConfig
- the animation config
public BaseElement setBottom(java.lang.String bottom)
bottom
- the bottom CSS property value
public BaseElement setBounds(int x, int y, int width, int height)
x
- X value for new position (coordinates are page-based)y
- Y value for new position (coordinates are page-based)width
- the new widthheight
- the new height
public BaseElement setBounds(int x, int y, int width, int height, boolean animate)
x
- X value for new position (coordinates are page-based)y
- Y value for new position (coordinates are page-based)width
- the new widthheight
- the new heightanimate
- true to animate
public BaseElement setBounds(int x, int y, int width, int height, AnimationConfig animateConfig)
x
- X value for new position (coordinates are page-based)y
- Y value for new position (coordinates are page-based)width
- the new widthheight
- the new heightanimateConfig
- the animation config
public BaseElement setBox(Box box)
box
- the box to fill {x, y, width, height}
public BaseElement setBox(Box box, boolean adjust, boolean animate)
box
- the box to fill {x, y, width, height}adjust
- Whether to adjust for box-model issues automaticallyanimate
- true for the default animation
public BaseElement setBox(Box box, boolean adjust, AnimationConfig animateConfig)
box
- the box to fill {x, y, width, height}adjust
- Whether to adjust for box-model issues automaticallyanimateConfig
- the animation config
public BaseElement setDisplayed(boolean value)
value
- Boolean value to display the element using its default display
public BaseElement setHeight(int height, boolean animate)
height
- the new heightanimate
- true to animate
public BaseElement setHeight(int height, AnimationConfig animateConfig)
height
- the new heightanimateConfig
- the animation config
public BaseElement setLeft(java.lang.String left)
left
- the left CSS property value
public BaseElement setLeftTop(java.lang.String left, java.lang.String top)
left
- the left CSS property valuetop
- the top CSS property value
public BaseElement setLocation(int x, int y, boolean animate)
x
- X value for new position (coordinates are page-based)y
- Y value for new position (coordinates are page-based)animate
- true to animate
public BaseElement setLocation(int x, int y, AnimationConfig animateConfig)
x
- X value for new position (coordinates are page-based)y
- Y value for new position (coordinates are page-based)animateConfig
- the animation config
public BaseElement setOpacity(float opacity, boolean animate)
opacity
- the new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etcanimate
- true to animate
public BaseElement setOpacity(float opacity, AnimationConfig animateConfig)
opacity
- the new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etcanimateConfig
- the animation config
public BaseElement setRegion(Region region, boolean animate)
region
- the region to fillanimate
- true to animate
public BaseElement setRegion(Region region, AnimationConfig animateConfig)
region
- the region to fillanimateConfig
- the animation config
public BaseElement setRight(java.lang.String right)
right
- the right CSS property value
public BaseElement setSize(int width, int height, boolean animate)
width
- the new widthheight
- the new heightanimate
- true to animate
public BaseElement setSize(int width, int height, AnimationConfig animateConfig)
width
- the new widthheight
- the new heightanimateConfig
- the animation config
public BaseElement setStyle(java.lang.String style, java.lang.String value)
style
- the style property to be setvalue
- the value to apply to the given property
public BaseElement setStyles(GenericConfig styles)
styles
- the style property to be set
public BaseElement setTop(java.lang.String top)
top
- the top CSS property value
public BaseElement setVisibilityMode(boolean useVisibleProperty)
useVisibleProperty
- true to use VISIBILITY, false for DISPLAY
public BaseElement setVisible(boolean visible)
visible
- Whether the element is visible
public BaseElement setVisible(boolean visible, boolean animate)
visible
- Whether the element is visibleanimate
- true to animate
public BaseElement setVisible(boolean visible, AnimationConfig animateConfig)
visible
- Whether the element is visibleanimateConfig
- the animation config
public BaseElement setWidth(int width, boolean animate)
width
- the new widthanimate
- true to animate
public BaseElement setWidth(java.lang.String width, boolean animate)
width
- the new widthanimate
- true to animate
public BaseElement setWidth(int width, AnimationConfig animateConfig)
width
- the new widthanimateConfig
- the animation config
public BaseElement setX(int x, boolean animate)
x
- X position of the elementanimate
- true to animate
public BaseElement setX(int x, AnimationConfig animateConfig)
x
- X position of the elementanimateConfig
- the animation config
public BaseElement setXY(int x, int y, boolean animate)
x
- X position of the elementy
- Y position of the elementanimate
- true to animate
public BaseElement setXY(int x, int y, AnimationConfig animateConfig)
x
- X position of the elementy
- Y position of the elementanimateConfig
- the animation config
public BaseElement setY(int y, boolean animate)
y
- Y position of the elementanimate
- true to animate
public BaseElement setY(int y, AnimationConfig animateConfig)
y
- Y position of the elementanimateConfig
- the animation config
public BaseElement show(boolean animate)
setVisible(boolean)
.
animate
- true to animate
public BaseElement show(AnimationConfig animateConfig)
setVisible(boolean)
.
animateConfig
- the animation config
public BaseElement swallowEvent(java.lang.String eventName)
eventName
- the event name
public BaseElement swallowEvent(java.lang.String eventName, boolean preventDefault)
eventName
- the event namepreventDefault
- true to prevent the default action too
public BaseElement toggle(boolean animate)
animate
- true to animate
public BaseElement toggle(AnimationConfig animateConfig)
animateConfig
- the animation config
public BaseElement toggleClass(java.lang.String className)
className
- the CSS class to toggle
public void unselectable()
public void update(java.lang.String html)
html
- the new HTMLpublic void update(java.lang.String html, boolean loadScripts)
html
- the new HTMLloadScripts
- true to look for and process scriptspublic com.google.gwt.user.client.Element wrap(DomConfig config)
config
- DomHelper element config object for the wrapper element
public Fx fadeIn()
Fx
// default: fade in from opacity 0 to 100% el.fadeIn();
fadeIn
in interface Fx
public Fx fadeIn(FxConfig config)
Fx
// fade in from opacity 0 to 75% over 2 seconds el.fadeIn(new FxConfig() { { setEndOpacity(0.75); setDuration(2); });
fadeIn
in interface Fx
config
- the Fx config
public Fx fadeOut()
Fx
fadeOut
in interface Fx
public Fx fadeOut(FxConfig config)
Fx
// fade out from the element's current opacity to 25% over 2 seconds el.fadeOut(new FxConfig() { { setEndOpacity(0.25); setDuration(2); });
fadeOut
in interface Fx
config
- the Fx config
public Fx frame()
Fx
frame
in interface Fx
public Fx frame(java.lang.String color, int count, FxConfig config)
Fx
// 3 red ripples lasting 3 seconds total el.frame("ff0000", 3, new FxConfig() { { setDurtion(3); }));
frame
in interface Fx
color
- he color of the border. Should be a 6 char hex color without the leading # (defaults to light blue: 'C3DAF9').count
- The number of ripples to display (defaults to 1)config
- the Fx config
public Fx ghost()
Fx
ghost
in interface Fx
public Fx ghost(java.lang.String anchorPosition, FxConfig config)
Fx
ghost
in interface Fx
anchorPosition
- the anchor positionconfig
- the Fx config
public boolean hasActiveFx()
Fx
hasActiveFx
in interface Fx
public boolean hasFxBlock()
Fx
hasFxBlock
in interface Fx
public Fx highlight()
Fx
highlight
in interface Fx
public Fx highlight(java.lang.String color, FxConfig config)
Fx
highlight
in interface Fx
color
- The highlight color. Should be a 6 char hex color without the leading # (defaults to yellow: 'ffff9c')config
- the Fx config
public Fx highlight(java.lang.String color, java.lang.String attr, java.lang.String endColor, FxConfig config)
Fx
// highlight foreground text to blue for 2 seconds el.highlight("0000ff", "color", "ffffff", new FxConfig() {{ setDuration(3) }});
highlight
in interface Fx
color
- The highlight color. Should be a 6 char hex color without the leading # (defaults to yellow: 'ffff9c')attr
- the attribute. Can be any valid CSS property (attribute) that supports a color value. Default is 'background-color'endColor
- the end colorconfig
- the Fx config
public Fx pause(int seconds)
Fx
pause
in interface Fx
seconds
- The length of time to pause (in seconds)
public Fx puff()
Fx
puff
in interface Fx
public Fx puff(boolean remove, FxConfig config)
Fx
puff
in interface Fx
remove
- true to remove elementconfig
- the Fx config
public Fx scale(int width, int height)
Fx
scale
in interface Fx
width
- The new widthheight
- The new height
public Fx scale(int width, int height, FxConfig config)
Fx
scale
in interface Fx
width
- The new widthheight
- The new heightconfig
- the Fx config
public Fx sequenceFx()
Fx
sequenceFx
in interface Fx
public Fx shift(int x, int y, int width, int height, FxConfig config)
Fx
shift
in interface Fx
x
- X postioniony
- Y positionwidth
- the new widthheight
- the new heightconfig
- the Fx config
public Fx slideIn()
Fx
slideIn
in interface Fx
public Fx slideIn(java.lang.String anchorPosition, FxConfig config)
Fx
slideIn
in interface Fx
anchorPosition
- the anchor positionconfig
- the Fx config
public Fx slideOut()
Fx
slideOut
in interface Fx
public Fx slideOut(boolean remove, java.lang.String anchorPosition, FxConfig config)
Fx
slideOut
in interface Fx
remove
- true to remove element from the DOManchorPosition
- the anchor positionconfig
- the Fx config
public Fx stopFx()
Fx
stopFx
in interface Fx
public Fx switchOff()
Fx
switchOff
in interface Fx
public Fx switchOff(boolean remove, FxConfig config)
Fx
switchOff
in interface Fx
remove
- true to remove element from the DOMconfig
- the Fx config
public Fx syncFx()
Fx
syncFx
in interface Fx
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |