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
,java.lang.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
-
-
Constructor Summary
Constructors Constructor Description CmsFormParent(com.google.gwt.user.client.ui.RootPanel rootPanel)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods 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
getWidget()
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
isAttached()
void
onBrowserEvent(com.google.gwt.user.client.Event event)
void
replaceHtml(java.lang.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, 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
-
-
-
-
Constructor Detail
-
CmsFormParent
public CmsFormParent(com.google.gwt.user.client.ui.RootPanel rootPanel)
Constructor.- Parameters:
rootPanel
- the root panel to wrap
-
-
Method Detail
-
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 interfaceI_CmsInlineFormParent
- Parameters:
widget
- the widget to adopt- See Also:
I_CmsInlineFormParent.adoptWidget(com.google.gwt.user.client.ui.IsWidget)
-
isAttached
public boolean isAttached()
- Specified by:
isAttached
in interfacecom.google.gwt.event.logical.shared.HasAttachHandlers
- Overrides:
isAttached
in classcom.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 interfacecom.google.gwt.user.client.EventListener
- Overrides:
onBrowserEvent
in classcom.google.gwt.user.client.ui.Widget
- See Also:
Widget.onBrowserEvent(com.google.gwt.user.client.Event)
-
replaceHtml
public void replaceHtml(java.lang.String html)
Description copied from interface:I_CmsInlineFormParent
Replaces the inner HTML of widget to reflect content data changes.- Specified by:
replaceHtml
in interfaceI_CmsInlineFormParent
- Parameters:
html
- the element HTML- See Also:
I_CmsInlineFormParent.replaceHtml(java.lang.String)
-
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 anyWidget
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
-
-