1 package thinlet.drafts; 2 3 import thinlet.*; 4 5 8 public class TabbedPane { 9 10 13 public void changePlacement(Thinlet thinlet, Object combobox, Object tabbedpane) { 14 int index = thinlet.getInteger(combobox, "selected"); 15 String [] placements = { "top", "left", "bottom", "right", "stacked" }; 16 thinlet.setChoice(tabbedpane, "placement", placements[index]); 17 } 18 19 22 public void changeEnabled(Thinlet thinlet, boolean selected, Object tabbedpane, int tabindex) { 23 Object tab = thinlet.getItem(tabbedpane, tabindex); 24 thinlet.setBoolean(tab, "enabled", selected); 25 } 26 27 30 public void changeText(Thinlet thinlet, Object tabbedpane) { 31 thinlet.setString(thinlet.getItem(tabbedpane, 0), "text", "First!"); 32 } 33 34 public void focus(Thinlet thinlet, Object component) { 35 thinlet.setBoolean(component, "visible", true); 36 } 38 39 public void setBorder(Thinlet thinlet, boolean bordered, Object textarea) { 40 thinlet.setBoolean(textarea, "border", bordered); 41 } 42 } | Popular Tags |