
nl.pvanassen.geckoboard.api.json.list.ListItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geckoboard-api Show documentation
Show all versions of geckoboard-api Show documentation
A Java API to generate highchart json on the server side.
The newest version!
package nl.pvanassen.geckoboard.api.json.list;
import java.awt.Color;
/**
* Item/line for the list widget
*
* @author Paul van Assen
*/
public class ListItem {
private final Label label = new Label();
private final Title title = new Title();
private String description;
public ListItem(String text) {
title.setText(text);
}
public void setLabelName(String labelName) {
label.setName(labelName);
}
public void setLabelColor(Color labelColor) {
label.setColor(labelColor);
}
public void setTitleHighlight(boolean titleHighlight) {
title.setHighlight(titleHighlight);
}
public void setDescription(String description) {
this.description = description;
}
public String getDescription() {
return description;
}
public Title getTitle() {
return title;
}
public Label getLabel() {
return label;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy