|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.core.El
public class El
Represents an Element in the DOM.
Nested Class Summary | |
---|---|
static class |
El.VisMode
VisMode enumeration. |
Field Summary | |
---|---|
com.google.gwt.user.client.Element |
dom
The wrapped dom element. |
Constructor Summary | |
---|---|
El(com.google.gwt.user.client.Element element)
Creates a new el instance. |
|
El(java.lang.String html)
Creates a new El instance from the HTML fragment. |
Method Summary | |
---|---|
El |
addEventsSunk(int event)
Adds the event type to the element's sunk events. |
El |
addStyleName(java.lang.String... styleNames)
Adds the style name to the element. |
static java.lang.String |
addUnits(java.lang.String v,
java.lang.String defaultUnit)
Tests to see if the value has units, otherwise appends the default (px). |
Point |
adjustForConstraints(Point p)
Ensures the element is within the browser viewport. |
El |
alignTo(com.google.gwt.user.client.Element align,
java.lang.String pos,
int[] offsets)
Aligns the element with another element relative to the specified anchor points. |
El |
appendChild(com.google.gwt.user.client.Element child)
Appends a element. |
El |
applyStyles(java.lang.String styles)
More flexible version of setStyleAttribute(java.lang.String, java.lang.Object) for setting style
properties. |
El |
blink(FxConfig config)
Blinks the element. |
El |
blur()
Removes focus. |
El |
boxWrap(java.lang.String style)
Wraps the specified element with a special markup/CSS block. |
El |
center()
Centers the element in the viewport. |
El |
center(boolean constrainViewport)
Centers the element. |
El |
center(com.google.gwt.user.client.Element container)
Centers an element. |
El |
child(java.lang.String selector)
Selects a single child at any depth below this element based on the passed CSS selector. |
com.google.gwt.user.client.Element |
childElement(java.lang.String selector)
Selects a single child at any depth below this element based on the passed CSS selector. |
El |
childNode(int index)
Returns the element's child. |
El |
clearOpacity()
Clears the set opacity correctly. |
El |
click()
Generators a native dom click on the element. |
El |
clip()
Clips overflow on the element. |
com.google.gwt.user.client.Element |
cloneNode(boolean deep)
Clones the element. |
El |
createChild(java.lang.String html)
Creates and adds a child using the HTML fragment. |
El |
createChild(java.lang.String html,
com.google.gwt.user.client.Element insertBefore)
Creates and inserts a child using the HTML fragment. |
El |
disable()
Disables the element. |
El |
disableContextMenu(boolean disable)
Enables and disables the browsers default context menu for the specified element.A circular reference will be created when disabling text selection. |
El |
disableTextSelection(boolean disable)
Enables or disables text selection for the element. |
El |
down(java.lang.String selector)
Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id). |
El |
enable()
Enables the element. |
El |
enableDisplayMode(java.lang.String display)
Convenience method for setVisibilityMode(VisibilityMode.DISPLAY). |
boolean |
equals(java.lang.Object obj)
|
El |
fadeIn(FxConfig config)
Fades in the element. |
El |
fadeOut(FxConfig config)
Fades out the element. |
El |
fadeToggle(FxConfig config)
Toggles the element visibility using a fade effect. |
El |
findParent(java.lang.String selector,
int maxDepth)
Looks at this node and then at parent nodes for a match of the passed simple selector (e.g. |
com.google.gwt.user.client.Element |
findParentElement(java.lang.String selector,
int maxDepth)
Looks at this node and then at parent nodes for a match of the passed simple selector (e.g. |
El |
firstChild()
Returns the element's first child. |
static El |
fly(com.google.gwt.dom.client.Element element)
|
static El |
fly(com.google.gwt.user.client.Element element)
|
static El |
fly(com.google.gwt.dom.client.Element element,
java.lang.String s)
Gets the globally shared flyweight El, with the passed node as the active element. |
static El |
fly(com.google.gwt.user.client.Element element,
java.lang.String s)
Gets the globally shared flyweight El, with the passed node as the active element. |
El |
focus()
Tries to focus the element. |
Point |
getAlignToXY(com.google.gwt.user.client.Element align,
java.lang.String pos,
int[] offsets)
Gets the x,y coordinates to align this element with another element. |
Point |
getAlignToXY(com.google.gwt.user.client.Element elem,
java.lang.String p,
int ox,
int oy)
|
Point |
getAnchorXY(java.lang.String anchor,
boolean local)
Returns the x,y coordinates specified by the anchor position on the element. |
int |
getBorderWidth(java.lang.String sides)
Returns the width of the border(s) for the specified side(s). |
int |
getBottom(boolean local)
Returns the bottom Y coordinate of the element (element Y position + element height). |
Rectangle |
getBounds()
Returns the elements bounds in page coordinates. |
Rectangle |
getBounds(boolean local)
Returns the elements bounds in page coordinates. |
Rectangle |
getBounds(boolean local,
boolean adjust)
Returns the element's bounds in page coordinates. |
El |
getChild(int index)
Returns a child element. |
com.google.gwt.user.client.Element |
getChildElement(int index)
Returns a child element. |
int |
getChildIndex(com.google.gwt.user.client.Element child)
Returns the index of the child element. |
int |
getClientHeight()
Returns the element's client height property. |
int |
getClientWidth()
Returns the element's client width property. |
int |
getComputedHeight()
Returns either the offsetHeight or the height of this element based on it's CSS height. |
int |
getComputedWidth()
Returns either the offsetWidth or the width of this element based on it's CSS width. |
protected Point |
getConstrainToXY(com.google.gwt.user.client.Element elem,
Point proposedXY)
|
Size |
getFrameSize()
Returns the sum width of the padding and borders for all "sides". |
int |
getFrameWidth(java.lang.String sides)
Returns the sum width of the padding and borders for the passed "sides". |
int |
getHeight()
Returns the offset height of the element. |
int |
getHeight(boolean content)
Returns the element's height. |
java.lang.String |
getId()
Returns the element's id. |
java.lang.String |
getInnerHtml()
Returns the element's inner HTML. |
int |
getIntStyleAttribute(java.lang.String attr)
Returns the element's style value. |
Rectangle |
getLayoutBounds()
Returns the element's content area bounds. |
int |
getLeft()
Returns the top Y coordinate. |
int |
getLeft(boolean local)
Gets the left X coordinate. |
int |
getMargins(java.lang.String sides)
Returns an object with properties top, left, right and bottom representing the margins of this element unless sides is passed, then it returns the calculated width of the sides (see #getPadding). |
Point |
getOffsetsTo(com.google.gwt.user.client.Element to)
Returns the offsets between two elements. |
java.lang.String |
getOuterHtml()
Returns the element's outer HTML. |
int |
getPadding(java.lang.String sides)
Gets the width of the padding(s) for the specified side(s). |
El |
getParent()
Returns the element's parent. |
Region |
getRegion()
Returns the region of the given element. |
int |
getRight(boolean local)
Returns the right X coordinate of the element (element X position + element width). |
Scroll |
getScroll()
Returns the body elements current scroll position. |
int |
getScrollLeft()
Returns the horizontal scroll position. |
int |
getScrollTop()
Returns the current vertical scroll position. |
Size |
getSize()
Returns the size of the element. |
Size |
getSize(boolean content)
Returns the element's size. |
FastMap<java.lang.String> |
getStyleAttribute(java.util.List<java.lang.String> attr)
|
java.lang.String |
getStyleAttribute(java.lang.String attr)
Normalizes currentStyle and computedStyle. |
int |
getStyleHeight()
Returns the style width. |
java.lang.String |
getStyleName()
Returns the element's style name. |
Size |
getStyleSize()
|
Size |
getStyleSize(boolean contentOnly)
Returns the element's size, using style attribute before offsets. |
int |
getStyleWidth()
Returns the style width. |
com.google.gwt.user.client.Element |
getSubChild(int depth)
Returns the element's sub child. |
int |
getTextWidth()
Returns the measured width of the element's text. |
int |
getTop()
Returns the top Y coordinate. |
int |
getTop(boolean local)
Gets the top Y coordinate. |
java.lang.String |
getValue()
Returns the the "value" attribute. |
int |
getWidth()
Returns the offset width. |
int |
getWidth(boolean content)
Returns the element's width. |
int |
getX()
Gets the current X position of the element based on page coordinates. |
Point |
getXY()
Gets the current position of the element based on page coordinates. |
int |
getY()
Gets the current Y position of the element based on page coordinates. |
int |
getZIndex()
Returns the element's z-index. |
boolean |
hasStyleName(java.lang.String style)
Checks if the specified CSS style name exists on this element's DOM node. |
El |
hide()
Hides this element |
El |
insertBefore(com.google.gwt.user.client.Element before)
Inserts this element before the passed element. |
El |
insertBefore(com.google.gwt.user.client.Element[] elements,
com.google.gwt.user.client.Element before)
Inserts the elements as a child before the given element. |
El |
insertBefore(com.google.gwt.user.client.Element child,
com.google.gwt.user.client.Element before)
Inserts the element as a child before the given element. |
El |
insertChild(com.google.gwt.user.client.Element[] children,
int index)
Inserts the children at the specified index. |
El |
insertChild(com.google.gwt.user.client.Element child,
int index)
Inserts an element at the specified index. |
El |
insertFirst(com.google.gwt.user.client.Element element)
Inserts an element as the first child. |
El |
insertFirst(com.google.gwt.user.client.Element[] elems)
Inserts the children. |
El |
insertFirst(java.lang.String html)
Creates and inserts a child element. |
El |
insertHtml(java.lang.String where,
java.lang.String html)
Inserts an html fragment into this element |
El |
insertInto(com.google.gwt.user.client.Element parent)
Inserts the element into the given parent. |
El |
insertInto(com.google.gwt.user.client.Element parent,
int index)
Inserts a element. |
El |
insertLast(com.google.gwt.user.client.Element child)
Inserts the child element as the last child. |
El |
insertSibling(com.google.gwt.user.client.Element[] elems,
java.lang.String where)
Inserts the passed elements as a sibling of this element. |
com.google.gwt.user.client.Element |
insertSibling(com.google.gwt.user.client.Element elem,
java.lang.String where)
Inserts the passed element as a sibling of this element. |
boolean |
is(java.lang.String selector)
Returns true if this element matches the passed simple selector (e.g. |
boolean |
isBorderBox()
Returns true if the element is a border box. |
static boolean |
isBorderBox(com.google.gwt.user.client.Element element)
Returns true if the passed element has a border box. |
boolean |
isConnected()
Returns true if the element is part of the browser's DOM. |
boolean |
isMasked()
Returns true if this element is masked. |
boolean |
isOrHasChild(com.google.gwt.user.client.Element child)
Returns true if the child element is or a child of this element. |
boolean |
isScrollable()
Returns whether the element is scrollable (x or y). |
boolean |
isScrollableX()
Returns whether the element is scrollable on the x-axis. |
boolean |
isScrollableY()
Returns whether the element is scrollable on the y-axis. |
boolean |
isStyleAttribute(java.util.Map<java.lang.String,java.lang.String> map,
boolean matchAll)
|
boolean |
isStyleAttribute(java.lang.String attr,
java.lang.String value)
|
boolean |
isVisibility()
Returns true if the element is visible using the css
'visibiliy' attribute. |
boolean |
isVisible()
Returns whether the element is currently visible. |
boolean |
isVisible(boolean deep)
Returns whether the element is currently visible. |
El |
lastChild()
Returns the element's last child. |
com.google.gwt.http.client.Request |
load(com.google.gwt.http.client.RequestBuilder builder)
Retrieves the data using the request builder and updates the element'c contents. |
El |
makePositionable()
Makes an element positionable. |
El |
makePositionable(boolean absolute)
Makes an element positionable. |
El |
mask()
Puts a mask over this element to disable user interaction. |
El |
mask(java.lang.String message)
Puts a mask over this element to disable user interaction. |
El |
mask(java.lang.String message,
java.lang.String messageStyleName)
Puts a mask over this element to disable user interaction. |
com.google.gwt.user.client.Element |
nextSibling()
Returns the elements next sibling. |
com.google.gwt.user.client.Element |
previousSibling()
Returns the elements previous sibling. |
El |
remove()
Removes this element from the DOM |
El |
removeChild(com.google.gwt.user.client.Element child)
Removes a child. |
El |
removeChildren()
Removes all the elements children. |
El |
removeFromParent()
Removes the element from it's parent. |
El |
removeStyleName(java.lang.String... styleNames)
Removes the style names(s) from the element. |
El |
removeStyleName(java.lang.String styleName)
Removes a style name. |
El |
repaint()
Forces the Browser to repaint this element. |
El |
replaceStyleName(java.lang.String oldStyle,
java.lang.String newStyle)
Replaces a style name on the element with another. |
El |
scrollIntoView(com.google.gwt.user.client.Element container,
boolean hscroll)
|
El |
scrollIntoView(com.google.gwt.user.client.Element container,
boolean hscroll,
int[] offsets)
Scrolls the element into view. |
El |
scrollTo(java.lang.String side,
int value)
Scrolls this element the specified scroll point. |
El |
scrollTo(java.lang.String side,
int value,
FxConfig config)
Scrolls this element the specified scroll point. |
com.google.gwt.dom.client.NodeList<com.google.gwt.user.client.Element> |
select(java.lang.String selector)
Selects child nodes based on the passed CSS selector (the selector should not contain an id). |
El |
selectNode(java.lang.String selector)
Selects a single element. |
El |
setBorders(boolean show)
Adds or removes a border. |
El |
setBounds(int x,
int y,
int width,
int height)
Sets the element's bounds. |
El |
setBounds(int x,
int y,
int width,
int height,
boolean adjust)
Sets the element's bounds. |
El |
setBounds(Rectangle bounds)
Sets the element's bounds. |
El |
setBounds(Rectangle bounds,
boolean content)
Sets the element's bounds. |
El |
setDisplayed(boolean display)
Sets the CSS display property. |
El |
setDisplayed(java.lang.String display)
Sets the CSS display property. |
El |
setElementAttribute(java.lang.String attr,
boolean value)
Sets an element's attribute. |
El |
setElementAttribute(java.lang.String attr,
int value)
Sets an element's attribute. |
El |
setElementAttribute(java.lang.String attr,
java.lang.String value)
Sets an element's attribute. |
void |
setEnabled(boolean enabled)
Convenience function for setting disabled/enabled by boolean. |
El |
setFocus(boolean focus)
True to focus, false to blur. |
El |
setHeight(int height)
Sets the elements height. |
El |
setHeight(int height,
boolean adjust)
Sets the elements height. |
El |
setHeight(java.lang.String height)
Sets the elements height. |
El |
setIconStyle(java.lang.String style)
Sets the the icon for an element either as a CSS style name or image path. |
El |
setId(java.lang.String id)
Sets the element's id. |
El |
setInnerHtml(java.lang.String html)
Sets the element's inner html. |
El |
setIntElementProperty(java.lang.String property,
int value)
Sets an element's property. |
El |
setLeft(int left)
Sets the element's left position directly using CSS style (instead of setX(int) ). |
El |
setLeftTop(int left,
int top)
Quick set left and top adding default units. |
El |
setMargins(Margins margin)
Sets the elements's margin. |
El |
setPadding(Padding padding)
Sets the elements's padding. |
El |
setPagePosition(int x,
int y)
Sets the element's position in page coordinates. |
El |
setScrollLeft(int left)
Sets the element's horizontal scroll position. |
El |
setScrollTop(int top)
Sets the element's vertical scroll position. |
El |
setSize(int width,
int height)
Sets the element's size. |
El |
setSize(int width,
int height,
boolean adjust)
Set the size of the element. |
El |
setSize(Size size)
Sets the element's size. |
El |
setSize(java.lang.String width,
java.lang.String height)
Sets the element's size. |
El |
setStyleAttribute(java.lang.String attr,
java.lang.Object value)
Sets a style attribute. |
El |
setStyleName(java.lang.String style)
Sets the element's style name. |
El |
setStyleName(java.lang.String style,
boolean add)
Adds or removes the style name. |
El |
setStyleSize(int width,
int height)
Sets the element's size using style attributes. |
El |
setTabIndex(int index)
Sets the element's tab index. |
El |
setTitle(java.lang.String title)
Sets the element's title property. |
El |
setTop(int top)
Sets the element's top position directly using CSS style (instead of setY(int) ). |
El |
setValue(java.lang.String value)
Sets the element's value property. |
El |
setVisibility(boolean visible)
Sets the elements css 'visibility' property. |
El |
setVisibilityMode(El.VisMode visMode)
Sets the element's visibility mode. |
El |
setVisible(boolean visible)
Sets the visibility of the element (see details). |
El |
setWidth(int width)
Sets the element's width. |
El |
setWidth(int width,
boolean adjust)
Sets the elements's width. |
El |
setWidth(java.lang.String width)
Sets the element's width. |
El |
setX(int x)
Sets the X position of the element based on page coordinates. |
El |
setXY(int x,
int y)
Sets the elements position in page coordinates. |
El |
setXY(int x,
int y,
FxConfig config)
Sets the elements position in page coordinates. |
El |
setXY(Point p)
Sets the element's position in page coordinates. |
El |
setY(int y)
Sets the Y position of the element based on page coordinates. |
El |
setZIndex(int zIndex)
Sets the element's z-index. |
El |
show()
Shows this element |
El |
slideIn(Style.Direction direction,
FxConfig config)
Slides the element in. |
El |
slideOut(Style.Direction direction,
FxConfig config)
Slides the element out. |
El |
subChild(int depth)
Returns the element's sub child. |
El |
sync(boolean show)
Synchronizes the layer. |
El |
toggleStyleName(java.lang.String styleName)
Toggles the given style name, adding if not already present, removing if present. |
java.lang.String |
toString()
|
Point |
translatePoints(Point p)
|
El |
unclip()
Return clipping (overflow) to original clipping before clip() was called. |
El |
unmask()
Removes a previously applied mask. |
El |
unwrap(com.google.gwt.user.client.Element child,
Rectangle bounds)
Unwraps the child element. |
El |
update(java.lang.String html)
Sets the innerHTML to the given markup. |
El |
updateZIndex(int adj)
Sets the element's z-index using XDOM.getTopZIndex() to ensure it
has the highest values. |
Rectangle |
wrap(com.google.gwt.user.client.Element wrapper)
Wraps the element with the specified wrapper. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public com.google.gwt.user.client.Element dom
Constructor Detail |
---|
public El(com.google.gwt.user.client.Element element)
element
- the element to be wrappedpublic El(java.lang.String html)
html
- the htmlMethod Detail |
---|
public static java.lang.String addUnits(java.lang.String v, java.lang.String defaultUnit)
v
- the value
public static El fly(com.google.gwt.dom.client.Element element)
public static El fly(com.google.gwt.dom.client.Element element, java.lang.String s)
element
- the element
public static El fly(com.google.gwt.user.client.Element element)
public static El fly(com.google.gwt.user.client.Element element, java.lang.String s)
element
- the element to be wrapped
public static boolean isBorderBox(com.google.gwt.user.client.Element element)
element
- the element to test
public El addEventsSunk(int event)
event
- the events to add
public El addStyleName(java.lang.String... styleNames)
styleNames
- the new style names
public El toggleStyleName(java.lang.String styleName)
styleName
- the style name to toggle
public Point adjustForConstraints(Point p)
p
- the target destination
public El alignTo(com.google.gwt.user.client.Element align, java.lang.String pos, int[] offsets)
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
align
- the element to align topos
- the position to align tooffsets
- the offsets or null
public El appendChild(com.google.gwt.user.client.Element child)
child
- the element to add
public El applyStyles(java.lang.String styles)
setStyleAttribute(java.lang.String, java.lang.Object)
for setting style
properties. Style attribute names must be in lower camel case, e.g.
"backgroundColor:white"
styles
- a style specification string
public El blink(FxConfig config)
config
- the fx config
public El blur()
public El boxWrap(java.lang.String style)
style
- a base CSS class to apply to the containing wrapper element
(defaults to 'x-box').
public El center()
public El center(boolean constrainViewport)
constrainViewport
- true to constrain the element position to the
viewport.
public El center(com.google.gwt.user.client.Element container)
container
- the container element
public El child(java.lang.String selector)
selector
- the css selector
public com.google.gwt.user.client.Element childElement(java.lang.String selector)
selector
- the css selector
public El childNode(int index)
index
- the index of the child element
public El clearOpacity()
public El click()
public El clip()
public com.google.gwt.user.client.Element cloneNode(boolean deep)
deep
- true to clone children
public El createChild(java.lang.String html)
html
- the html fragment
public El createChild(java.lang.String html, com.google.gwt.user.client.Element insertBefore)
html
- the html fragmentinsertBefore
- a child element of this element
public El disable()
public El disableContextMenu(boolean disable)
Component
source for an example.
disable
- true to disable, false to enable
public El disableTextSelection(boolean disable)
Component
source for an
example.
disable
- true to disable, false to enable
public El down(java.lang.String selector)
selector
- the CSS selector
public El enable()
public El enableDisplayMode(java.lang.String display)
display
- what to set display to when visible
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public El fadeIn(FxConfig config)
config
- the fx config
public El fadeOut(FxConfig config)
config
- the fx config
public El fadeToggle(FxConfig config)
config
- the fx config
public El findParent(java.lang.String selector, int maxDepth)
selector
- the simple selector to test
public com.google.gwt.user.client.Element findParentElement(java.lang.String selector, int maxDepth)
selector
- the simple selector to testmaxDepth
- the max depth
public El firstChild()
public El focus()
public Point getAlignToXY(com.google.gwt.user.client.Element elem, java.lang.String p, int ox, int oy)
public Point getAlignToXY(com.google.gwt.user.client.Element align, java.lang.String pos, int[] offsets)
alignTo(com.google.gwt.user.client.Element, java.lang.String, int[])
for more info on the supported position values.
align
- the element to align topos
- the position to align tooffsets
- the offsets or null
public Point getAnchorXY(java.lang.String anchor, boolean local)
anchor
- the specified anchor position (defaults to "c"). See
alignTo(com.google.gwt.user.client.Element, java.lang.String, int[])
for details on supported anchor positions.local
- true
to get the local (element top/left-relative)
anchor position instead of page coordinates
public int getBorderWidth(java.lang.String sides)
sides
- can be t, l, r, b or any combination of those to add multiple
values. For example, passing lr would get the border (l)eft width
+ the border (r)ight width.
public int getBottom(boolean local)
local
-
public Rectangle getBounds()
public Rectangle getBounds(boolean local)
local
- if true the element's left and top are returned instead of
page coordinates
public Rectangle getBounds(boolean local, boolean adjust)
local
- if true the element's left and top are returned instead of
page coordinatesadjust
- if true sizes get adjusted
public El getChild(int index)
index
- the child index
public com.google.gwt.user.client.Element getChildElement(int index)
index
- the child index
public int getChildIndex(com.google.gwt.user.client.Element child)
public int getClientHeight()
public int getClientWidth()
public int getComputedHeight()
public int getComputedWidth()
public Size getFrameSize()
public int getFrameWidth(java.lang.String sides)
sides
- sides
public int getHeight()
public int getHeight(boolean content)
content
- true to get the height minus borders and padding
public java.lang.String getId()
public java.lang.String getInnerHtml()
public int getIntStyleAttribute(java.lang.String attr)
attr
- the attribute name
public Rectangle getLayoutBounds()
public int getLeft()
public int getLeft(boolean local)
local
- true to get the local css position instead of page coordinate
public int getMargins(java.lang.String sides)
sides
- any combination of l, r, t, b to get the sum of those sides
public Point getOffsetsTo(com.google.gwt.user.client.Element to)
to
- the to element
public java.lang.String getOuterHtml()
public int getPadding(java.lang.String sides)
sides
- can be t, l, r, b or any combination of those to add multiple
values. For example, passing lr would get the border (l)eft width
+ the border (r)ight width.
public El getParent()
public Region getRegion()
public int getRight(boolean local)
local
- true
to get the local css position instead of
page coordinate
public Scroll getScroll()
public int getScrollLeft()
public int getScrollTop()
public Size getSize()
public Size getSize(boolean content)
content
- true to get the size minus borders and padding
public FastMap<java.lang.String> getStyleAttribute(java.util.List<java.lang.String> attr)
public java.lang.String getStyleAttribute(java.lang.String attr)
attr
- the style attribute whose value is returned.
public int getStyleHeight()
public java.lang.String getStyleName()
public Size getStyleSize()
public Size getStyleSize(boolean contentOnly)
public int getStyleWidth()
public com.google.gwt.user.client.Element getSubChild(int depth)
depth
- the child node depth
public int getTextWidth()
public int getTop()
public int getTop(boolean local)
local
- true to get the local css position instead of page coordinate
public java.lang.String getValue()
public int getWidth()
public int getWidth(boolean content)
content
- true to get the width minus borders and padding
public int getX()
public Point getXY()
public int getY()
public int getZIndex()
public boolean hasStyleName(java.lang.String style)
style
- the style name
public El hide()
public El insertBefore(com.google.gwt.user.client.Element before)
before
- the element to insert before
public El insertBefore(com.google.gwt.user.client.Element child, com.google.gwt.user.client.Element before)
child
- the element to insertbefore
- the element the child will be inserted before
public El insertBefore(com.google.gwt.user.client.Element[] elements, com.google.gwt.user.client.Element before)
elements
- the elements to insertbefore
- the element the children will be inserted before
public El insertChild(com.google.gwt.user.client.Element child, int index)
child
- the child elementindex
- the insert location
public El insertChild(com.google.gwt.user.client.Element[] children, int index)
children
- the children to addindex
- the insert location
public El insertFirst(com.google.gwt.user.client.Element element)
element
- the child element
public El insertFirst(com.google.gwt.user.client.Element[] elems)
elems
- the child elements
public El insertFirst(java.lang.String html)
html
- the HTML fragment
public El insertHtml(java.lang.String where, java.lang.String html)
where
- where to insert the html in relation to el - beforeBegin,
afterBegin, beforeEnd, afterEnd.html
- the HTML fragment
public El insertInto(com.google.gwt.user.client.Element parent)
parent
- the parent element
public El insertInto(com.google.gwt.user.client.Element parent, int index)
parent
- the parent elementindex
- the insert index
public El insertLast(com.google.gwt.user.client.Element child)
child
- the element to insert
public com.google.gwt.user.client.Element insertSibling(com.google.gwt.user.client.Element elem, java.lang.String where)
elem
- the element to insertwhere
- 'before' or 'after'
public El insertSibling(com.google.gwt.user.client.Element[] elems, java.lang.String where)
elems
- the elements to insertwhere
- where 'before' or 'after'
public boolean is(java.lang.String selector)
selector
- selector
public boolean isBorderBox()
public boolean isConnected()
public boolean isMasked()
public boolean isOrHasChild(com.google.gwt.user.client.Element child)
child
- the child element
public boolean isScrollable()
public boolean isScrollableX()
public boolean isScrollableY()
public boolean isStyleAttribute(java.util.Map<java.lang.String,java.lang.String> map, boolean matchAll)
public boolean isStyleAttribute(java.lang.String attr, java.lang.String value)
public boolean isVisibility()
true
if the element is visible using the css
'visibiliy' attribute.
public boolean isVisible()
public boolean isVisible(boolean deep)
deep
- true to deep test
public El lastChild()
public com.google.gwt.http.client.Request load(com.google.gwt.http.client.RequestBuilder builder)
This method is subject to change.
builder
- the request builderpublic El makePositionable()
public El makePositionable(boolean absolute)
absolute
- true
to position absolutely
public El mask()
public El mask(java.lang.String message)
message
- a message to display in the mask
public El mask(java.lang.String message, java.lang.String messageStyleName)
message
- a message to display in the maskmessageStyleName
- a CSS style name to be applied to the message text
public com.google.gwt.user.client.Element nextSibling()
public com.google.gwt.user.client.Element previousSibling()
public El remove()
public El removeChild(com.google.gwt.user.client.Element child)
child
- the child to remove
public El removeChildren()
public El removeFromParent()
public El removeStyleName(java.lang.String... styleNames)
styleNames
- the style names
public El removeStyleName(java.lang.String styleName)
styleName
- the style names to remove
public El repaint()
public El replaceStyleName(java.lang.String oldStyle, java.lang.String newStyle)
oldStyle
- the style to replacenewStyle
- the new style
public El scrollIntoView(com.google.gwt.user.client.Element container, boolean hscroll)
public El scrollIntoView(com.google.gwt.user.client.Element container, boolean hscroll, int[] offsets)
container
- the container elementhscroll
- false
to disable horizontal scrolling.public El scrollTo(java.lang.String side, int value)
side
- either "left" for scrollLeft values or "top" for scrollTop
values.value
- the new scroll value
public El scrollTo(java.lang.String side, int value, FxConfig config)
side
- side either "left" for scrollLeft values or "top" for scrollTop
values.value
- the new scroll valueconfig
- the fx config
public com.google.gwt.dom.client.NodeList<com.google.gwt.user.client.Element> select(java.lang.String selector)
selector
- the selector/xpath query
public El selectNode(java.lang.String selector)
selector
- the CSS selector
public El setBorders(boolean show)
show
- the show state
public El setBounds(int x, int y, int width, int height)
x
- the x coordinatey
- the y coordinatewidth
- the new widthheight
- the new height
public El setBounds(int x, int y, int width, int height, boolean adjust)
x
- the x coordinatey
- the y coordinatewidth
- the new widthheight
- the new heightadjust
- true to adjust for box model issues
public El setBounds(Rectangle bounds)
bounds
- the new bounds
public El setBounds(Rectangle bounds, boolean content)
bounds
- the new boundscontent
- true
to adjust for box model issues
public El setDisplayed(boolean display)
display
- true to display the element using its default display
public El setDisplayed(java.lang.String display)
display
- the display value
public El setElementAttribute(java.lang.String attr, boolean value)
attr
- the attribute namevalue
- the value
public El setElementAttribute(java.lang.String attr, int value)
attr
- the attribute namevalue
- the value
public El setElementAttribute(java.lang.String attr, java.lang.String value)
attr
- the attribute namevalue
- the value
public void setEnabled(boolean enabled)
enabled
- the enabled statepublic El setFocus(boolean focus)
focus
- the new focus statepublic El setHeight(int height)
height
- the height
public El setHeight(int height, boolean adjust)
height
- the heightadjust
- true
to adjust for box model issues
public El setHeight(java.lang.String height)
height
- the height
public El setIconStyle(java.lang.String style)
style
- the style are image pathpublic El setId(java.lang.String id)
id
- the new id
public El setInnerHtml(java.lang.String html)
html
- the new HTML
public El setIntElementProperty(java.lang.String property, int value)
property
- the property namevalue
- the value
public El setLeft(int left)
setX(int)
).
left
- the left value
public El setLeftTop(int left, int top)
left
- the left valuetop
- the top value
public El setMargins(Margins margin)
margin
- the margin
public El setPadding(Padding padding)
padding
- the padding
public El setPagePosition(int x, int y)
x
- the x coordinatey
- the y coordinate
public El setScrollLeft(int left)
left
- the left value
public El setScrollTop(int top)
top
- the top value
public El setSize(int width, int height)
width
- the new widthheight
- the new height
public El setSize(int width, int height, boolean adjust)
width
- the new widthheight
- the new heightadjust
- true
to adjust for box model issues
public El setSize(Size size)
size
- the size
public El setSize(java.lang.String width, java.lang.String height)
width
- the new sizeheight
- the new height
public El setStyleAttribute(java.lang.String attr, java.lang.Object value)
attr
- the attribute namevalue
- the int value
public El setStyleName(java.lang.String style)
style
- the style name
public El setStyleName(java.lang.String style, boolean add)
style
- the style nameadd
- true to add, false to remove
public El setStyleSize(int width, int height)
width
- the widthheight
- the height
public El setTabIndex(int index)
index
- the tab index
public El setTitle(java.lang.String title)
title
- the new title
public El setTop(int top)
setY(int)
).
top
- the top value
public El setValue(java.lang.String value)
value
- the valuepublic El setVisibility(boolean visible)
visible
- true
to show, false
to hide
public El setVisibilityMode(El.VisMode visMode)
visMode
- value {link VisMode#VISIBILITY}} or El.VisMode.DISPLAY
public El setVisible(boolean visible)
visible
- whether the element is visible
public El setWidth(int width)
width
- the new width
public El setWidth(int width, boolean adjust)
width
- the new widthadjust
- true
to adjust for box model issues
public El setWidth(java.lang.String width)
width
- the new width
public El setX(int x)
x
- the x coordinate
public El setXY(int x, int y)
x
- the x coordinatey
- the y coordinate
public El setXY(int x, int y, FxConfig config)
x
- the x coordinatey
- the y coordinate
public El setXY(Point p)
p
- the position
public El setY(int y)
y
- the y coordinate
public El setZIndex(int zIndex)
zIndex
- the z-index value
public El show()
public El slideIn(Style.Direction direction, FxConfig config)
direction
- the directionconfig
- the fx config
public El slideOut(Style.Direction direction, FxConfig config)
direction
- the directionconfig
- the fx config
public El subChild(int depth)
depth
- the child node depth
public El sync(boolean show)
show
- true to showpublic java.lang.String toString()
toString
in class java.lang.Object
public Point translatePoints(Point p)
public El unclip()
public El unmask()
public El unwrap(com.google.gwt.user.client.Element child, Rectangle bounds)
bounds
- the original boundspublic El update(java.lang.String html)
html
- the html
public El updateZIndex(int adj)
XDOM.getTopZIndex()
to ensure it
has the highest values.
adj
- the adjustment to be applied to the z-index value
public Rectangle wrap(com.google.gwt.user.client.Element wrapper)
wrapper
- the wrapper element
protected Point getConstrainToXY(com.google.gwt.user.client.Element elem, Point proposedXY)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |