@Route(value = "path", layout = MainView.class) @PageTitle("路径规划") public class PathView extends VerticalLayout {
@Autowired private PathService pathService;
public PathView() { TextField start = new TextField(); TextField end = new TextField(); HorizontalLayout path = new HorizontalLayout(); path.add(start, end); Button pathCalculate = new Button("calculate path");
VerticalLayout result = new VerticalLayout(); TextField transferNum = new TextField(); TextField distance = new TextField(); Text stations = new Text(""); result.add( new H3("换乘数: "), transferNum, new H3("总距离 :"), distance, new H3("途径站点详情:"), stations );