move dashboard elements and store the order
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user