cds.gui
Class Tab
java.lang.Object
cds.gui.Tab
- All Implemented Interfaces:
- java.lang.Runnable
- class Tab
- extends java.lang.Object
- implements java.lang.Runnable
Class defining the information associated with a particular tab in the
CTabbedPane
- Version:
- 1.0 July 2003
- Author:
- Marc Wenger/CDS
Constructor Summary |
Tab(CTabbedPane tp,
java.awt.Component p,
java.lang.String name,
CIcon ic,
java.lang.String tip,
int pos)
Constructor. creates a tab object, when a new tab is created in the
TabbedPane |
Method Summary |
int |
getPosition()
Return the current position of this tab if it is in the tabbedPane |
void |
run()
|
void |
startBlink(int iconum)
|
void |
stopBlink(int iconum)
|
java.lang.String |
toString()
Display the tab info for debugging purposes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
protected java.lang.String name
tabbedPane
protected CTabbedPane tabbedPane
tabComponent
protected java.awt.Component tabComponent
icon
protected CIcon icon
tip
protected java.lang.String tip
pos
protected int pos
frame
protected javax.swing.JFrame frame
blink
protected int blink
tBlink
protected java.lang.Thread tBlink
Tab
public Tab(CTabbedPane tp,
java.awt.Component p,
java.lang.String name,
CIcon ic,
java.lang.String tip,
int pos)
- Constructor. creates a tab object, when a new tab is created in the
TabbedPane
- Parameters:
tp
- tabbedPane in which the component is addedp
- Component contained in this tabname
- name of the tabic
- Icon added to the tab titletip
- tooltiptext of nullpos
- position of the tab in the TabbedPane
getPosition
public int getPosition()
- Return the current position of this tab if it is in the tabbedPane
- Returns:
- the actual position of the tab, or -1 if the tab is currently
detached in a frame
toString
public java.lang.String toString()
- Display the tab info for debugging purposes
- Returns:
- a string containing the Tab info
startBlink
public void startBlink(int iconum)
stopBlink
public void stopBlink(int iconum)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable