JAL-1807 update
[jalviewjs.git] / src / awt2swing / Scrollbar.java
1 package awt2swing;
2
3 import java.awt.Component;
4 import java.awt.event.AdjustmentListener;
5 import java.awt.event.MouseListener;
6 import java.awt.event.MouseMotionListener;
7
8 import javax.swing.JScrollBar;
9
10 import javax.swing.event.ChangeListener;
11
12 public class Scrollbar extends JScrollBar {
13
14         public Scrollbar(int direction) {
15                 super(direction);
16         }
17
18         public Scrollbar() {
19                 super();
20         }
21
22         public Scrollbar(int orientation, int value, int extent, int min, int max) {
23                 super(orientation, value, extent, min, max);
24         }
25         
26         public void addChangeListener(ChangeListener l) {
27                 addAdjustmentListener((AdjustmentListener) l);
28         }
29
30         public void removeChangeListener(ChangeListener l) {
31                 removeAdjustmentListener((AdjustmentListener) l);
32         }
33         
34         public void setValue(int n) {
35                 super.setValue(n);
36         }
37         
38         public int getMinimum() {
39                 return super.getMinimum();
40         }
41
42         public int getMaximum() {
43                 return super.getMaximum();
44         }
45
46         public int getValue() {
47                 return super.getValue();
48         }
49
50 //      public void addMouseListener(MouseListener c) {
51 //              //super.addMouseListener(c);
52 //              
53 //      }
54 //      public void addMouseMotionListener(MouseMotionListener c) {
55 //              //super.addMouseMotionListener(c);
56 //      }
57
58 }