|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPopupPanel
com.vaadin.client.ui.VOverlay
public class VOverlay
In Vaadin UI this Overlay should always be used for all elements that temporary float over other components like context menus etc. This is to deal stacking order correctly with VWindow objects.
The separate shadow element underneath the main overlay element is
deprecated, and should not be used for new overlay
components. CSS box-shadow should be used instead of a separate shadow
element. Remember to include any vendor-prefixed versions to support all
browsers that you need to. To cover all possible browsers that Vaadin 7
supports, add -webkit-box-shadow and the standard
box-shadow properties.
For IE8, which doesn't support CSS box-shadow, you can use the proprietary DropShadow filter. It doesn't provide the exact same features as box-shadow, but it is suitable for graceful degradation. Other options are to use a border or a pseudo-element underneath the overlay which mimics a shadow, or any combination of these.
Read more about the DropShadow filter from Microsoft Developer Network
| Nested Class Summary | |
|---|---|
static class |
VOverlay.PositionAndSize
|
protected class |
VOverlay.ResizeAnimation
|
| Field Summary | |
|---|---|
protected ApplicationConnection |
ac
|
static java.lang.String |
ADDITIONAL_CLASSNAME_ANIMATE_IN
|
static java.lang.String |
ADDITIONAL_CLASSNAME_ANIMATE_OUT
|
static java.lang.String |
CLASSNAME_CONTAINER
Style name for the overlay container element (see getOverlayContainer() |
static java.lang.String |
CLASSNAME_SHADOW
Deprecated. See main JavaDoc for VOverlay |
protected static VOverlay |
current
|
static int |
Z_INDEX
|
| Constructor Summary | |
|---|---|
VOverlay()
|
|
VOverlay(boolean autoHide)
|
|
VOverlay(boolean autoHide,
boolean modal)
|
|
VOverlay(boolean autoHide,
boolean modal,
boolean showShadow)
Deprecated. See main JavaDoc for VOverlay. Use the other constructors without the showShadow parameter. |
|
| Method Summary | |
|---|---|
void |
center()
|
protected ApplicationConnection |
getApplicationConnection()
Get the ApplicationConnection that this overlay belongs to. |
com.google.gwt.user.client.Element |
getOverlayContainer()
Gets the 'overlay container' element. |
static com.google.gwt.user.client.Element |
getOverlayContainer(ApplicationConnection ac)
Gets the 'overlay container' element pertaining to the given ApplicationConnection. |
Widget |
getOwner()
Get owner (Widget that made this VOverlay, not the layout parent) of VOverlay |
void |
hide()
|
void |
hide(boolean autoClosed)
|
void |
hide(boolean autoClosed,
boolean animateIn,
boolean animateOut)
Hides the popup and detaches it from the page. |
protected boolean |
isShadowEnabled()
Deprecated. See main JavaDoc for VOverlay |
protected boolean |
isShimElementEnabled()
|
protected boolean |
isSinkShadowEvents()
Deprecated. See main JavaDoc for VOverlay |
protected boolean |
needsShimElement()
Returns true if we should add a shim iframe below the overlay to deal with zindex issues with PDFs and applets. |
void |
onClose(com.google.gwt.event.logical.shared.CloseEvent<PopupPanel> event)
|
protected void |
onDetach()
|
void |
positionOrSizeUpdated()
Extending classes should always call this method after they change the size of overlay without using normal 'setWidth(String)' and 'setHeight(String)' methods (if not calling super.setWidth/Height). |
void |
setHeight(java.lang.String height)
|
static void |
setOverlayContainerLabel(ApplicationConnection applicationConnection,
java.lang.String overlayContainerLabel)
Set the label of the container element, where tooltip, notification and dialgs are added to. |
void |
setOwner(Widget owner)
Set owner (Widget that made this VOverlay, not the layout parent) of VOverlay |
void |
setPopupPosition(int left,
int top)
|
protected void |
setShadowEnabled(boolean enabled)
Deprecated. See main JavaDoc for VOverlay |
protected void |
setShadowStyle(java.lang.String style)
Deprecated. See main JavaDoc for VOverlay |
protected void |
setSinkShadowEvents(boolean sinkShadowEvents)
Deprecated. See main JavaDoc for VOverlay |
void |
setVisible(boolean visible)
|
void |
setWidth(java.lang.String width)
|
protected void |
setZIndex(int zIndex)
Set the z-index (visual stack position) for this overlay. |
void |
show()
|
void |
sinkEvents(int eventBitsToAdd)
|
protected void |
updateShadowSizeAndPosition()
Deprecated. Call positionOrSizeUpdated() instead. |
protected boolean |
useShadowDiv()
Deprecated. See main JavaDoc for VOverlay |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.logical.shared.CloseHandler |
|---|
onClose |
| Field Detail |
|---|
public static int Z_INDEX
@Deprecated public static final java.lang.String CLASSNAME_SHADOW
public static final java.lang.String CLASSNAME_CONTAINER
getOverlayContainer()
public static final java.lang.String ADDITIONAL_CLASSNAME_ANIMATE_IN
public static final java.lang.String ADDITIONAL_CLASSNAME_ANIMATE_OUT
protected ApplicationConnection ac
protected static VOverlay current
| Constructor Detail |
|---|
public VOverlay()
public VOverlay(boolean autoHide)
public VOverlay(boolean autoHide,
boolean modal)
@Deprecated
public VOverlay(boolean autoHide,
boolean modal,
boolean showShadow)
showShadow parameter.
| Method Detail |
|---|
@Deprecated protected boolean useShadowDiv()
@Deprecated protected void setShadowEnabled(boolean enabled)
enabled - true if shadow should be displayed@Deprecated protected boolean isShadowEnabled()
protected boolean isShimElementEnabled()
protected void setZIndex(int zIndex)
zIndex - The new z-index
public void setPopupPosition(int left,
int top)
public void show()
protected void onDetach()
public void setVisible(boolean visible)
public void setWidth(java.lang.String width)
public void setHeight(java.lang.String height)
@Deprecated protected void setShadowStyle(java.lang.String style)
style - The new style name for the shadow element. Will be prefixed by
CLASSNAME_SHADOW, e.g. style=='foobar' -> actual style
name=='v-shadow-foobar'.public void positionOrSizeUpdated()
@Deprecated protected void updateShadowSizeAndPosition()
positionOrSizeUpdated() instead.
protected boolean needsShimElement()
public void onClose(com.google.gwt.event.logical.shared.CloseEvent<PopupPanel> event)
public void sinkEvents(int eventBitsToAdd)
@Deprecated protected void setSinkShadowEvents(boolean sinkShadowEvents)
sinkShadowEvents - @Deprecated protected boolean isSinkShadowEvents()
public Widget getOwner()
public void setOwner(Widget owner)
owner - Owner (creator) of VOverlayprotected ApplicationConnection getApplicationConnection()
ApplicationConnection that this overlay belongs to. If
it's not set, getOwner() is used to figure it out.
public com.google.gwt.user.client.Element getOverlayContainer()
ApplicationConnection using getApplicationConnection().
ApplicationConnection or another element if the current
ApplicationConnection cannot be determined.public static com.google.gwt.user.client.Element getOverlayContainer(ApplicationConnection ac)
ApplicationConnection. Each overlay should be created in a
overlay container element, so that the correct theme and styles can be
applied.
ac - A reference to ApplicationConnection
public static void setOverlayContainerLabel(ApplicationConnection applicationConnection,
java.lang.String overlayContainerLabel)
applicationConnection - the application connection for which to change the labeloverlayContainerLabel - label for the containerpublic void center()
public void hide()
public void hide(boolean autoClosed)
public void hide(boolean autoClosed,
boolean animateIn,
boolean animateOut)
autoClosed - the value that will be passed to
CloseHandler.onClose(CloseEvent) when the popup is
closedanimateIn - enable/disable animate-in animationanimateOut - enable/disable animate-out animationcom.google.gwt.user.client.ui.PopupPanel#hide(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||