|
|||||||||
| 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.
| 入れ子クラス 概要 |
|---|
| クラス com.extjs.gxt.ui.client.core.Elから継承された 入れ子クラス/インターフェース |
|---|
El.VisMode |
| Field 概要 |
|---|
| クラス com.extjs.gxt.ui.client.core.El から継承されたフィールド(Fields) |
|---|
dom |
| コンストラクタ 概要 | |
|---|---|
Layer()
Creates a new layer instance. |
|
Layer(com.google.gwt.user.client.Element element)
Creates a new layer instance wrapping the specified element. |
|
| メソッド 概要 | |
|---|---|
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 |
createShim()
Creates an iframe shim for this element to keep selects and other windowed objects from showing through. |
void |
destroy()
|
void |
disableShadow()
Disables the shadow. |
void |
enableShadow(boolean show)
Enables the shadow. |
void |
enableShim()
Enables the shim. |
El |
getShim()
Returns the layer's shim. |
void |
hideShadow()
Hides the layer's shadow. |
void |
hideShim()
Hides the shim. |
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 |
setLeft(int left)
Sets the element's left position directly using CSS style (instead of El.setX(int)). |
El |
setLeftTop(int left,
int top)
Quick set left and top adding default units. |
El |
setSize(int width,
int height)
Sets the element's size. |
El |
setSize(Size size)
Sets the element's size. |
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)
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 |
setY(int y)
Sets the Y position of the element based on page coordinates. |
void |
sync(boolean show)
Syncs the shadow and shim. |
El |
updateZIndex(int adj)
Sets the element's z-index using XDOM.getTopZIndex() to ensure it
has the highest values. |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタ 詳細 |
|---|
public Layer()
public Layer(com.google.gwt.user.client.Element element)
element - the element| メソッド 詳細 |
|---|
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 El createShim()
public void disableShadow()
public void enableShadow(boolean show)
show - true to showpublic void enableShim()
public El getShim()
public El updateZIndex(int adj)
ElXDOM.getTopZIndex() to ensure it
has the highest values.
updateZIndex in class Eladj - the adjustment to be applied to the z-index value
public void hideShadow()
public void hideShim()
public El setHeight(int height)
El
setHeight in class Elheight - the height
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 El setLeftTop(int left,
int top)
El
setLeftTop in class Elleft - the left valuetop - the top value
public El setSize(int width,
int height)
El
setSize in class Elwidth - the new widthheight - the new height
public El setSize(Size size)
El
setSize in class Elsize - the size
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)
El
setWidth in class Elwidth - the new width
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 setX(int x)
El
setX in class Elx - the x coordinate
public El setXY(int x,
int y)
El
setXY in class Elx - the x coordinatey - the y coordinate
public El setY(int y)
El
setY in class Ely - the y coordinate
public void sync(boolean show)
sync in class Elshow - true to showpublic void destroy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||