|
|||||||||
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 elementMethod 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 El
height
- the heightadjust
- true
to adjust for box model issues
public El setHeight(java.lang.String height)
El
setHeight
in class El
height
- the height
public El setLeft(int left)
El
El.setX(int)
).
setLeft
in class El
left
- the left value
public void setShadowOffset(int shadowOffset)
shadowOffset
- the offsetpublic void setShadowPosition(Layer.ShadowPosition shadowPosition)
shadowPosition
- the positionpublic El setTop(int top)
El
El.setY(int)
).
setTop
in class El
top
- the top value
public El setVisibility(boolean visible)
El
setVisibility
in class El
visible
- true
to show, false
to hide
public El setVisible(boolean visible)
El
setVisible
in class El
visible
- whether the element is visible
public El setWidth(int width, boolean adjust)
El
setWidth
in class El
width
- the new widthadjust
- true
to adjust for box model issues
public El setWidth(java.lang.String width)
El
setWidth
in class El
width
- the new width
public El setZIndex(int zIndex)
El
setZIndex
in class El
zIndex
- the z-index value
public El sync(boolean show)
sync
in class El
show
- true to show
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |