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

com.cedarsoft.PartTimeObjectAdd Maven / Gradle / Ivy

The newest version!
package com.cedarsoft;

import org.jetbrains.annotations.NotNull;

/**
 * Object can't always be added.
 */
public interface PartTimeObjectAdd extends ObjectAdd {
  /**
   * Returns true if objects can be added
   *
   * @return true if objects can be added, false otherwise
   */
  boolean canAdd();

  void addPartTimeListener( @NotNull PartTimeListener listener );

  void removePartTimeListener( @NotNull PartTimeListener listener );

  interface PartTimeListener {

    /**
     * Is called when "add" isn't available anymore
     */
    void addNotAvailable();

    /**
     * Is called when add is available
     */
    void addAvailable();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy