1 19 20 package org.netbeans.swing.tabcontrol; 21 22 import org.netbeans.swing.tabcontrol.event.ComplexListDataListener; 23 24 import javax.swing.*; 25 import javax.swing.event.ChangeListener ; 26 import java.util.Collections ; 27 import java.util.List ; 28 29 46 public interface TabDataModel { 47 52 public int size(); 53 54 60 public TabData getTab(int index); 61 62 68 public void setTab(int index, TabData data); 69 70 78 public void setIcon(int index, Icon i); 79 80 86 public void setText(int index, String txt); 87 88 99 public void setIcon(int[] indices, Icon[] icons); 100 101 110 public void setText(int[] indices, String [] txt); 111 112 123 public void setIconsAndText(int[] indices, String [] txt, Icon[] icons); 124 125 131 public void addTabs(int start, TabData[] data); 132 133 138 public void removeTab(int index); 139 140 147 public void addTabs(int[] indices, TabData[] data); 148 149 152 public void setTabs(TabData[] data); 153 154 159 public void removeTabs(int[] indices); 160 161 167 public void removeTabs(int start, int end); 168 169 172 public void addTab(int index, TabData data); 173 174 179 public java.util.List <TabData> getTabs(); 180 181 188 public int indexOf(TabData td); 189 190 195 public void addComplexListDataListener(ComplexListDataListener listener); 196 197 202 public void removeComplexListDataListener(ComplexListDataListener listener); 203 204 205 213 public void addChangeListener(ChangeListener listener); 214 215 221 public void removeChangeListener(ChangeListener listener); 222 } 223 | Popular Tags |