com.vaadin.client.widgets.

Class ChildFocusAwareFlowPanel

  • java.lang.Object
    • com.google.gwt.user.client.ui.UIObject
      • com.google.gwt.user.client.ui.Widget
        • com.google.gwt.user.client.ui.Panel
  • All Implemented Interfaces:

    com.google.gwt.event.dom.client.HasAllFocusHandlers, com.google.gwt.event.dom.client.HasBlurHandlers, com.google.gwt.event.dom.client.HasFocusHandlers, com.google.gwt.event.dom.client.HasKeyDownHandlers, com.google.gwt.event.dom.client.HasKeyPressHandlers, 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.InsertPanel, com.google.gwt.user.client.ui.InsertPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Focusable, Iterable<com.google.gwt.user.client.ui.Widget>

    public class ChildFocusAwareFlowPanel
    extends FocusableFlowPanel
    implements com.google.gwt.event.dom.client.HasAllFocusHandlers

    Focusable flow panel which fires focus/blur events if it or any of its child is focused/blurred, but doesn't fire events if it happens between its content (child) elements.

    Since:

    8.0

    Author:

    Vaadin Ltd

    • 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
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel

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

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

        DEBUG_ID_PREFIX
    • Method Summary

      All Methods
      Modifier and Type Method Description
      void add​(com.google.gwt.user.client.ui.Widget widget)  
      com.google.gwt.event.shared.HandlerRegistration addBlurHandler​(com.google.gwt.event.dom.client.BlurHandler handler)  
      com.google.gwt.event.shared.HandlerRegistration addFocusHandler​(com.google.gwt.event.dom.client.FocusHandler handler)  
      void clear()  
      void focus()

      Focus the panel.

      void focusFirstEnabledChild()

      Put focus in the first child Widget that can be focused and is not disabled.

      void insert​(com.google.gwt.user.client.ui.Widget widget, int beforeIndex)  
      boolean remove​(int index)  
      boolean remove​(com.google.gwt.user.client.ui.Widget widget)  
      • Methods inherited from class com.google.gwt.user.client.ui.FlowPanel

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

        add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator
      • Methods inherited from class com.google.gwt.user.client.ui.Panel

        add, adopt, 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, isAttached, isOrWasAttached, onAttach, onBrowserEvent, 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 interface com.google.gwt.event.shared.HasHandlers

        fireEvent
      • Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel

        getWidget, getWidgetCount, getWidgetIndex
      • Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget

        getWidgetIndex
      • Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget

        add
    • Constructor Detail

      • ChildFocusAwareFlowPanel

        public ChildFocusAwareFlowPanel()

        Creates a new panel instance.

    • Method Detail

      • add

        public void add​(com.google.gwt.user.client.ui.Widget widget)

        Specified by:

        add in interface com.google.gwt.user.client.ui.HasWidgets

        Specified by:

        add in interface com.google.gwt.user.client.ui.InsertPanel

        Overrides:

        add in class com.google.gwt.user.client.ui.FlowPanel

      • clear

        public void clear()

        Specified by:

        clear in interface com.google.gwt.user.client.ui.HasWidgets

        Overrides:

        clear in class com.google.gwt.user.client.ui.FlowPanel

      • insert

        public void insert​(com.google.gwt.user.client.ui.Widget widget,
                           int beforeIndex)

        Specified by:

        insert in interface com.google.gwt.user.client.ui.InsertPanel

        Overrides:

        insert in class com.google.gwt.user.client.ui.FlowPanel

      • remove

        public boolean remove​(int index)

        Specified by:

        remove in interface com.google.gwt.user.client.ui.IndexedPanel

        Overrides:

        remove in class com.google.gwt.user.client.ui.ComplexPanel

      • remove

        public boolean remove​(com.google.gwt.user.client.ui.Widget widget)

        Specified by:

        remove in interface com.google.gwt.user.client.ui.HasWidgets

        Overrides:

        remove in class com.google.gwt.user.client.ui.ComplexPanel

      • addFocusHandler

        public com.google.gwt.event.shared.HandlerRegistration addFocusHandler​(com.google.gwt.event.dom.client.FocusHandler handler)

        Specified by:

        addFocusHandler in interface com.google.gwt.event.dom.client.HasFocusHandlers

        Overrides:

        addFocusHandler in class FocusableFlowPanel

      • addBlurHandler

        public com.google.gwt.event.shared.HandlerRegistration addBlurHandler​(com.google.gwt.event.dom.client.BlurHandler handler)

        Specified by:

        addBlurHandler in interface com.google.gwt.event.dom.client.HasBlurHandlers

        Overrides:

        addBlurHandler in class FocusableFlowPanel

      • focusFirstEnabledChild

        public void focusFirstEnabledChild()

        Put focus in the first child Widget that can be focused and is not disabled.