All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.event.ConnectorEvent Maven / Gradle / Ivy

There is a newer version: 8.27.3
Show newest version
/*
 * Copyright (C) 2000-2024 Vaadin Ltd
 *
 * This program is available under Vaadin Commercial License and Service Terms.
 *
 * See  for the full
 * license.
 */

package com.vaadin.event;

import java.util.EventObject;

import com.vaadin.server.ClientConnector;

/**
 * A base class for user interface events fired by connectors.
 *
 * @author Vaadin Ltd.
 * @since 7.0
 */
public abstract class ConnectorEvent extends EventObject {

    /**
     * Creates a new event fired by the given source.
     *
     * @param source
     *            the source connector
     */
    public ConnectorEvent(ClientConnector source) {
        super(source);
    }

    /**
     * Returns the connector that fired the event.
     *
     * @return the source connector
     */
    public ClientConnector getConnector() {
        return (ClientConnector) getSource();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy