Class CmsVBrowserFrame

  • All Implemented Interfaces:,,,,

    public class CmsVBrowserFrame
    extends com.vaadin.client.ui.VBrowserFrame
    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,
    • Field Summary

      Modifier and Type Field Description
      protected java.lang.String m_savedName
      The name to set on the iframe element.
      • Fields inherited from class com.vaadin.client.ui.VBrowserFrame

        altElement, altText, CLASSNAME, iframe
      • Fields inherited from class

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected createIFrameElement​(java.lang.String src)
      Always creates new iframe inside widget.
      void setName​(java.lang.String name)  
      • Methods inherited from class com.vaadin.client.ui.VBrowserFrame

        createAltTextElement, onDetach, setAlternateText, setSource
      • Methods inherited from class

        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

        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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • m_savedName

        protected java.lang.String m_savedName
        The name to set on the iframe element.
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
        setName in class com.vaadin.client.ui.VBrowserFrame
        See Also:
      • createIFrameElement

        protected createIFrameElement​(java.lang.String src)
        Always creates new iframe inside widget. Will replace previous iframe.
        createIFrameElement in class com.vaadin.client.ui.VBrowserFrame
        the iframe element