优化代码结构

This commit is contained in:
peng
2021-11-11 20:53:02 +08:00
parent 113cb63d62
commit db2341a23d
50 changed files with 1286 additions and 1110 deletions

View File

@@ -0,0 +1,28 @@
package com.dayrain.views;
import javafx.scene.layout.VBox;
import java.util.List;
/**
* server容器
* @author peng
* @date 2021/11/11
*/
public class ServerContainer extends VBox {
private List<ServerPane> serverPanes;
public ServerContainer(List<ServerPane> serverPanes) {
this.serverPanes = serverPanes;
createView();
}
public void createView() {
getChildren().addAll(serverPanes);
}
public void refresh() {
getChildren().removeAll();
getChildren().addAll(serverPanes);
}
}