|
|
@ -10,8 +10,9 @@ public class Project {
|
|
|
|
|
|
|
|
|
|
|
|
public Project() {
|
|
|
|
public Project() {
|
|
|
|
setName("example-web");
|
|
|
|
setName("example-web");
|
|
|
|
this.domain = "com.example";
|
|
|
|
setNote("示例项目");
|
|
|
|
this.author = "author";
|
|
|
|
setAuthor("author");
|
|
|
|
|
|
|
|
setDomain("com.example");
|
|
|
|
this.frame = Frame.基础框架;
|
|
|
|
this.frame = Frame.基础框架;
|
|
|
|
this.database = DataBase.MySQL;
|
|
|
|
this.database = DataBase.MySQL;
|
|
|
|
this.needEMail = false;
|
|
|
|
this.needEMail = false;
|
|
|
@ -26,9 +27,9 @@ public class Project {
|
|
|
|
@Property("note")
|
|
|
|
@Property("note")
|
|
|
|
private SimpleStringProperty note = new SimpleStringProperty();
|
|
|
|
private SimpleStringProperty note = new SimpleStringProperty();
|
|
|
|
@Property("domain")
|
|
|
|
@Property("domain")
|
|
|
|
private String domain;
|
|
|
|
private SimpleStringProperty domain = new SimpleStringProperty();
|
|
|
|
@Property("author")
|
|
|
|
@Property("author")
|
|
|
|
private String author;
|
|
|
|
private SimpleStringProperty author = new SimpleStringProperty();
|
|
|
|
@Property(value = "frame")
|
|
|
|
@Property(value = "frame")
|
|
|
|
private Frame frame;
|
|
|
|
private Frame frame;
|
|
|
|
@Property(value = "database")
|
|
|
|
@Property(value = "database")
|
|
|
@ -75,19 +76,27 @@ public class Project {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getDomain() {
|
|
|
|
public String getDomain() {
|
|
|
|
|
|
|
|
return domain.get();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public SimpleStringProperty domainProperty() {
|
|
|
|
return domain;
|
|
|
|
return domain;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setDomain(String domain) {
|
|
|
|
public void setDomain(String domain) {
|
|
|
|
this.domain = domain;
|
|
|
|
this.domain.set(domain);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getAuthor() {
|
|
|
|
public String getAuthor() {
|
|
|
|
|
|
|
|
return author.get();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public SimpleStringProperty authorProperty() {
|
|
|
|
return author;
|
|
|
|
return author;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setAuthor(String author) {
|
|
|
|
public void setAuthor(String author) {
|
|
|
|
this.author = author;
|
|
|
|
this.author.set(author);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<Module> getModules() {
|
|
|
|
public List<Module> getModules() {
|
|
|
|