~ubuntu-branches/ubuntu/oneiric/tuxguitar/oneiric

« back to all changes in this revision

Viewing changes to TuxGuitar-tef/src/org/herac/tuxguitar/io/tef/base/TEInfo.java

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2008-06-19 00:30:30 UTC
  • mto: (5.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20080619003030-h719szrhsngou7c6
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.herac.tuxguitar.io.tef.base;
 
2
 
 
3
public class TEInfo {
 
4
        
 
5
        private String title;
 
6
        
 
7
        private String subtitle;
 
8
        
 
9
        private String comments;
 
10
        
 
11
        private String notes;
 
12
        
 
13
        public TEInfo(String title, String subtitle, String comments) {
 
14
                this.title = title;
 
15
                this.subtitle = subtitle;
 
16
                this.comments = comments;
 
17
        }
 
18
        
 
19
        public String getComments() {
 
20
                return this.comments;
 
21
        }
 
22
        
 
23
        public String getSubtitle() {
 
24
                return this.subtitle;
 
25
        }
 
26
        
 
27
        public String getTitle() {
 
28
                return this.title;
 
29
        }
 
30
        
 
31
        public String getNotes() {
 
32
                return this.notes;
 
33
        }
 
34
        
 
35
        public void setNotes(String notes) {
 
36
                this.notes = notes;
 
37
        }
 
38
        
 
39
        public String toString(){
 
40
                String string = new String("[INFO]");
 
41
                string += "\n     Title:       " + getTitle();
 
42
                string += "\n     Subtitle:    " + getSubtitle();
 
43
                string += "\n     Comments:    " + getComments();
 
44
                if(this.getNotes() != null){
 
45
                        string += "\n     Notes:       " + getNotes();
 
46
                }
 
47
                return string;
 
48
        }
 
49
}