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

« back to all changes in this revision

Viewing changes to TuxGuitar/src/org/herac/tuxguitar/song/models/TGText.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.song.models;
 
2
 
 
3
import org.herac.tuxguitar.song.factory.TGFactory;
 
4
 
 
5
public class TGText{
 
6
        
 
7
        private String value;
 
8
        private TGBeat beat;
 
9
        
 
10
        public TGText(){
 
11
                super();
 
12
        }
 
13
        
 
14
        public TGBeat getBeat() {
 
15
                return this.beat;
 
16
        }
 
17
        
 
18
        public void setBeat(TGBeat beat) {
 
19
                this.beat = beat;
 
20
        }
 
21
        
 
22
        public String getValue() {
 
23
                return this.value;
 
24
        }
 
25
        
 
26
        public void setValue(String value) {
 
27
                this.value = value;
 
28
        }
 
29
        
 
30
        public boolean isEmpty(){
 
31
                return (this.value == null || this.value.length() == 0);
 
32
        }
 
33
        
 
34
        public void copy(TGText text) {
 
35
                text.setValue(getValue());
 
36
        }
 
37
        
 
38
        public TGText clone(TGFactory factory) {
 
39
                TGText text = factory.newText();
 
40
                copy(text);
 
41
                return text;
 
42
        }
 
43
        
 
44
}