kAWT Version 0.21

de.trantor.kawt
Class TabbedPane

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--de.trantor.kawt.TabbedPane
All Implemented Interfaces:
ItemSelectable

public class TabbedPane
extends Panel
implements ItemSelectable


Fields inherited from class java.awt.Container
insets
 
Constructor Summary
TabbedPane()
           
 
Method Summary
 void addItemListener(ItemListener l)
           
 void addTab(java.lang.String title, Component component)
          Adds a component represented by a title to this tabbedpane.
 int getSelectedIndex()
          Returns the currently selected index for this tabbedpane.
 java.lang.Object[] getSelectedObjects()
          Sets the selected index for this tabbedpane and displays corresponding component.
 void removeItemListener(ItemListener l)
           
 void setSelectedIndex(int index)
           
 
Methods inherited from class java.awt.Container
add, add, findComponentAt, getComponent, getLayout, getMinimumSize, paintAll, paintComponents, remove, setLayout, update, validate
 
Methods inherited from class java.awt.Component
addKeyListener, addMouseListener, contains, getFont, getFontMetrics, getGraphics, getHeight, getLocationOnScreen, getPreferredSize, getSize, getWidth, getX, getY, invalidate, isEnabled, paint, processKeyEvent, processMouseEvent, proxyRequestFocus, repaint, repaint, requestFocus, setBackground, setBounds, setEnabled, setLocation, setSize, setSize, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabbedPane

public TabbedPane()
Method Detail

addItemListener

public void addItemListener(ItemListener l)
Specified by:
addItemListener in interface ItemSelectable

addTab

public void addTab(java.lang.String title,
                   Component component)
Adds a component represented by a title to this tabbedpane.

getSelectedIndex

public int getSelectedIndex()
Returns the currently selected index for this tabbedpane.

getSelectedObjects

public java.lang.Object[] getSelectedObjects()
Sets the selected index for this tabbedpane and displays corresponding component.
Specified by:
getSelectedObjects in interface ItemSelectable

setSelectedIndex

public void setSelectedIndex(int index)

removeItemListener

public void removeItemListener(ItemListener l)
Specified by:
removeItemListener in interface ItemSelectable

kAWT Version 0.21