org.springframework.richclient.dialog.control
Class ExtTabbedPane

java.lang.Object
  extended by org.springframework.richclient.dialog.control.ExtTabbedPane
All Implemented Interfaces:
ControlFactory

public class ExtTabbedPane
extends Object
implements ControlFactory

Wrapper around JTabbedPane. When a Tab is made invisible, the tab is hidden from the ui, and vice versa.

TODO: move this to another package?

Author:
Peter De Bruycker

Constructor Summary
ExtTabbedPane()
           
ExtTabbedPane(JTabbedPane tabbedPane)
           
 
Method Summary
 void addChangeListener(ChangeListener listener)
           
 void addTab(int index, Tab tab)
           
 void addTab(Tab tab)
           
 int convertModelIndexToUIIndex(int index)
           
 int convertUIIndexToModelIndex(int index)
           
 JComponent getControl()
          Returns the control that this factory is responsible for producing.
 Tab getTab(int index)
           
 int getUIIndex(Tab tab)
           
 void removeChangeListener(ChangeListener listener)
           
 void removeTab(int index)
           
 void removeTab(Tab tab)
           
 void selectTab(Tab tab)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtTabbedPane

public ExtTabbedPane(JTabbedPane tabbedPane)

ExtTabbedPane

public ExtTabbedPane()
Method Detail

addChangeListener

public void addChangeListener(ChangeListener listener)

removeChangeListener

public void removeChangeListener(ChangeListener listener)

getControl

public JComponent getControl()
Description copied from interface: ControlFactory
Returns the control that this factory is responsible for producing. Depending on the implementation, this control may or not be a singleton instance.

Specified by:
getControl in interface ControlFactory
Returns:
The control, never null.

addTab

public void addTab(Tab tab)

getTab

public Tab getTab(int index)

removeTab

public void removeTab(Tab tab)

addTab

public void addTab(int index,
                   Tab tab)

removeTab

public void removeTab(int index)

selectTab

public void selectTab(Tab tab)

convertUIIndexToModelIndex

public int convertUIIndexToModelIndex(int index)

getUIIndex

public int getUIIndex(Tab tab)

convertModelIndexToUIIndex

public int convertModelIndexToUIIndex(int index)


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.