|
|||||||||
| 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 | |
|---|---|
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. |
boolean |
isShadow()
|
boolean |
isShim()
|
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 |
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 |
|---|
clone, finalize, 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 void disableShadow()
public void disableShim()
public void disableUnders()
public void enableShadow()
public void enableShim()
public El getShadow()
public int getShadowOffset()
public Layer.ShadowPosition getShadowPosition()
public El getShim()
public void hideShadow()
public void hideShim()
public void hideUnders()
public boolean isShadow()
public boolean isShim()
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 setShadowOffset(int shadowOffset)
shadowOffset - the offsetpublic void setShadowPosition(Layer.ShadowPosition shadowPosition)
shadowPosition - the positionpublic 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 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 | ||||||||