fi.hut.tml.xsmiles.gui.components.swing
Class SwingTabbedPane

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.components.swing.SwingTabbedPane
All Implemented Interfaces:
javax.swing.event.ChangeListener, java.util.EventListener, XTabbedPane

public class SwingTabbedPane
extends java.lang.Object
implements XTabbedPane, javax.swing.event.ChangeListener

Author:
honkkis

Field Summary
protected  XChangeListener changeListener
           
 
Constructor Summary
SwingTabbedPane()
           
 
Method Summary
 void addTab(java.lang.String title, java.awt.Component component)
           
 java.awt.Component getComponent()
           
 int getMaxTabCount()
           
 java.awt.Component getSelectedComponent()
           
 int getSelectedIndex()
           
 int getTabCount()
           
 int indexOfComponent(java.awt.Component component)
           
 void remove(java.awt.Component c)
           
 void remove(int i)
           
 void setChangeListener(XChangeListener list)
           
 void setTitleAt(int index, java.lang.String tit)
           
 void stateChanged(javax.swing.event.ChangeEvent arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changeListener

protected XChangeListener changeListener
Constructor Detail

SwingTabbedPane

public SwingTabbedPane()
Method Detail

getTabCount

public int getTabCount()
Specified by:
getTabCount in interface XTabbedPane

getMaxTabCount

public int getMaxTabCount()
Specified by:
getMaxTabCount in interface XTabbedPane

getSelectedIndex

public int getSelectedIndex()
Specified by:
getSelectedIndex in interface XTabbedPane

addTab

public void addTab(java.lang.String title,
                   java.awt.Component component)
Specified by:
addTab in interface XTabbedPane

remove

public void remove(java.awt.Component c)
Specified by:
remove in interface XTabbedPane

remove

public void remove(int i)
Specified by:
remove in interface XTabbedPane

getComponent

public java.awt.Component getComponent()
Specified by:
getComponent in interface XTabbedPane

setChangeListener

public void setChangeListener(XChangeListener list)
Specified by:
setChangeListener in interface XTabbedPane

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent arg0)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

getSelectedComponent

public java.awt.Component getSelectedComponent()
Specified by:
getSelectedComponent in interface XTabbedPane

indexOfComponent

public int indexOfComponent(java.awt.Component component)
Specified by:
indexOfComponent in interface XTabbedPane
Parameters:
component -
Returns:

setTitleAt

public void setTitleAt(int index,
                       java.lang.String tit)
Specified by:
setTitleAt in interface XTabbedPane
Parameters:
tit -


X-Smiles 1.2