Class CmsFormParent

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
org.opencms.acacia.client.CmsFormParent
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.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>, I_CmsInlineFormParent

public class CmsFormParent extends com.google.gwt.user.client.ui.ComplexPanel implements I_CmsInlineFormParent
Inline form parent widget.

Use to wrap any HTML element of the DOM as the parent of an inline form.

  • 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

    Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

    com.google.gwt.user.client.ui.HasWidgets.ForIsWidget

    Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel

    com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
  • Field Summary

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    CmsFormParent(com.google.gwt.user.client.ui.RootPanel rootPanel)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    adoptWidget(com.google.gwt.user.client.ui.IsWidget widget)
    Adopts the given widget as a child widget.
    protected com.google.gwt.user.client.ui.Widget
    Provides subclasses access to the topmost widget that defines this panel.
    protected void
    initWidget(com.google.gwt.user.client.ui.Widget widget)
    Sets the widget to be wrapped by the composite.
    boolean
     
    void
    onBrowserEvent(com.google.gwt.user.client.Event event)
     
    void
    Replaces the inner HTML of widget to reflect content data changes.

    Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel

    add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove

    Methods inherited from class com.google.gwt.user.client.ui.Panel

    add, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove

    Methods inherited from class com.google.gwt.user.client.ui.Widget

    addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onAttach, onDetach, 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

    Methods inherited from interface org.opencms.acacia.client.I_CmsInlineFormParent

    getElement

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • CmsFormParent

      public CmsFormParent(com.google.gwt.user.client.ui.RootPanel rootPanel)
      Constructor.

      Parameters:
      rootPanel - the root panel to wrap
  • Method Details

    • adoptWidget

      public void adoptWidget(com.google.gwt.user.client.ui.IsWidget widget)
      Description copied from interface: I_CmsInlineFormParent
      Adopts the given widget as a child widget.

      This assumes the widget element is already attached to the DOM and is a child or descendant of this widget element.

      Specified by:
      adoptWidget in interface I_CmsInlineFormParent
      Parameters:
      widget - the widget to adopt
      See Also:
    • isAttached

      public boolean isAttached()
      Specified by:
      isAttached in interface com.google.gwt.event.logical.shared.HasAttachHandlers
      Overrides:
      isAttached in class com.google.gwt.user.client.ui.Widget
      See Also:
      • Widget.isAttached()
    • onBrowserEvent

      public void onBrowserEvent(com.google.gwt.user.client.Event event)
      Specified by:
      onBrowserEvent in interface com.google.gwt.user.client.EventListener
      Overrides:
      onBrowserEvent in class com.google.gwt.user.client.ui.Widget
      See Also:
      • Widget.onBrowserEvent(com.google.gwt.user.client.Event)
    • replaceHtml

      public void replaceHtml(String html)
      Description copied from interface: I_CmsInlineFormParent
      Replaces the inner HTML of widget to reflect content data changes.

      Specified by:
      replaceHtml in interface I_CmsInlineFormParent
      Parameters:
      html - the element HTML
      See Also:
    • getWidget

      protected com.google.gwt.user.client.ui.Widget getWidget()
      Provides subclasses access to the topmost widget that defines this panel.
      Returns:
      the widget
    • initWidget

      protected void initWidget(com.google.gwt.user.client.ui.Widget widget)
      Sets the widget to be wrapped by the composite. The wrapped widget must be set before calling any Widget methods on this object, or adding it to a panel. This method may only be called once for a given composite.
      Parameters:
      widget - the widget to be wrapped