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

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 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
    Modifier and Type
    Field
    Description
    protected String
    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 com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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

    Methods inherited from class java.lang.Object

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

  • Constructor Details

  • Method Details

    • setName

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

      protected com.google.gwt.dom.client.IFrameElement createIFrameElement(String src)
      Always creates new iframe inside widget. Will replace previous iframe.
      Overrides:
      createIFrameElement in class com.vaadin.client.ui.VBrowserFrame
      Returns:
      the iframe element