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

com.dlsc.preferencesfx.view.Presenter Maven / Gradle / Ivy

There is a newer version: 2.0.3
Show newest version
package com.dlsc.preferencesfx.view;

/**
 * Defines a presenter of PreferencesFX.
 *
 * @author François Martin
 * @author Marco Sanfratello
 */
public interface Presenter {

  /**
   * Calls all the other methods for easier initialization.
   */
  default void init() {
    initializeViewParts();
    setupEventHandlers();
    setupValueChangedListeners();
    setupBindings();
  }

  /**
   * Initializes parts of the view which require more logic.
   */
  default void initializeViewParts() {
  }

  /**
   * Sets up event handlers of the view.
   */
  default void setupEventHandlers() {
  }

  /**
   * Adds all listeners to view elements and model properties.
   */
  default void setupValueChangedListeners() {
  }

  /**
   * Sets up bindings of the view.
   */
  default void setupBindings() {
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy