Package org.opencms.gwt.client.ui
Class CmsFlowPanel
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.gwt.client.ui.CmsFlowPanel
- All Implemented Interfaces:
com.google.gwt.event.dom.client.HasAllMouseHandlers,com.google.gwt.event.dom.client.HasMouseDownHandlers,com.google.gwt.event.dom.client.HasMouseMoveHandlers,com.google.gwt.event.dom.client.HasMouseOutHandlers,com.google.gwt.event.dom.client.HasMouseOverHandlers,com.google.gwt.event.dom.client.HasMouseUpHandlers,com.google.gwt.event.dom.client.HasMouseWheelHandlers,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>
public class CmsFlowPanel
extends com.google.gwt.user.client.ui.ComplexPanel
implements com.google.gwt.event.dom.client.HasAllMouseHandlers
A basic panel which is like GWT's FlowPanel, except it allows you to choose the HTML tag
to use.
Implements HasAllMouseHandlers.
- Since:
- 8.0.0
-
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
ConstructorsConstructorDescriptionDefault constructor.CmsFlowPanel(com.google.gwt.dom.client.Element element) Wrapping constructor.CmsFlowPanel(String tag) Creates an empty flow panel with a given tag name. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(com.google.gwt.user.client.ui.Widget w) Adds a new child widget to the panel.com.google.gwt.event.shared.HandlerRegistrationaddMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler) com.google.gwt.event.shared.HandlerRegistrationaddMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler) com.google.gwt.event.shared.HandlerRegistrationaddMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler) com.google.gwt.event.shared.HandlerRegistrationaddMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler) com.google.gwt.event.shared.HandlerRegistrationaddMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler) com.google.gwt.event.shared.HandlerRegistrationaddMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler) voidinsert(com.google.gwt.user.client.ui.Widget w, int beforeIndex) Inserts a widget at a given position.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, 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, isAttached, isOrWasAttached, onAttach, onBrowserEvent, 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 com.google.gwt.event.shared.HasHandlers
fireEventMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CmsFlowPanel
public CmsFlowPanel()Default constructor. -
CmsFlowPanel
Wrapping constructor.- Parameters:
element- the element to wrap
-
CmsFlowPanel
Creates an empty flow panel with a given tag name.- Parameters:
tag- the HTML tag name to use
-
-
Method Details
-
add
Adds a new child widget to the panel.- Specified by:
addin interfacecom.google.gwt.user.client.ui.HasWidgets- Overrides:
addin classcom.google.gwt.user.client.ui.Panel- Parameters:
w- the widget to be added
-
addMouseDownHandler
public com.google.gwt.event.shared.HandlerRegistration addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler) - Specified by:
addMouseDownHandlerin interfacecom.google.gwt.event.dom.client.HasMouseDownHandlers- See Also:
-
addMouseMoveHandler
public com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler) - Specified by:
addMouseMoveHandlerin interfacecom.google.gwt.event.dom.client.HasMouseMoveHandlers- See Also:
-
addMouseOutHandler
public com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler) - Specified by:
addMouseOutHandlerin interfacecom.google.gwt.event.dom.client.HasMouseOutHandlers- See Also:
-
addMouseOverHandler
public com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler) - Specified by:
addMouseOverHandlerin interfacecom.google.gwt.event.dom.client.HasMouseOverHandlers- See Also:
-
addMouseUpHandler
public com.google.gwt.event.shared.HandlerRegistration addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler) - Specified by:
addMouseUpHandlerin interfacecom.google.gwt.event.dom.client.HasMouseUpHandlers- See Also:
-
addMouseWheelHandler
public com.google.gwt.event.shared.HandlerRegistration addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler) - Specified by:
addMouseWheelHandlerin interfacecom.google.gwt.event.dom.client.HasMouseWheelHandlers- See Also:
-
insert
Inserts a widget at a given position.- Parameters:
w- the widget to insertbeforeIndex- the position before which the widget should be inserted
-