move dashboard elements and store the order

This commit is contained in:
2023-03-05 16:16:54 +01:00
parent 77c576c434
commit 10c982c8bc
15 changed files with 399 additions and 72 deletions

View File

@@ -1,7 +1,11 @@
package org.lucares.pdbui.dashboard;
import java.util.UUID;
public abstract class BaseDashboardWidget {
private String id = UUID.randomUUID().toString();
private DashboardWidgetType type;
private DashboardWidgetSize size;
@@ -15,6 +19,14 @@ public abstract class BaseDashboardWidget {
this.size = size;
}
public String getId() {
return id;
}
public void setId(final String id) {
this.id = id;
}
public DashboardWidgetType getType() {
return type;
}

View File

@@ -24,6 +24,8 @@ public class Dashboard {
private List<PlotWidget> plots = new ArrayList<>();
private List<List<String>> arrangement = new ArrayList<>();
public Dashboard() {
super();
@@ -77,4 +79,12 @@ public class Dashboard {
public List<PlotWidget> getPlots() {
return plots;
}
public List<List<String>> getArrangement() {
return arrangement;
}
public void setArrangement(final List<List<String>> arrangement) {
this.arrangement = arrangement;
}
}