1 19 20 package org.netbeans.swing.tabcontrol; 21 22 import org.netbeans.swing.tabcontrol.DefaultTabDataModel; 23 import org.netbeans.swing.tabcontrol.TabDataModel; 24 25 31 public interface SlideBarDataModel extends TabDataModel { 32 33 public static final int EAST = 1; 34 public static final int WEST = 2; 35 public static final int SOUTH = 3; 36 37 39 public int getOrientation (); 40 41 43 public void setOrientation (int orientation); 44 45 47 public static class Impl extends DefaultTabDataModel implements SlideBarDataModel { 48 49 50 private int orientation = EAST; 51 52 53 public Impl () { 54 super(); 55 } 56 57 public int getOrientation() { 58 return orientation; 59 } 60 61 public void setOrientation(int orientation) { 62 this.orientation = orientation; 63 } 64 65 } 67 } 68 | Popular Tags |