{"action":"created","comment":{"url":"https://api.github.com/repos/kparal/esmska/pulls/comments/28269016","id":28269016,"diff_hunk":"@@ -0,0 +1,49 @@\n+/*\r\n+ * To change this license header, choose License Headers in Project Properties.\r\n+ * To change this template file, choose Tools | Templates\r\n+ * and open the template in the editor.\r\n+ */\r\n+package esmska.data;\r\n+\r\n+import java.beans.PropertyChangeListener;\r\n+import java.beans.PropertyChangeSupport;\r\n+\r\n+/**\r\n+ *\r\n+ * @author Mizerovi16\r\n+ */\r\n+\r\n+ \r\n+public class Temp {\r\n+        private String template;\r\n+         // <editor-fold defaultstate=\"collapsed\" desc=\"PropertyChange support\">\r\n+    private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this);\r\n+\r\n+    public void addPropertyChangeListener(PropertyChangeListener listener) {\r\n+        changeSupport.addPropertyChangeListener(listener);\r\n+    }\r\n+\r\n+    public void removePropertyChangeListener(PropertyChangeListener listener) {\r\n+        changeSupport.removePropertyChangeListener(listener);\r\n+    }\r\n+    // </editor-fold>\r\n+        \r\n+        public Temp (String template) {\r\n+            setTemplate(template);\r\n+        }\r","path":"src/esmska/data/Temp.java","position":33,"original_position":33,"commit_id":"a632eaf4fe055ad587e8b6ce6a7ada7fa20aeb93","original_commit_id":"a632eaf4fe055ad587e8b6ce6a7ada7fa20aeb93","user":{"login":"kparal","id":755451,"avatar_url":"https://avatars.githubusercontent.com/u/755451?v=3","gravatar_id":"","url":"https://api.github.com/users/kparal","html_url":"https://github.com/kparal","followers_url":"https://api.github.com/users/kparal/followers","following_url":"https://api.github.com/users/kparal/following{/other_user}","gists_url":"https://api.github.com/users/kparal/gists{/gist_id}","starred_url":"https://api.github.com/users/kparal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kparal/subscriptions","organizations_url":"https://api.github.com/users/kparal/orgs","repos_url":"https://api.github.com/users/kparal/repos","events_url":"https://api.github.com/users/kparal/events{/privacy}","received_events_url":"https://api.github.com/users/kparal/received_events","type":"User","site_admin":false},"body":"Dívám se, že jediné, co tady děláš, je, že obaluješ `String` v samostatné třídě. To mi přijde trochu zbytečný, proč nepracovat rovnou se Stringy? Něco jiného by bylo, kdybys chtěl podporovat i nějaké atributy té šablony, jako třeba název (a pak v seznamu šablon zobrazovat pouze její název, plus třeba náhled). Potom by vlastní třída dávala smysl. Takže záleží na tobě - jestli to chceš extra jednoduchý, tak tuhle třídu zahoď a používej přímo `String`. Anebo implementuj něco jako název, a potom třídu nech. (Já osobně si myslím, že není potřeba to komplikovat, třída se dá zahodit, a stačí pracovat s klasickými Stringy).","created_at":"2015-04-13T19:10:51Z","updated_at":"2015-04-13T19:10:51Z","html_url":"https://github.com/kparal/esmska/pull/17#discussion_r28269016","pull_request_url":"https://api.github.com/repos/kparal/esmska/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/kparal/esmska/pulls/comments/28269016"},"html":{"href":"https://github.com/kparal/esmska/pull/17#discussion_r28269016"},"pull_request":{"href":"https://api.github.com/repos/kparal/esmska/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/kparal/esmska/pulls/17","id":25525778,"html_url":"https://github.com/kparal/esmska/pull/17","diff_url":"https://github.com/kparal/esmska/pull/17.diff","patch_url":"https://github.com/kparal/esmska/pull/17.patch","issue_url":"https://api.github.com/repos/kparal/esmska/issues/17","number":17,"state":"open","locked":false,"title":"Šablony","user":{"login":"frantamiz","id":10066076,"avatar_url":"https://avatars.githubusercontent.com/u/10066076?v=3","gravatar_id":"","url":"https://api.github.com/users/frantamiz","html_url":"https://github.com/frantamiz","followers_url":"https://api.github.com/users/frantamiz/followers","following_url":"https://api.github.com/users/frantamiz/following{/other_user}","gists_url":"https://api.github.com/users/frantamiz/gists{/gist_id}","starred_url":"https://api.github.com/users/frantamiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frantamiz/subscriptions","organizations_url":"https://api.github.com/users/frantamiz/orgs","repos_url":"https://api.github.com/users/frantamiz/repos","events_url":"https://api.github.com/users/frantamiz/events{/privacy}","received_events_url":"https://api.github.com/users/frantamiz/received_events","type":"User","site_admin":false},"body":"Dobrý večer, omlouvám se, že zde píšu česky... \r\nPosílám tu možnou úpravu ohledně šablon. \r\nV hlavním okně jsem přidal 2 tlačítka - vložit šablonu a editace šablon\r\nprvní tlačítko otevře okno, kde se dají jen vybrat šablony.\r\ndruhé tlačítko otevře editaci šablon (vytvořit, smazat, upravit)\r\nVycházel jsem z kódu esmsky... Javu se teprve učím, ostatně, to už jsem psal\r\nNezlobte se tedy za nedostatky.\r\nPS: Díval jsem se na kód, který se zde nakopíroval a byly tam ubrány i některé řádky, se kterými jsem já nic nedělal... Upravuje něco netbeans samo? Nebo ho mám špatně nastavené? \r\nDěkuji.\r\nFranta Mizera","created_at":"2014-12-04T20:27:49Z","updated_at":"2015-04-13T19:10:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73a344657b589b9ca9fac67c1390f1dc3d2aae20","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kparal/esmska/pulls/17/commits","review_comments_url":"https://api.github.com/repos/kparal/esmska/pulls/17/comments","review_comment_url":"https://api.github.com/repos/kparal/esmska/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kparal/esmska/issues/17/comments","statuses_url":"https://api.github.com/repos/kparal/esmska/statuses/a632eaf4fe055ad587e8b6ce6a7ada7fa20aeb93","head":{"label":"frantamiz:master","ref":"master","sha":"a632eaf4fe055ad587e8b6ce6a7ada7fa20aeb93","user":{"login":"frantamiz","id":10066076,"avatar_url":"https://avatars.githubusercontent.com/u/10066076?v=3","gravatar_id":"","url":"https://api.github.com/users/frantamiz","html_url":"https://github.com/frantamiz","followers_url":"https://api.github.com/users/frantamiz/followers","following_url":"https://api.github.com/users/frantamiz/following{/other_user}","gists_url":"https://api.github.com/users/frantamiz/gists{/gist_id}","starred_url":"https://api.github.com/users/frantamiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frantamiz/subscriptions","organizations_url":"https://api.github.com/users/frantamiz/orgs","repos_url":"https://api.github.com/users/frantamiz/repos","events_url":"https://api.github.com/users/frantamiz/events{/privacy}","received_events_url":"https://api.github.com/users/frantamiz/received_events","type":"User","site_admin":false},"repo":{"id":27505514,"name":"esmska","full_name":"frantamiz/esmska","owner":{"login":"frantamiz","id":10066076,"avatar_url":"https://avatars.githubusercontent.com/u/10066076?v=3","gravatar_id":"","url":"https://api.github.com/users/frantamiz","html_url":"https://github.com/frantamiz","followers_url":"https://api.github.com/users/frantamiz/followers","following_url":"https://api.github.com/users/frantamiz/following{/other_user}","gists_url":"https://api.github.com/users/frantamiz/gists{/gist_id}","starred_url":"https://api.github.com/users/frantamiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frantamiz/subscriptions","organizations_url":"https://api.github.com/users/frantamiz/orgs","repos_url":"https://api.github.com/users/frantamiz/repos","events_url":"https://api.github.com/users/frantamiz/events{/privacy}","received_events_url":"https://api.github.com/users/frantamiz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/frantamiz/esmska","description":"Program for sending SMS over the Internet","fork":true,"url":"https://api.github.com/repos/frantamiz/esmska","forks_url":"https://api.github.com/repos/frantamiz/esmska/forks","keys_url":"https://api.github.com/repos/frantamiz/esmska/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frantamiz/esmska/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frantamiz/esmska/teams","hooks_url":"https://api.github.com/repos/frantamiz/esmska/hooks","issue_events_url":"https://api.github.com/repos/frantamiz/esmska/issues/events{/number}","events_url":"https://api.github.com/repos/frantamiz/esmska/events","assignees_url":"https://api.github.com/repos/frantamiz/esmska/assignees{/user}","branches_url":"https://api.github.com/repos/frantamiz/esmska/branches{/branch}","tags_url":"https://api.github.com/repos/frantamiz/esmska/tags","blobs_url":"https://api.github.com/repos/frantamiz/esmska/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frantamiz/esmska/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frantamiz/esmska/git/refs{/sha}","trees_url":"https://api.github.com/repos/frantamiz/esmska/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frantamiz/esmska/statuses/{sha}","languages_url":"https://api.github.com/repos/frantamiz/esmska/languages","stargazers_url":"https://api.github.com/repos/frantamiz/esmska/stargazers","contributors_url":"https://api.github.com/repos/frantamiz/esmska/contributors","subscribers_url":"https://api.github.com/repos/frantamiz/esmska/subscribers","subscription_url":"https://api.github.com/repos/frantamiz/esmska/subscription","commits_url":"https://api.github.com/repos/frantamiz/esmska/commits{/sha}","git_commits_url":"https://api.github.com/repos/frantamiz/esmska/git/commits{/sha}","comments_url":"https://api.github.com/repos/frantamiz/esmska/comments{/number}","issue_comment_url":"https://api.github.com/repos/frantamiz/esmska/issues/comments{/number}","contents_url":"https://api.github.com/repos/frantamiz/esmska/contents/{+path}","compare_url":"https://api.github.com/repos/frantamiz/esmska/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frantamiz/esmska/merges","archive_url":"https://api.github.com/repos/frantamiz/esmska/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frantamiz/esmska/downloads","issues_url":"https://api.github.com/repos/frantamiz/esmska/issues{/number}","pulls_url":"https://api.github.com/repos/frantamiz/esmska/pulls{/number}","milestones_url":"https://api.github.com/repos/frantamiz/esmska/milestones{/number}","notifications_url":"https://api.github.com/repos/frantamiz/esmska/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frantamiz/esmska/labels{/name}","releases_url":"https://api.github.com/repos/frantamiz/esmska/releases{/id}","created_at":"2014-12-03T20:10:55Z","updated_at":"2015-04-12T21:35:01Z","pushed_at":"2015-04-13T18:56:51Z","git_url":"git://github.com/frantamiz/esmska.git","ssh_url":"git@github.com:frantamiz/esmska.git","clone_url":"https://github.com/frantamiz/esmska.git","svn_url":"https://github.com/frantamiz/esmska","homepage":"http://code.google.com/p/esmska/","size":78064,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kparal:master","ref":"master","sha":"218001303556aac66562ebfe87770d24a92b943c","user":{"login":"kparal","id":755451,"avatar_url":"https://avatars.githubusercontent.com/u/755451?v=3","gravatar_id":"","url":"https://api.github.com/users/kparal","html_url":"https://github.com/kparal","followers_url":"https://api.github.com/users/kparal/followers","following_url":"https://api.github.com/users/kparal/following{/other_user}","gists_url":"https://api.github.com/users/kparal/gists{/gist_id}","starred_url":"https://api.github.com/users/kparal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kparal/subscriptions","organizations_url":"https://api.github.com/users/kparal/orgs","repos_url":"https://api.github.com/users/kparal/repos","events_url":"https://api.github.com/users/kparal/events{/privacy}","received_events_url":"https://api.github.com/users/kparal/received_events","type":"User","site_admin":false},"repo":{"id":1672466,"name":"esmska","full_name":"kparal/esmska","owner":{"login":"kparal","id":755451,"avatar_url":"https://avatars.githubusercontent.com/u/755451?v=3","gravatar_id":"","url":"https://api.github.com/users/kparal","html_url":"https://github.com/kparal","followers_url":"https://api.github.com/users/kparal/followers","following_url":"https://api.github.com/users/kparal/following{/other_user}","gists_url":"https://api.github.com/users/kparal/gists{/gist_id}","starred_url":"https://api.github.com/users/kparal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kparal/subscriptions","organizations_url":"https://api.github.com/users/kparal/orgs","repos_url":"https://api.github.com/users/kparal/repos","events_url":"https://api.github.com/users/kparal/events{/privacy}","received_events_url":"https://api.github.com/users/kparal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kparal/esmska","description":"Program for sending SMS over the Internet","fork":false,"url":"https://api.github.com/repos/kparal/esmska","forks_url":"https://api.github.com/repos/kparal/esmska/forks","keys_url":"https://api.github.com/repos/kparal/esmska/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kparal/esmska/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kparal/esmska/teams","hooks_url":"https://api.github.com/repos/kparal/esmska/hooks","issue_events_url":"https://api.github.com/repos/kparal/esmska/issues/events{/number}","events_url":"https://api.github.com/repos/kparal/esmska/events","assignees_url":"https://api.github.com/repos/kparal/esmska/assignees{/user}","branches_url":"https://api.github.com/repos/kparal/esmska/branches{/branch}","tags_url":"https://api.github.com/repos/kparal/esmska/tags","blobs_url":"https://api.github.com/repos/kparal/esmska/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kparal/esmska/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kparal/esmska/git/refs{/sha}","trees_url":"https://api.github.com/repos/kparal/esmska/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kparal/esmska/statuses/{sha}","languages_url":"https://api.github.com/repos/kparal/esmska/languages","stargazers_url":"https://api.github.com/repos/kparal/esmska/stargazers","contributors_url":"https://api.github.com/repos/kparal/esmska/contributors","subscribers_url":"https://api.github.com/repos/kparal/esmska/subscribers","subscription_url":"https://api.github.com/repos/kparal/esmska/subscription","commits_url":"https://api.github.com/repos/kparal/esmska/commits{/sha}","git_commits_url":"https://api.github.com/repos/kparal/esmska/git/commits{/sha}","comments_url":"https://api.github.com/repos/kparal/esmska/comments{/number}","issue_comment_url":"https://api.github.com/repos/kparal/esmska/issues/comments{/number}","contents_url":"https://api.github.com/repos/kparal/esmska/contents/{+path}","compare_url":"https://api.github.com/repos/kparal/esmska/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kparal/esmska/merges","archive_url":"https://api.github.com/repos/kparal/esmska/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kparal/esmska/downloads","issues_url":"https://api.github.com/repos/kparal/esmska/issues{/number}","pulls_url":"https://api.github.com/repos/kparal/esmska/pulls{/number}","milestones_url":"https://api.github.com/repos/kparal/esmska/milestones{/number}","notifications_url":"https://api.github.com/repos/kparal/esmska/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kparal/esmska/labels{/name}","releases_url":"https://api.github.com/repos/kparal/esmska/releases{/id}","created_at":"2011-04-27T20:01:07Z","updated_at":"2015-04-13T08:24:35Z","pushed_at":"2015-04-13T18:49:20Z","git_url":"git://github.com/kparal/esmska.git","ssh_url":"git@github.com:kparal/esmska.git","clone_url":"https://github.com/kparal/esmska.git","svn_url":"https://github.com/kparal/esmska","homepage":"http://code.google.com/p/esmska/","size":78839,"stargazers_count":24,"watchers_count":24,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":3,"forks":18,"open_issues":3,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kparal/esmska/pulls/17"},"html":{"href":"https://github.com/kparal/esmska/pull/17"},"issue":{"href":"https://api.github.com/repos/kparal/esmska/issues/17"},"comments":{"href":"https://api.github.com/repos/kparal/esmska/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/kparal/esmska/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/kparal/esmska/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kparal/esmska/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/kparal/esmska/statuses/a632eaf4fe055ad587e8b6ce6a7ada7fa20aeb93"}}}}