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

« back to all changes in this revision

Viewing changes to TuxGuitar/src/org/herac/tuxguitar/gui/clipboard/ClipBoard.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
/*
 
2
 * Created on 09-dic-2005
 
3
 *
 
4
 * TODO To change the template for this generated file go to
 
5
 * Window - Preferences - Java - Code Style - Code Templates
 
6
 */
 
7
package org.herac.tuxguitar.gui.clipboard;
 
8
 
 
9
/**
 
10
 * @author julian
 
11
 *
 
12
 * TODO To change the template for this generated type comment go to
 
13
 * Window - Preferences - Java - Code Style - Code Templates
 
14
 */
 
15
public class ClipBoard {
 
16
        private Transferable transferable;
 
17
        
 
18
        public ClipBoard(){
 
19
                this.transferable = null;
 
20
        }
 
21
        
 
22
        public void addTransferable(Transferable transferable){
 
23
                this.transferable = transferable;
 
24
        }
 
25
        
 
26
        public Transferable getTransferable(){
 
27
                return this.transferable;
 
28
        }
 
29
        
 
30
        public void insertTransfer() throws CannotInsertTransferException{
 
31
                if(this.isEmpty()){
 
32
                        throw new CannotInsertTransferException();
 
33
                }
 
34
                this.transferable.insertTransfer();
 
35
        }
 
36
        
 
37
        public boolean isEmpty(){
 
38
                return (this.transferable == null);
 
39
        }
 
40
}
 
 
b'\\ No newline at end of file'