|
|||||||||
| 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
com.extjs.gxt.ui.client.widget.Layer
public class Layer
An extended El object that supports a shadow and shim, constrain to
viewport and automatic maintaining of shadow/shim positions.
| Nested Class Summary | |
|---|---|
static class |
Layer.ShadowPosition
|
| Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.core.El |
|---|
El.VisMode |
| Field Summary |
|---|
| Fields inherited from class com.extjs.gxt.ui.client.core.El |
|---|
dom |
| Constructor Summary | |
|---|---|
Layer()
Creates a new layer instance. |
|
Layer(com.google.gwt.user.client.Element element)
Creates a new layer instance wrapping the specified element. |
|
| Method Summary | |
|---|---|
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. |
void |
disableShadow()
Disables the shadow. |
void |
disableShim()
Disables the shim. |
void |
disableUnders()
Disables the shim and the shadow. |
void |
enableShadow()
Enables the shadow. |
void |
enableShim()
Enables the shim. |
El |
getShadow()
Returns the layer's shadow. |
int |
getShadowOffset()
Returns the shadow offset. |
Layer.ShadowPosition |
getShadowPosition()
Returns the shadow position. |
El |
getShim()
Returns the layer's shim. |
void |
hideShadow()
Hides the layer's shadow. |
void |
hideShim()
Hides the shim. |
void |
hideUnders()
Hides the shim and the shadow. |
El |
remove()
Removes this element from the DOM |
El |
setHeight(int height,
boolean adjust)
Sets the elements height. |
El |
setHeight(java.lang.String height)
Sets the elements height. |
El |
setLeft(int left)
Sets the element's left position directly using CSS style (instead of El.setX(int)). |
void |
setShadowOffset(int shadowOffset)
Sets the shadow offset (defaults to 4). |
void |
setShadowPosition(Layer.ShadowPosition shadowPosition)
Sets the shadow position (defaults to SIDES). |
El |
setTop(int top)
Sets the element's top position directly using CSS style (instead of El.setY(int)). |
El |
setVisibility(boolean visible)
Sets the elements css 'visibility' property. |
El |
setVisible(boolean visible)
Sets the visibility of the element (see details). |
El |
setWidth(int width,
boolean adjust)
Sets the elements's width. |
El |
setWidth(java.lang.String width)
Sets the element's width. |
El |
setXY(int x,
int y)
Sets the elements position in page coordinates. |
El |
setZIndex(int zIndex)
Sets the element's z-index. |
El |
sync(boolean show)
Syncs the shadow and shim. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Layer()
public Layer(com.google.gwt.user.client.Element element)
element - the element| Method Detail |
|---|
public El alignTo(com.google.gwt.user.client.Element align,
java.lang.String pos,
int[] offsets)
ElIn 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
alignTo in class Elalign - the element to align topos - the position to align tooffsets - the offsets or null
public void disableShadow()
public void disableShim()
public void disableUnders()
public void enableShadow()
public void enableShim()
public El getShadow()
public Layer.ShadowPosition getShadowPosition()
public int getShadowOffset()
public El getShim()
public void hideShadow()
public void hideShim()
public void hideUnders()
public El remove()
El
remove in class El
public El setHeight(int height,
boolean adjust)
El
setHeight in class Elheight - the heightadjust - true to adjust for box model issues
public El setHeight(java.lang.String height)
El
setHeight in class Elheight - the height
public El setLeft(int left)
ElEl.setX(int)).
setLeft in class Elleft - the left value
public void setShadowPosition(Layer.ShadowPosition shadowPosition)
shadowPosition - the positionpublic void setShadowOffset(int shadowOffset)
shadowOffset - the offsetpublic El setTop(int top)
ElEl.setY(int)).
setTop in class Eltop - the top value
public El setVisibility(boolean visible)
El
setVisibility in class Elvisible - true to show, false to hide
public El setVisible(boolean visible)
El
setVisible in class Elvisible - whether the element is visible
public El setWidth(int width,
boolean adjust)
El
setWidth in class Elwidth - the new widthadjust - true to adjust for box model issues
public El setWidth(java.lang.String width)
El
setWidth in class Elwidth - the new width
public El setXY(int x,
int y)
El
setXY in class Elx - the x coordinatey - the y coordinate
public El setZIndex(int zIndex)
El
setZIndex in class ElzIndex - the z-index value
public El sync(boolean show)
sync in class Elshow - true to show
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||