KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > JSeparator


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: JSeparator.java,v $
11    Revision 1.6 2004/01/20 09:17:15 bobintetley
12    Menu class overhaul for compatibility, Action support and thread safety
13
14    Revision 1.5 2003/12/15 18:29:57 bobintetley
15    Changed setParent() method to setSwingWTParent() to avoid conflicts with applications
16
17    Revision 1.4 2003/12/14 09:13:38 bobintetley
18    Added CVS log to source headers
19
20 */

21
22 package swingwtx.swing;
23
24 import org.eclipse.swt.widgets.*;
25 import org.eclipse.swt.*;
26
27 public class JSeparator extends JSWTMenuComponent implements SwingConstants {
28     
29     private MenuItem ppeer = null;
30     private Shell shell = null;
31     
32     public JSeparator() { }
33     public JSeparator(int orientation) {}
34     
35     public int getOrientation() { return HORIZONTAL; }
36     public void setOrientation(int orientation) {}
37     
38     public void setSwingWTParent(Menu parent, Shell shell) throws Exception JavaDoc {
39         this.shell = shell;
40         ppeer = new MenuItem(parent, SWT.SEPARATOR);
41         peer = ppeer;
42     }
43     
44     public boolean isSelected() {
45         return false;
46     }
47     
48     public void setSelected(boolean b) {
49     }
50     
51 }
52
Popular Tags