com.sencha.gxt.core.client.dom
Class Layer

java.lang.Object
  extended by com.sencha.gxt.core.client.dom.Layer

public class Layer
extends java.lang.Object

Wraps a XElement and provides support for shadows and shimming.


Nested Class Summary
static interface Layer.LayerAppearance
           
static class Layer.LayerBaseAppearance
           
static class Layer.LayerBaseAppearanceIe
           
static interface Layer.LayerResources
           
static interface Layer.LayerResourcesIe
           
static interface Layer.LayerStyle
           
static interface Layer.LayerStyleIe
           
static interface Layer.LayerTemplates
           
static interface Layer.LayerTemplatesIe
           
static class Layer.ShadowPosition
          Shadow position enumeration.
static interface Layer.ShimTemplates
           
 
Constructor Summary
Layer(XElement elem)
           
Layer(XElement elem, Layer.LayerAppearance appearance)
           
 
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.
 XElement getElement()
           
 XElement getShadow()
          Returns the layer's shadow.
 int getShadowOffset()
          Returns the shadow offset.
 Layer.ShadowPosition getShadowPosition()
          Returns the shadow position.
 XElement 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()
           
 void setShadowPosition(Layer.ShadowPosition shadowPosition)
          Sets the shadow position (defaults to SIDES).
 void sync(boolean show)
          Syncs the layer with its element.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Layer

public Layer(XElement elem)

Layer

public Layer(XElement elem,
             Layer.LayerAppearance appearance)
Method Detail

disableShadow

public void disableShadow()
Disables the shadow.


disableShim

public void disableShim()
Disables the shim.


disableUnders

public void disableUnders()
Disables the shim and the shadow.


enableShadow

public void enableShadow()
Enables the shadow.


enableShim

public void enableShim()
Enables the shim.


getElement

public XElement getElement()

getShadow

public XElement getShadow()
Returns the layer's shadow.

Returns:
the shadow or null

getShadowOffset

public int getShadowOffset()
Returns the shadow offset.

Returns:
the shadow offset

getShadowPosition

public Layer.ShadowPosition getShadowPosition()
Returns the shadow position.

Returns:
the shadow position

getShim

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

Returns:
the shim

hideShadow

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


hideShim

public void hideShim()
Hides the shim.


hideUnders

public void hideUnders()
Hides the shim and the shadow.


isShadow

public boolean isShadow()

isShim

public boolean isShim()

setShadowPosition

public void setShadowPosition(Layer.ShadowPosition shadowPosition)
Sets the shadow position (defaults to SIDES).

Parameters:
shadowPosition - the position

sync

public void sync(boolean show)
Syncs the layer with its element.

Parameters:
show - true to show the layer


Copyright © 2012. All Rights Reserved.