com.vaadin.ui.

Class AbstractListing.AbstractListingExtension<T>

    • Constructor Detail

      • AbstractListingExtension

        public AbstractListingExtension()
    • Method Detail

      • extend

        public void extend​(AbstractListing<T> listing)

        Adds this extension to the given parent listing.

        Parameters:

        listing - the parent component to add to

      • remove

        public void remove()

        Description copied from interface: Extension

        Remove this extension from its target. After an extension has been removed, it cannot be attached again.

        Specified by:

        remove in interface Extension

        Overrides:

        remove in class AbstractExtension

      • getData

        protected T getData​(String key)

        Gets a data object based on its client-side identifier key.

        Parameters:

        key - key for data object

        Returns:

        the data object

      • refresh

        protected void refresh​(T item)

        A helper method for refreshing the client-side representation of a single data item.

        Parameters:

        item - the item to refresh

      • getState

        protected AbstractListingExtensionState getState()

        Description copied from class: AbstractClientConnector

        Returns the shared state for this connector. The shared state object is shared between the server connector and the client connector. Changes are only communicated from the server to the client and not in the other direction.

        As a side effect, marks the connector dirty so any changes done to the state will be sent to the client. Use getState(false) to avoid marking the connector as dirty.

        Overrides:

        getState in class AbstractClientConnector

        Returns:

        The shared state for this connector. Never null.