Merge branch 'master' of http://repo.koc.se/coder-client
This commit is contained in:
commit
2b86fb4ce6
4 changed files with 17 additions and 11 deletions
|
|
@ -29,6 +29,7 @@ public class NewProjectDialog extends GuiWindow {
|
|||
@FXML private Button createButton;
|
||||
@FXML private Button cancelButton;
|
||||
@FXML private TextField projectNameTextField;
|
||||
@FXML private TextField projectDescriptionTextField;
|
||||
@FXML private ComboBox<String> projectTypeComboBox;
|
||||
@FXML private Label errorMessageLabel;
|
||||
|
||||
|
|
@ -70,7 +71,7 @@ public class NewProjectDialog extends GuiWindow {
|
|||
return;
|
||||
}
|
||||
for(NewProjectDialogListener listener : this.listeners){
|
||||
listener.create(projectNameTextField.getText(), projectTypeComboBox.getValue());
|
||||
listener.create(projectNameTextField.getText(), projectTypeComboBox.getValue(), projectDescriptionTextField.getText());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -92,10 +93,12 @@ public class NewProjectDialog extends GuiWindow {
|
|||
cancelButton.fire();
|
||||
}
|
||||
}
|
||||
|
||||
@FXML
|
||||
protected void typeSelection(ActionEvent event){
|
||||
enableDisableButton();
|
||||
}
|
||||
|
||||
protected void enableDisableButton(){
|
||||
createButton.setDisable(true);
|
||||
if(projectNameTextField.getText() != null && !projectNameTextField.getText().isEmpty()){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue