{"action":"created","comment":{"url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/pulls/comments/176921680","pull_request_review_id":106710827,"id":176921680,"diff_hunk":"@@ -1,18 +1,108 @@\n-package com.deusgmbh.xcusatio.ui.profilsettings;\n-\n-import javafx.scene.layout.VBox;\n-\n-/**\n- * \n- * This is the ProfileSettings class for the User Interface. This class creates\n- * the ProfileSettings tab with all of its components\n- * \n- * @author Pascal.Schroeder@de.ibm.com\n- *\n- */\n-\n-public class ProfileSettings extends VBox {\n-    public ProfileSettings() {\n-\n-    }\n-}\n+package com.deusgmbh.xcusatio.ui.profilsettings;\r\n+\r\n+import java.util.Arrays;\r\n+import java.util.concurrent.atomic.AtomicInteger;\r\n+\r\n+import javafx.collections.FXCollections;\r\n+import javafx.geometry.Pos;\r\n+import javafx.scene.Node;\r\n+import javafx.scene.control.Button;\r\n+import javafx.scene.control.ChoiceBox;\r\n+import javafx.scene.control.Label;\r\n+import javafx.scene.control.RadioButton;\r\n+import javafx.scene.control.TextField;\r\n+import javafx.scene.control.ToggleGroup;\r\n+import javafx.scene.layout.FlowPane;\r\n+import javafx.scene.layout.GridPane;\r\n+import javafx.scene.layout.HBox;\r\n+\r\n+/**\r\n+ * \r\n+ * This is the ProfileSettings class for the User Interface. This class creates\r\n+ * the ProfileSettings tab with all of its components\r\n+ * \r\n+ * @author Lars.Dittert@de.ibm.com\r\n+ *\r\n+ */\r\n+\r\n+public class ProfileSettings extends FlowPane {\r\n+\tprivate static final String AGE_LABEL = \"Alter\";\r\n+\tprivate static final String SEX_LABEL = \"Geschlecht\";\r\n+\tprivate static final String LOCATION_LABEL = \"Standort\";\r\n+\tprivate static final String CALENDAR_LABEL = \"Google-Kalendar\";\r\n+\tprivate static final String CALENDAR_BUTTON_LABEL = \"Hinzuf\\u00fcgen\";\r\n+\tprivate static final String PROFILE_SETTINGS_PANE_BORDER_COLOR = \"#000000\";\r\n+\tprivate static final String AGE_ZERO_TO_NINETEEN = \"0-19\";\r\n+\tprivate static final String AGE_TWENTY_TO_THIRTYNINE = \"20-39\";\r\n+\tprivate static final String AGE_FOURTY_TO_FIFTYNINE = \"40-59\";\r\n+\tprivate static final String AGE_SIXTY_TO_SEVENTYNINE = \"60-79\";\r\n+\tprivate static final String AGE_EIGHTY_TO_NINETYNINE = \"80-99\";\r\n+\tprivate static final String DEFAULT_TEXT_TEXTFIELD = \"PLZ\";\r\n+\tprivate static final String SUBMIT_BUTTON = \"Speichern\";\r\n+\tprivate static final String TITLE_LABEL = \"Profileinstellungen\";\r\n+\r\n+\tprivate GridPane gridPane;\r\n+\r\n+\tprivate Label titleLabel;\r\n+\tprivate Label age;\r\n+\tprivate Label sex;\r\n+\tprivate Label location;\r\n+\tprivate Label calendar;\r\n+\r\n+\tprivate ChoiceBox ageChoiceBox;\r\n+\tprivate HBox sexTogglePane;\r\n+\r\n+\tprivate Button calendarButton;\r\n+\tprivate Button submitEditedEntryBtn;\r\n+\tprivate TextField address;\r\n+\tprivate RadioButton male;\r\n+\tprivate RadioButton female;\r\n+\r\n+\tpublic ProfileSettings() {\r\n+\t\tgridPane = new GridPane();\r\n+\t\tsexTogglePane = new HBox();\r\n+\r\n+\t\tthis.setStyle(\"-fx-border-color: \" + PROFILE_SETTINGS_PANE_BORDER_COLOR);\r\n+\t\tthis.gridPane.setStyle(\"-fx-border-color: \" + PROFILE_SETTINGS_PANE_BORDER_COLOR);\r\n+\r\n+\t\ttitleLabel = new Label(TITLE_LABEL);\r\n+\t\tage = new Label(AGE_LABEL);\r\n+\t\tsex = new Label(SEX_LABEL);\r\n+\t\tlocation = new Label(LOCATION_LABEL);\r\n+\t\tcalendar = new Label(CALENDAR_LABEL);\r\n+\r\n+\t\t/* ageChoiceBox */\r\n+\t\tageChoiceBox = new ChoiceBox(FXCollections.observableArrayList(AGE_ZERO_TO_NINETEEN, AGE_TWENTY_TO_THIRTYNINE,\r\n+\t\t\t\tAGE_FOURTY_TO_FIFTYNINE, AGE_SIXTY_TO_SEVENTYNINE, AGE_EIGHTY_TO_NINETYNINE));\r\n+\t\t/* radioButton */\r\n+\t\tToggleGroup groupRadio = new ToggleGroup();\r\n+\t\tmale = new RadioButton();\r\n+\t\tmale.setToggleGroup(groupRadio);\r\n+\t\tmale.setSelected(true);\r\n+\t\tfemale = new RadioButton();\r\n+\t\tfemale.setToggleGroup(groupRadio);\r\n+\t\tsexTogglePane.getChildren().addAll(male, female);\r\n+\t\t/* inputPLZ */\r\n+\t\taddress = new TextField(DEFAULT_TEXT_TEXTFIELD);\r\n+\t\t/* button */\r\n+\t\tcalendarButton = new Button(CALENDAR_BUTTON_LABEL);\r","path":"src/main/java/com/deusgmbh/xcusatio/ui/profilsettings/ProfileSettings.java","position":106,"original_position":106,"commit_id":"4c8af7217b1419a50cc9818d1fb746978c79069d","original_commit_id":"4c8af7217b1419a50cc9818d1fb746978c79069d","user":{"login":"PascalSchroederDE","id":31823654,"avatar_url":"https://avatars0.githubusercontent.com/u/31823654?v=4","gravatar_id":"","url":"https://api.github.com/users/PascalSchroederDE","html_url":"https://github.com/PascalSchroederDE","followers_url":"https://api.github.com/users/PascalSchroederDE/followers","following_url":"https://api.github.com/users/PascalSchroederDE/following{/other_user}","gists_url":"https://api.github.com/users/PascalSchroederDE/gists{/gist_id}","starred_url":"https://api.github.com/users/PascalSchroederDE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PascalSchroederDE/subscriptions","organizations_url":"https://api.github.com/users/PascalSchroederDE/orgs","repos_url":"https://api.github.com/users/PascalSchroederDE/repos","events_url":"https://api.github.com/users/PascalSchroederDE/events{/privacy}","received_events_url":"https://api.github.com/users/PascalSchroederDE/received_events","type":"User","site_admin":false},"body":"das ist kein Button sondern nen FileChooser. Die dahinterstehende Logik mach ich dann. ","created_at":"2018-03-24T22:12:28Z","updated_at":"2018-03-24T22:15:49Z","html_url":"https://github.com/DeusGmbH/XCusatio-General/pull/51#discussion_r176921680","pull_request_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/pulls/51","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/DeusGmbH/XCusatio-General/pulls/comments/176921680"},"html":{"href":"https://github.com/DeusGmbH/XCusatio-General/pull/51#discussion_r176921680"},"pull_request":{"href":"https://api.github.com/repos/DeusGmbH/XCusatio-General/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/pulls/51","id":177259151,"html_url":"https://github.com/DeusGmbH/XCusatio-General/pull/51","diff_url":"https://github.com/DeusGmbH/XCusatio-General/pull/51.diff","patch_url":"https://github.com/DeusGmbH/XCusatio-General/pull/51.patch","issue_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/issues/51","number":51,"state":"open","locked":false,"title":"User profile","user":{"login":"larsdittert","id":23522712,"avatar_url":"https://avatars2.githubusercontent.com/u/23522712?v=4","gravatar_id":"","url":"https://api.github.com/users/larsdittert","html_url":"https://github.com/larsdittert","followers_url":"https://api.github.com/users/larsdittert/followers","following_url":"https://api.github.com/users/larsdittert/following{/other_user}","gists_url":"https://api.github.com/users/larsdittert/gists{/gist_id}","starred_url":"https://api.github.com/users/larsdittert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larsdittert/subscriptions","organizations_url":"https://api.github.com/users/larsdittert/orgs","repos_url":"https://api.github.com/users/larsdittert/repos","events_url":"https://api.github.com/users/larsdittert/events{/privacy}","received_events_url":"https://api.github.com/users/larsdittert/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-24T21:12:51Z","updated_at":"2018-03-24T22:15:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/pulls/51/commits","review_comments_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/pulls/51/comments","review_comment_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/issues/51/comments","statuses_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/statuses/4c8af7217b1419a50cc9818d1fb746978c79069d","head":{"label":"DeusGmbH:UserProfile","ref":"UserProfile","sha":"4c8af7217b1419a50cc9818d1fb746978c79069d","user":{"login":"DeusGmbH","id":36696014,"avatar_url":"https://avatars1.githubusercontent.com/u/36696014?v=4","gravatar_id":"","url":"https://api.github.com/users/DeusGmbH","html_url":"https://github.com/DeusGmbH","followers_url":"https://api.github.com/users/DeusGmbH/followers","following_url":"https://api.github.com/users/DeusGmbH/following{/other_user}","gists_url":"https://api.github.com/users/DeusGmbH/gists{/gist_id}","starred_url":"https://api.github.com/users/DeusGmbH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeusGmbH/subscriptions","organizations_url":"https://api.github.com/users/DeusGmbH/orgs","repos_url":"https://api.github.com/users/DeusGmbH/repos","events_url":"https://api.github.com/users/DeusGmbH/events{/privacy}","received_events_url":"https://api.github.com/users/DeusGmbH/received_events","type":"Organization","site_admin":false},"repo":{"id":122321775,"name":"XCusatio-General","full_name":"DeusGmbH/XCusatio-General","owner":{"login":"DeusGmbH","id":36696014,"avatar_url":"https://avatars1.githubusercontent.com/u/36696014?v=4","gravatar_id":"","url":"https://api.github.com/users/DeusGmbH","html_url":"https://github.com/DeusGmbH","followers_url":"https://api.github.com/users/DeusGmbH/followers","following_url":"https://api.github.com/users/DeusGmbH/following{/other_user}","gists_url":"https://api.github.com/users/DeusGmbH/gists{/gist_id}","starred_url":"https://api.github.com/users/DeusGmbH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeusGmbH/subscriptions","organizations_url":"https://api.github.com/users/DeusGmbH/orgs","repos_url":"https://api.github.com/users/DeusGmbH/repos","events_url":"https://api.github.com/users/DeusGmbH/events{/privacy}","received_events_url":"https://api.github.com/users/DeusGmbH/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DeusGmbH/XCusatio-General","description":null,"fork":false,"url":"https://api.github.com/repos/DeusGmbH/XCusatio-General","forks_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/forks","keys_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/teams","hooks_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/hooks","issue_events_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/issues/events{/number}","events_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/events","assignees_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/assignees{/user}","branches_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/branches{/branch}","tags_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/tags","blobs_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/git/refs{/sha}","trees_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/statuses/{sha}","languages_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/languages","stargazers_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/stargazers","contributors_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/contributors","subscribers_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/subscribers","subscription_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/subscription","commits_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/commits{/sha}","git_commits_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/git/commits{/sha}","comments_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/comments{/number}","issue_comment_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/issues/comments{/number}","contents_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/contents/{+path}","compare_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/merges","archive_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/downloads","issues_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/issues{/number}","pulls_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/pulls{/number}","milestones_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/milestones{/number}","notifications_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/labels{/name}","releases_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/releases{/id}","deployments_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/deployments","created_at":"2018-02-21T10:26:13Z","updated_at":"2018-03-24T16:22:26Z","pushed_at":"2018-03-24T21:12:52Z","git_url":"git://github.com/DeusGmbH/XCusatio-General.git","ssh_url":"git@github.com:DeusGmbH/XCusatio-General.git","clone_url":"https://github.com/DeusGmbH/XCusatio-General.git","svn_url":"https://github.com/DeusGmbH/XCusatio-General","homepage":null,"size":254,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":23,"license":null,"forks":0,"open_issues":23,"watchers":0,"default_branch":"master"}},"base":{"label":"DeusGmbH:master","ref":"master","sha":"57653c4454c9fd94d4e21b557b7429ca511f51dc","user":{"login":"DeusGmbH","id":36696014,"avatar_url":"https://avatars1.githubusercontent.com/u/36696014?v=4","gravatar_id":"","url":"https://api.github.com/users/DeusGmbH","html_url":"https://github.com/DeusGmbH","followers_url":"https://api.github.com/users/DeusGmbH/followers","following_url":"https://api.github.com/users/DeusGmbH/following{/other_user}","gists_url":"https://api.github.com/users/DeusGmbH/gists{/gist_id}","starred_url":"https://api.github.com/users/DeusGmbH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeusGmbH/subscriptions","organizations_url":"https://api.github.com/users/DeusGmbH/orgs","repos_url":"https://api.github.com/users/DeusGmbH/repos","events_url":"https://api.github.com/users/DeusGmbH/events{/privacy}","received_events_url":"https://api.github.com/users/DeusGmbH/received_events","type":"Organization","site_admin":false},"repo":{"id":122321775,"name":"XCusatio-General","full_name":"DeusGmbH/XCusatio-General","owner":{"login":"DeusGmbH","id":36696014,"avatar_url":"https://avatars1.githubusercontent.com/u/36696014?v=4","gravatar_id":"","url":"https://api.github.com/users/DeusGmbH","html_url":"https://github.com/DeusGmbH","followers_url":"https://api.github.com/users/DeusGmbH/followers","following_url":"https://api.github.com/users/DeusGmbH/following{/other_user}","gists_url":"https://api.github.com/users/DeusGmbH/gists{/gist_id}","starred_url":"https://api.github.com/users/DeusGmbH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeusGmbH/subscriptions","organizations_url":"https://api.github.com/users/DeusGmbH/orgs","repos_url":"https://api.github.com/users/DeusGmbH/repos","events_url":"https://api.github.com/users/DeusGmbH/events{/privacy}","received_events_url":"https://api.github.com/users/DeusGmbH/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DeusGmbH/XCusatio-General","description":null,"fork":false,"url":"https://api.github.com/repos/DeusGmbH/XCusatio-General","forks_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/forks","keys_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/teams","hooks_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/hooks","issue_events_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/issues/events{/number}","events_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/events","assignees_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/assignees{/user}","branches_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/branches{/branch}","tags_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/tags","blobs_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/git/refs{/sha}","trees_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/statuses/{sha}","languages_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/languages","stargazers_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/stargazers","contributors_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/contributors","subscribers_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/subscribers","subscription_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/subscription","commits_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/commits{/sha}","git_commits_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/git/commits{/sha}","comments_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/comments{/number}","issue_comment_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/issues/comments{/number}","contents_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/contents/{+path}","compare_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/merges","archive_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/downloads","issues_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/issues{/number}","pulls_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/pulls{/number}","milestones_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/milestones{/number}","notifications_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/labels{/name}","releases_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/releases{/id}","deployments_url":"https://api.github.com/repos/DeusGmbH/XCusatio-General/deployments","created_at":"2018-02-21T10:26:13Z","updated_at":"2018-03-24T16:22:26Z","pushed_at":"2018-03-24T21:12:52Z","git_url":"git://github.com/DeusGmbH/XCusatio-General.git","ssh_url":"git@github.com:DeusGmbH/XCusatio-General.git","clone_url":"https://github.com/DeusGmbH/XCusatio-General.git","svn_url":"https://github.com/DeusGmbH/XCusatio-General","homepage":null,"size":254,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":23,"license":null,"forks":0,"open_issues":23,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DeusGmbH/XCusatio-General/pulls/51"},"html":{"href":"https://github.com/DeusGmbH/XCusatio-General/pull/51"},"issue":{"href":"https://api.github.com/repos/DeusGmbH/XCusatio-General/issues/51"},"comments":{"href":"https://api.github.com/repos/DeusGmbH/XCusatio-General/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/DeusGmbH/XCusatio-General/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/DeusGmbH/XCusatio-General/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DeusGmbH/XCusatio-General/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/DeusGmbH/XCusatio-General/statuses/4c8af7217b1419a50cc9818d1fb746978c79069d"}},"author_association":"NONE"}}
{"actor":{"display_login":"PascalSchroederDE"}}