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

org.opentcs.guing.common.components.dialogs.DetailsDialogContent Maven / Gradle / Ivy

There is a newer version: 6.2.0
Show newest version
/**
 * Copyright (c) The openTCS Authors.
 *
 * This program is free software and subject to the MIT license. (For details,
 * see the licensing information (LICENSE.txt) you should have received with
 * this copy of the software.)
 */
package org.opentcs.guing.common.components.dialogs;

import org.opentcs.guing.base.components.properties.type.Property;

/**
 * Interface for components to edit properties.
 * Classes that implement this interface are generally embedded in a dialog.
 * The dialog then calls these methods.
 */
public interface DetailsDialogContent {

  /**
   * Writes the values of the dialog back to the attribute object.
   * This should happen when the user clicked "OK".
   */
  void updateValues();

  /**
   * Returns the title of the dialog.
   *
   * @return The title.
   */
  String getTitle();

  /**
   * Sets the property.
   *
   * @param property The property.
   */
  void setProperty(Property property);

  /**
   * Returns the property.
   *
   * @return The property.
   */
  Property getProperty();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy