Coverage Summary for Class: IllustratedSelectItem (org.kitodo.production.forms.dataeditor)
Class |
Class, %
|
Method, %
|
Line, %
|
IllustratedSelectItem |
100%
(1/1)
|
20%
(1/5)
|
50%
(4/8)
|
/*
* (c) Kitodo. Key to digital objects e. V. <contact@kitodo.org>
*
* This file is part of the Kitodo project.
*
* It is licensed under GNU General Public License version 3 or later.
*
* For the full copyright and license information, please read the
* GPL3-License.txt file that was distributed with this source code.
*/
package org.kitodo.production.forms.dataeditor;
import org.kitodo.production.helper.metadata.pagination.PaginatorMode;
/**
* Backing bean for a JSF select item with an image.
*/
public class IllustratedSelectItem {
private PaginatorMode value;
private String label;
private String image;
/**
* Constructor required by some JSF-internal processing.
*/
public IllustratedSelectItem() {
}
/**
* Creates a new illustrated select item.
*
* @param value
* value to be delivered to the model if this item is selected by
* the user
* @param label
* label to be rendered for this item in the response
* @param image
* image to display
*/
public IllustratedSelectItem(PaginatorMode value, String label, String image) {
this.value = value;
this.label = label;
this.image = image;
}
/**
* Returns the image to display.
*
* @return the image to display
*/
public String getImage() {
return image;
}
/**
* Get value.
*
* @return value of value
*/
public PaginatorMode getValue() {
return value;
}
/**
* Get label.
*
* @return value of label
*/
public String getLabel() {
return label;
}
}