first step to show plot on dashboard
This commit is contained in:
@@ -22,6 +22,8 @@ public class Dashboard {
|
||||
|
||||
private List<TextWidget> texts = new ArrayList<>();
|
||||
|
||||
private List<PlotWidget> plots = new ArrayList<>();
|
||||
|
||||
public Dashboard() {
|
||||
super();
|
||||
|
||||
@@ -68,4 +70,11 @@ public class Dashboard {
|
||||
this.texts = texts;
|
||||
}
|
||||
|
||||
public void setPlots(final List<PlotWidget> plots) {
|
||||
this.plots = plots;
|
||||
}
|
||||
|
||||
public List<PlotWidget> getPlots() {
|
||||
return plots;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
package org.lucares.pdbui.dashboard;
|
||||
|
||||
import org.lucares.pdbui.domain.PlotConfig;
|
||||
|
||||
public class PlotWidget extends BaseDashboardWidget {
|
||||
|
||||
public PlotWidget() {
|
||||
super();
|
||||
private PlotConfig config;
|
||||
|
||||
public PlotConfig getConfig() {
|
||||
return config;
|
||||
}
|
||||
|
||||
public PlotWidget(final DashboardWidgetSize size) {
|
||||
super(DashboardWidgetType.PLOT, size);
|
||||
public void setConfig(final PlotConfig config) {
|
||||
this.config = config;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user