com.extjs.gxt.ui.client.widget
クラス Layer

java.lang.Object
  extended by com.extjs.gxt.ui.client.core.El
      extended by com.extjs.gxt.ui.client.widget.Layer

public class Layer
extends El

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.
 
クラス com.extjs.gxt.ui.client.core.El から継承されたメソッド
addEventsSunk, addStyleName, addUnits, adjustForConstraints, appendChild, applyStyles, blink, blur, boxWrap, center, center, child, childElement, childNode, click, clip, cloneNode, createChild, disable, disableContextMenu, disableTextSelection, down, enable, enableDisplayMode, fadeIn, fadeOut, fadeToggle, findParent, findParentElement, findParentNode, firstChild, fly, fly, focus, getAlignToXY, getAnchorXY, getBorderWidth, getBottom, getBounds, getBounds, getChild, getChildIndex, getClientWidth, getComputedHeight, getComputedWidth, getFrameWidth, getHeight, getHeight, getId, getInnerHtml, getIntStyleAttribute, getLayoutBounds, getLeft, getLeft, getMargins, getOffsetsTo, getOuterHtml, getPadding, getParent, getRegion, getRight, getScrollLeft, getScrollTop, getSize, getSize, getStyleAttribute, getStyleHeight, getStyleName, getStyleSize, getStyleWidth, getSubChild, getTextWidth, getTop, getTop, getValue, getWidth, getWidth, getX, getXY, getY, getZIndex, hasStyleName, insertBefore, insertBefore, insertBefore, insertChild, insertChild, insertFirst, insertFirst, insertFirst, insertHtml, insertInto, insertInto, insertSibling, insertSibling, is, isConnected, isMasked, isVisibility, isVisible, lastChild, makePositionable, makePositionable, mask, nextSibling, offsetsTo, query, remove, removeChild, removeChildren, removeFromParent, removeStyleName, replaceStyleName, scrollIntoView, scrollTo, scrollTo, select, selectNode, setBorders, setBounds, setBounds, setBounds, setBounds, setDisplayed, setDisplayed, setElementAttribute, setElementAttribute, setElementAttribute, setFocus, setIconStyle, setId, setInnerHtml, setIntElementProperty, setPagePosition, setScrollLeft, setScrollTop, setSize, setSize, setStyleAttribute, setStyleAttribute, setStyleName, setStyleName, setStyleSize, setTabIndex, setTitle, setTop, setValue, setVisibilityMode, setXY, setXY, setZIndex, slideIn, slideOut, subChild, toString, unclip, unmask, unwrap, up, update, wrap
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタ 詳細

Layer

public Layer()
Creates a new layer instance.


Layer

public Layer(com.google.gwt.user.client.Element element)
Creates a new layer instance wrapping the specified element.

パラメータ:
element - the element
メソッド 詳細

alignTo

public El alignTo(com.google.gwt.user.client.Element align,
                  java.lang.String pos,
                  int[] offsets)
Description copied from class: El
Aligns the element with another element relative to the specified anchor points. Two values from the table below should be passed separated by a dash, the first value is used as the element's anchor point, and the second value is used as the target's anchor point.

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:

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 El
パラメータ:
align - the element to align to
pos - the position to align to
offsets - the offsets or null
戻り値:
this

createShim

public El createShim()
Creates an iframe shim for this element to keep selects and other windowed objects from showing through.

戻り値:
the new shim element

disableShadow

public void disableShadow()
Disables the shadow.


enableShadow

public void enableShadow(boolean show)
Enables the shadow.

パラメータ:
show - true to show

enableShim

public void enableShim()
Enables the shim.


getShim

public El getShim()
Returns the layer's shim.

戻り値:
the shim

updateZIndex

public El updateZIndex(int adj)
Description copied from class: El
Sets the element's z-index using XDOM.getTopZIndex() to ensure it has the highest values.

オーバーライド:
updateZIndex in class El
パラメータ:
adj - the adjustment to be applied to the z-index value
戻り値:
this

hideShadow

public void hideShadow()
Hides the layer's shadow.


hideShim

public void hideShim()
Hides the shim.


setHeight

public El setHeight(int height)
Description copied from class: El
Sets the elements height.

オーバーライド:
setHeight in class El
パラメータ:
height - the height
戻り値:
this

setHeight

public El setHeight(int height,
                    boolean adjust)
Description copied from class: El
Sets the elements height.

オーバーライド:
setHeight in class El
パラメータ:
height - the height
adjust - true to adjust for box model issues
戻り値:
this

setHeight

public El setHeight(java.lang.String height)
Description copied from class: El
Sets the elements height.

オーバーライド:
setHeight in class El
パラメータ:
height - the height
戻り値:
this

setLeft

public El setLeft(int left)
Description copied from class: El
Sets the element's left position directly using CSS style (instead of El.setX(int)).

オーバーライド:
setLeft in class El
パラメータ:
left - the left value
戻り値:
this

setLeftTop

public El setLeftTop(int left,
                     int top)
Description copied from class: El
Quick set left and top adding default units.

オーバーライド:
setLeftTop in class El
パラメータ:
left - the left value
top - the top value
戻り値:
this

setSize

public El setSize(int width,
                  int height)
Description copied from class: El
Sets the element's size.

オーバーライド:
setSize in class El
パラメータ:
width - the new width
height - the new height
戻り値:
this

setSize

public El setSize(Size size)
Description copied from class: El
Sets the element's size.

オーバーライド:
setSize in class El
パラメータ:
size - the size
戻り値:
this

setVisibility

public El setVisibility(boolean visible)
Description copied from class: El
Sets the elements css 'visibility' property. Behavior is different than using the 'display' property.

オーバーライド:
setVisibility in class El
パラメータ:
visible - true to show, false to hide
戻り値:
this

setVisible

public El setVisible(boolean visible)
Description copied from class: El
Sets the visibility of the element (see details). If the vis mode is set to DISPLAY, it will use the display property to hide the element, otherwise it uses visibility. The default is to hide and show using the DISPLAY property.

オーバーライド:
setVisible in class El
パラメータ:
visible - whether the element is visible
戻り値:
this

setWidth

public El setWidth(int width)
Description copied from class: El
Sets the element's width.

オーバーライド:
setWidth in class El
パラメータ:
width - the new width
戻り値:
this

setWidth

public El setWidth(int width,
                   boolean adjust)
Description copied from class: El
Sets the elements's width.

オーバーライド:
setWidth in class El
パラメータ:
width - the new width
adjust - true to adjust for box model issues
戻り値:
this

setWidth

public El setWidth(java.lang.String width)
Description copied from class: El
Sets the element's width.

オーバーライド:
setWidth in class El
パラメータ:
width - the new width
戻り値:
this

setX

public El setX(int x)
Description copied from class: El
Sets the X position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates.

オーバーライド:
setX in class El
パラメータ:
x - the x coordinate
戻り値:
this

setXY

public El setXY(int x,
                int y)
Description copied from class: El
Sets the elements position in page coordinates.

オーバーライド:
setXY in class El
パラメータ:
x - the x coordinate
y - the y coordinate
戻り値:
this

setY

public El setY(int y)
Description copied from class: El
Sets the Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates.

オーバーライド:
setY in class El
パラメータ::
y - the y coordinate
戻り値:
this

sync

public void sync(boolean show)
Syncs the shadow and shim.

オーバーライド:
sync in class El
パラメータ:
show - true to show

destroy

public void destroy()