KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > cve > staticLayout > metaphor > LogbookTool


1 package cve.staticLayout.metaphor;
2
3 import javax.swing.JToolBar JavaDoc;
4 import javax.swing.JButton JavaDoc;
5 import javax.swing.ImageIcon JavaDoc;
6
7 import javax.swing.JFrame JavaDoc;
8 import javax.swing.JTextArea JavaDoc;
9 import javax.swing.JScrollPane JavaDoc;
10 import javax.swing.JPanel JavaDoc;
11
12 import java.awt.*;
13 import java.awt.event.*;
14
15 import cve.util.ConfigurationRead;
16 import cve.staticLayout.ViewLog;
17
18 import org.apache.log4j.Logger;
19 import cve.staticLayout.Cve;
20
21 /**
22 * It implements logbook metaphor view
23 *
24 * @version 1.1.0
25 * @author Domenico Ventriglia
26 *
27 */

28 public class LogbookTool extends JToolBar JavaDoc
29 {
30
31    /**
32    * Logbook inizialitation
33    */

34    public LogbookTool(){
35       Cve.errLog.debug("");
36       ViewLog.writeInLog("\n"+" Inizializzo metafora del logbook ");
37       setOrientation(0); // verticale
38
addButtons();
39       setSize(240,30);
40       setVisible(true);
41    }
42
43    /**
44    * Inizialization navigation struct between pages
45    */

46    protected void addButtons() {
47       Cve.errLog.debug("");
48       JButton JavaDoc button = null;
49       ViewLog.writeInLog(" Inizializzo struttura di navigazione "+"\n");
50       button = new JButton JavaDoc(new ImageIcon JavaDoc(ConfigurationRead.getCveRoot()+"/resource/metaphor/copycont_r_co.gif"));
51       button.setToolTipText("Next page");
52       add(button);
53       button = new JButton JavaDoc(new ImageIcon JavaDoc(ConfigurationRead.getCveRoot()+"/resource/metaphor/copycont_l_co.gif"));
54       button.setToolTipText("Previous page");
55       addSeparator();
56       add(button);
57       button = new JButton JavaDoc(new ImageIcon JavaDoc(ConfigurationRead.getCveRoot()+"/resource/metaphor/copy_r_co.gif"));
58       button.setToolTipText("Last page");
59       addSeparator();
60       add(button);
61       button = new JButton JavaDoc(new ImageIcon JavaDoc(ConfigurationRead.getCveRoot()+"/resource/metaphor/copy_l_co.gif"));
62       button.setToolTipText("");
63       addSeparator();
64       add(button);
65    }
66 }
67
68
Popular Tags