com.vaadin.client.ui.absolutelayout.

Class AbsoluteLayoutConnector

    • Constructor Detail

      • AbsoluteLayoutConnector

        public AbsoluteLayoutConnector()
    • Method Detail

      • getConnectorForElement

        @Deprecated
        protected ComponentConnector getConnectorForElement​(com.google.gwt.user.client.Element element)
        Deprecated.
        As of 7.2, call or override getConnectorForElement(Element) instead

        Returns the deepest nested child component which contains "element". The child component is also returned if "element" is part of its caption.

        Parameters:

        element - An element that is a nested sub element of the root element in this layout

        Returns:

        The Paintable which the element is a part of. Null if the element belongs to the layout and not to a child.

      • getConnectorForElement

        protected ComponentConnector getConnectorForElement​(com.google.gwt.dom.client.Element element)

        Returns the deepest nested child component which contains "element". The child component is also returned if "element" is part of its caption.

        Parameters:

        element - An element that is a nested sub element of the root element in this layout

        Returns:

        The Paintable which the element is a part of. Null if the element belongs to the layout and not to a child.

        Since:

        7.2

      • updateCaption

        public void updateCaption​(ComponentConnector childConnector)

        Description copied from interface: HasComponentsConnector

        Update child components caption, description and error message.

        Each component is responsible for maintaining its caption, description and error message. In most cases components doesn't want to do that and those elements reside outside of the component. Because of this layouts must provide service for it's childen to show those elements for them.

        Specified by:

        updateCaption in interface HasComponentsConnector

        Parameters:

        childConnector - Child component for which service is requested.

      • onConnectorHierarchyChange

        public void onConnectorHierarchyChange​(ConnectorHierarchyChangeEvent event)

        Description copied from interface: ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler

        Called by the framework when the list of child components of the connector implementing this interface has changed. The implementation is responsible for attaching the widgets of any new children and detaching the widgets of any removed children. Implementations should typically also make sure that the child widgets are attached according to the ordering of the child components.

        This method is called after the shared state and hierarchy data (i.e. AbstractHasComponentsConnector.setChildComponents(List)) been updated for all affected connectors, but before updating captions, firing state change events, invoking updateFromUIDL for legacy connectors, invoking RPC and starting the layout phase.

        Please note that hierarchy change events are fired in a non-deterministic order when a message from the server causes multiple parts of the hierarchy to change. This means that the old parent connector might not yet have detached a child widget and that the widget of a removed child might already have been attached by its new parent.

        Specified by:

        onConnectorHierarchyChange in interface ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler

        Parameters:

        event - the event with information about the hierarchy change