|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.gwtext.client.widgets.BaseExtWidget
com.gwtext.client.widgets.Shadow
public class Shadow
Simple class that can provide a shadow effect for any element. Note that the element MUST be absolutely positioned,
and the shadow does not provide any shimming. This should be used only in simple cases -- for more advanced functionality
that can also provide the same shadow effect, see the Layer
class.
Nested Class Summary | |
---|---|
static class |
Shadow.Type
|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary | |
---|---|
static Shadow.Type |
DROP
Shadow on bottom right. |
static Shadow.Type |
FRAME
For 4-way shadow |
static Shadow.Type |
SIDES
Shadow on sides (default) |
Fields inherited from class com.gwtext.client.widgets.BaseExtWidget |
---|
jsObj |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
Shadow(java.lang.String mode,
java.lang.String offset)
Create a new Shadow. |
Method Summary | |
---|---|
void |
hide()
Hides this shadow. |
boolean |
isVisible()
Returns true if the shadow is visible, else false. |
void |
realign(int left,
int top,
int width,
int height)
Direct alignment when values are already available. |
void |
setZIndex(int zindex)
Adjust the z-index of this shadow. |
void |
show(com.google.gwt.user.client.Element element)
Displays the shadow under the target element. |
void |
show(java.lang.String id)
Displays the shadow under the target element. |
Methods inherited from class com.gwtext.client.widgets.BaseExtWidget |
---|
equals, getEl, getElement, getJsObj, getOffsetHeight, getOffsetWidth, getTitle, hashCode, onAttach, onLoad, purgeListeners, setHeight, setJsObj, setTitle, setVisible, setWidth, toString |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
doAttachChildren, doDetachChildren, getParent, isAttached, onBrowserEvent, onDetach, onUnload, removeFromParent |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static Shadow.Type SIDES
public static Shadow.Type FRAME
public static Shadow.Type DROP
Constructor Detail |
---|
public Shadow(java.lang.String mode, java.lang.String offset)
mode
- The shadow display mode. Supports the following options: sides: Shadow displays on both sides and bottom only,
frame: Shadow displays equally on all four sides, drop: Traditional bottom-right drop shadow (default)offset
- the number of pixels to offset the shadow from the element (defaults to 4)Method Detail |
---|
public void hide()
public boolean isVisible()
isVisible
in class BaseExtWidget
public void realign(int left, int top, int width, int height)
show(java.lang.String)
must be called at least once before calling
this method to ensure it is initialized.
left
- The target element left positiontop
- The target element top positionwidth
- The target element widthheight
- The target element heightpublic void setZIndex(int zindex)
zindex
- The new z-indexpublic void show(java.lang.String id)
id
- the element IDpublic void show(com.google.gwt.user.client.Element element)
element
- the element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |