Package org.opencms.acacia.client
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.DebugIdImplEnabledNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidgetNested 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
ConstructorsConstructorDescriptionCmsFormParent(com.google.gwt.user.client.ui.RootPanel rootPanel) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidadoptWidget(com.google.gwt.user.client.ui.IsWidget widget) Adopts the given widget as a child widget.protected com.google.gwt.user.client.ui.WidgetProvides subclasses access to the topmost widget that defines this panel.protected voidinitWidget(com.google.gwt.user.client.ui.Widget widget) Sets the widget to be wrapped by the composite.booleanvoidonBrowserEvent(com.google.gwt.user.client.Event event) voidreplaceHtml(String html) 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, removeMethods inherited from class com.google.gwt.user.client.ui.Panel
add, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeMethods 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, unsinkEventsMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opencms.acacia.client.I_CmsInlineFormParent
getElementMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CmsFormParent
Constructor.- Parameters:
rootPanel- the root panel to wrap
-
-
Method Details
-
adoptWidget
Description copied from interface:I_CmsInlineFormParentAdopts 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:
adoptWidgetin interfaceI_CmsInlineFormParent- Parameters:
widget- the widget to adopt- See Also:
-
isAttached
- Specified by:
isAttachedin interfacecom.google.gwt.event.logical.shared.HasAttachHandlers- Overrides:
isAttachedin classcom.google.gwt.user.client.ui.Widget- See Also:
-
onBrowserEvent
- Specified by:
onBrowserEventin interfacecom.google.gwt.user.client.EventListener- Overrides:
onBrowserEventin classcom.google.gwt.user.client.ui.Widget- See Also:
-
replaceHtml
Description copied from interface:I_CmsInlineFormParentReplaces the inner HTML of widget to reflect content data changes.- Specified by:
replaceHtmlin interfaceI_CmsInlineFormParent- Parameters:
html- the element HTML- See Also:
-
getWidget
Provides subclasses access to the topmost widget that defines this panel.- Returns:
- the widget
-
initWidget
Sets the widget to be wrapped by the composite. The wrapped widget must be set before calling anyWidgetmethods 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
-