Package org.opencms.ui.client
Class CmsVBrowserFrame
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.vaadin.client.ui.VBrowserFrame
org.opencms.ui.client.CmsVBrowserFrame
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.IsWidget
Extension of the standard browser frame widget which supports setting the name correctly in Chrome.
The difference from the standard implementation is that here the name attribute is set on the iframe element before it is inserted into the DOM, which is necessary in Chrome because setting this attribute in Chrome does not change the corresponding frame window object's 'name' attribute if it already exists.
-
Nested Class Summary
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
Fields inherited from class com.vaadin.client.ui.VBrowserFrame
altElement, altText, CLASSNAME, iframe
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.gwt.dom.client.IFrameElement
Always creates new iframe inside widget.void
Methods inherited from class com.vaadin.client.ui.VBrowserFrame
createAltTextElement, onDetach, setAlternateText, setSource
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Field Details
-
m_savedName
The name to set on the iframe element.
-
-
Constructor Details
-
CmsVBrowserFrame
public CmsVBrowserFrame()
-
-
Method Details
-
setName
- Overrides:
setName
in classcom.vaadin.client.ui.VBrowserFrame
- See Also:
-
VBrowserFrame.setName(java.lang.String)
-
createIFrameElement
Always creates new iframe inside widget. Will replace previous iframe.- Overrides:
createIFrameElement
in classcom.vaadin.client.ui.VBrowserFrame
- Returns:
- the iframe element
-