001/*----------------------------------------------------------------------------*/ 002/* Copyright (c) FIRST 2017-2018. All Rights Reserved. */ 003/* Open Source Software - may be modified and shared by FRC teams. The code */ 004/* must be accompanied by the FIRST BSD license file in the root directory of */ 005/* the project. */ 006/*----------------------------------------------------------------------------*/ 007 008package edu.wpi.first.networktables; 009 010/** 011 * A listener that listens to new tables in a {@link NetworkTable} 012 */ 013@FunctionalInterface 014public interface TableListener { 015 /** 016 * Called when a new table is created within a {@link NetworkTable}. 017 * 018 * @param parent the parent of the table 019 * @param name the name of the new table 020 * @param table the new table 021 */ 022 void tableCreated(NetworkTable parent, String name, NetworkTable table); 023}