Class powersoft.jcm.ui.TabControl
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class powersoft.jcm.ui.TabControl

java.lang.Object
   |
   +----powersoft.jcm.ui.Component
           |
           +----powersoft.jcm.ui.TabControl

public class TabControl
extends Component

Variable Index

 o _selectVector

Constructor Index

 o TabControl()

Method Index

 o add(int, String, Object)
 o addSelectListener(SelectListener)
 o createAWTComponent(Component)
 o delete(int)
Deletes the page with the given index from a tab control.
 o deleteAll()
Removes all items from a tab control.
 o getAWTTabControl()
 o getCount()
 o getPanel(int)
 o getSelected()
 o getSelectListeners()
 o getTabHeight()
 o getTabSize()
 o getTabWidth()
 o getText(int)
 o getUserData(int)
 o handleSelect(SelectEvent)
 o processAWTEvent(Event)
 o removeSelectListener(SelectListener)
 o setPanel(int, Panel)
 o setSelected(int)
 o setTabHeight(int)
 o setTabSize(Dimension)
 o setTabSize(int, int)
 o setTabWidth(int)
 o setText(int, String)
 o setUserData(int, Object)

Variables

 o _selectVector
  protected EventListenerVector _selectVector

Constructors

 o TabControl
  public TabControl()

Methods

 o addSelectListener
  public synchronized void addSelectListener(SelectListener l)
 o getSelectListeners
  public synchronized EventListenerVector getSelectListeners()
 o handleSelect
  public synchronized void handleSelect(SelectEvent data)
 o removeSelectListener
  public synchronized void removeSelectListener(SelectListener l)
 o getCount
  public int getCount()
 o getSelected
  public int getSelected()
 o setSelected
  public void setSelected(int id)
 o getTabHeight
  public int getTabHeight()
 o setTabHeight
  public void setTabHeight(int height)
 o getTabSize
  public Dimension getTabSize()
 o setTabSize
  public void setTabSize(Dimension size)
 o setTabSize
  public void setTabSize(int width,
                         int height)
 o getTabWidth
  public int getTabWidth()
 o setTabWidth
  public void setTabWidth(int width)
 o getPanel
  public Panel getPanel(int id)
 o setPanel
  public void setPanel(int id,
                       Panel panel)
 o getText
  public String getText(int id)
 o setText
  public void setText(int id,
                      String text)
 o getUserData
  public Object getUserData(int id)
 o setUserData
  public void setUserData(int id,
                          Object userData)
 o add
  public void add(int id,
                  String text,
                  Object userData)
 o delete
  public boolean delete(int index)
Deletes the page with the given index from a tab control.

Notes: To remove all pages in the tab control use the deleteAll method.

Parameters:
index - Specifies the zero-based index of the page to be removed.
Returns:
trueif the page was deleted; false otherwise. error occurred.
See Also:
add, deleteAll
 o deleteAll
  public boolean deleteAll()
Removes all items from a tab control.

Notes: To remove a specific page from the tab control use the delete method.

Returns:
true if all pages were successfully removed; false if an error occurs (e.g., no pages were in the tab control).
See Also:
delete
 o createAWTComponent
  protected Component createAWTComponent(Component parent)
Overrides:
createAWTComponent in class Component
 o processAWTEvent
  public boolean processAWTEvent(Event event)
Overrides:
processAWTEvent in class Component
 o getAWTTabControl
  protected AWTTabControl getAWTTabControl()

All Packages  Class Hierarchy  This Package  Previous  Next  Index