与Yeoman我可以添加一个路由和控制器
yo angular:route myroute
Run Code Online (Sandbox Code Playgroud)
有没有办法用Yeoman删除路由和控制器?
我希望尽可能简短,不要忽略有用的信息.我有以下课程:
public class Address{
StringProperty city = new SimpleStringProperty();
StringProperty street = new SimpleStringProperty();
//following the constructor, getters and setters
...
}
Run Code Online (Sandbox Code Playgroud)
我有另一个类Client,一个有一个Address成员
public class Client {
StringProperty name = new SimpleStringProperty();
StringProperty id = new SimpleStringProperty();
ObjectProperty<Address> address = new SimpleObjectProperty<>();
//following the constructor, getters and setters
...
}
Run Code Online (Sandbox Code Playgroud)
和一个带有控制器的JavaFX接口,该控制器包含一个TableView对象,该对象应该在3列中输出Client类的成员和给定对象的Address类的city成员.我的TableView和TableColumn定义是以下代码
public class SettingsController {
TableColumn<Client, String> clientNameCol;
TableColumn<Client, String> clientEmailCol;
TableColumn<Client, String> clientCityCol;
private TableView<Client> clientSettingsTableView;
...
...
clientNameCol = new TableColumn<>("Name");
clientNameCol.setCellValueFactory(new PropertyValueFactory<Client, String>("name"));
clientEmailCol = new TableColumn<>("email"); …Run Code Online (Sandbox Code Playgroud)