1 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 { 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 |