| com.gwtext.client.widgets.BaseExtWidget com.gwtext.client.widgets.Shadow
Shadow | public class Shadow extends BaseExtWidget (Code) | | 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.
|
Inner Class :public static class Type | |
Field Summary | |
public static Type | DROP Shadow on bottom right. | public static Type | FRAME | public static Type | SIDES |
Constructor Summary | |
public | Shadow(String mode, String offset) Create a new Shadow.
Parameters: mode - The shadow display mode. |
Method Summary | |
native public void | hide() Hides this shadow. | native public boolean | isVisible() Returns true if the shadow is visible, else false. | native public void | realign(int left, int top, int width, int height) Direct alignment when values are already available. | native public void | setZIndex(int zindex) Adjust the z-index of this shadow. | native public void | show(String id) Displays the shadow under the target element. | native public void | show(Element element) Displays the shadow under the target element. |
DROP | public static Type DROP(Code) | | Shadow on bottom right.
|
FRAME | public static Type FRAME(Code) | | For 4-way shadow
|
SIDES | public static Type SIDES(Code) | | Shadow on sides (default)
|
Shadow | public Shadow(String mode, String offset)(Code) | | Create a new Shadow.
Parameters: 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) Parameters: offset - the number of pixels to offset the shadow from the element (defaults to 4) |
hide | native public void hide()(Code) | | Hides this shadow.
|
isVisible | native public boolean isVisible()(Code) | | Returns true if the shadow is visible, else false.
true if shadow visible |
realign | native public void realign(int left, int top, int width, int height)(Code) | | Direct alignment when values are already available.
Shadow.show must be called at least once before calling
this method to ensure it is initialized.
Parameters: left - The target element left position Parameters: top - The target element top position Parameters: width - The target element width Parameters: height - The target element height |
setZIndex | native public void setZIndex(int zindex)(Code) | | Adjust the z-index of this shadow.
Parameters: zindex - The new z-index |
show | native public void show(String id)(Code) | | Displays the shadow under the target element.
Parameters: id - the element ID |
show | native public void show(Element element)(Code) | | Displays the shadow under the target element.
Parameters: element - the element |
Fields inherited from com.gwtext.client.widgets.BaseExtWidget | protected JavaScriptObject jsObj(Code)(Java Doc)
|
|
|