28 lines
583 B
Java
28 lines
583 B
Java
package nl.andrewlalis.ui.view.components;
|
|
|
|
import nl.andrewlalis.util.Pair;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Objects which implement this interface must provide
|
|
*/
|
|
public interface Detailable {
|
|
|
|
/**
|
|
* @return The display name for this object.
|
|
*/
|
|
String getDetailName();
|
|
|
|
/**
|
|
* @return Some more information to display below the name for this object.
|
|
*/
|
|
String getDetailDescription();
|
|
|
|
/**
|
|
* @return A String-to-String mapping for some key value pairs of properties to display.
|
|
*/
|
|
List<Pair<String, String>> getDetailPairs();
|
|
|
|
}
|