Interface RefreshListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RefreshListener
The RefreshListener interface represents a functional interface that defines a single method onRefreshOccurred() for notifying when a refresh event has occurred.

This interface is typically used in conjunction with the RefreshUtil class, which provides a way to manage refresh listeners and trigger the onRefreshOccurred event.

To use this interface, implement the onRefreshOccurred method with the desired functionality to be executed when a refresh occurs. Then, register the listener using the RefreshUtil.setRefreshListener(RefreshListener) method. When a refresh event happens, the onRefreshOccurred method of all registered listeners will be invoked.

This interface is marked as a functional interface, which means it can be used with lambda expressions.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
  • Method Details

    • onRefreshOccurred

      void onRefreshOccurred()