3 * Copyright (C) 2015 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.view
;
16 * Implementors of this interface provide a mapping of input elements to views
17 * or editors which can display information or provide editing functionality for
24 public interface ICdmViewer
{
27 * For the given input a map is returned specifying the available viewer
28 * classes as keys and their string representation as values
31 * the input for which the viewer classes should be returned
32 * @return a map holding the viewer classes as keys and their string
33 * representations as values
35 public Map
<Class
<?
>, String
> getViewerClasses(Object input
);
38 * Opens the viewer defined by the given viewerClass for the given input.
39 * @param input the input for which a viewer should be opened
40 * @param viewerClass the qualified class name of the viewer
42 public void show(Object input
, Class
<?
> viewerClass
);