| java.lang.Object org.netbeans.swing.tabcontrol.DefaultTabDataModel
DefaultTabDataModel | public class DefaultTabDataModel implements TabDataModel(Code) | | Default implementation of TabDataModel.
author: Tim Boudreau |
Method Summary | |
public void | addChangeListener(ChangeListener listener) Registers ChangeListener to receive events. | public synchronized void | addComplexListDataListener(ComplexListDataListener listener) | public void | addTab(int index, TabData data) | public void | addTabs(int start, TabData[] data) | public void | addTabs(int[] indices, TabData[] data) | public TabData | getTab(int index) | public java.util.List<TabData> | getTabs() | public int | indexOf(TabData td) | public void | removeChangeListener(ChangeListener listener) Removes ChangeListener from the list of listeners. | public synchronized void | removeComplexListDataListener(ComplexListDataListener listener) | public void | removeTab(int index) | public void | removeTabs(int start, int end) Remove a range of tabs from start up to and including
finish . | public void | removeTabs(int[] indices) | public void | setIcon(int index, Icon i) | public void | setIcon(int[] indices, Icon[] icons) | public void | setIconsAndText(int[] indices, String[] txt, Icon[] icons) | public void | setTab(int index, TabData data) | public void | setTabs(TabData[] data) | public void | setText(int index, String txt) | public void | setText(int[] indices, String[] txt) | public int | size() | public String | toString() |
DefaultTabDataModel | public DefaultTabDataModel()(Code) | | Creates a new instance of DefaultTabDataModel
|
DefaultTabDataModel | public DefaultTabDataModel(TabData[] data)(Code) | | Testing constructor
|
addChangeListener | public void addChangeListener(ChangeListener listener)(Code) | | Registers ChangeListener to receive events.
Parameters: listener - The listener to register. |
removeChangeListener | public void removeChangeListener(ChangeListener listener)(Code) | | Removes ChangeListener from the list of listeners.
Parameters: listener - The listener to remove. |
removeTab | public void removeTab(int index)(Code) | | |
removeTabs | public void removeTabs(int start, int end)(Code) | | Remove a range of tabs from start up to and including
finish .
|
removeTabs | public void removeTabs(int[] indices)(Code) | | |
setIcon | public void setIcon(int index, Icon i)(Code) | | |
setIcon | public void setIcon(int[] indices, Icon[] icons)(Code) | | |
setIconsAndText | public void setIconsAndText(int[] indices, String[] txt, Icon[] icons)(Code) | | |
setText | public void setText(int[] indices, String[] txt)(Code) | | |
|
|