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

Class powersoft.jcm.ui.AWTTabControl

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----powersoft.jcm.ui.AWTTabControl

public class AWTTabControl
extends Panel

Constructor Index

 o AWTTabControl()

Method Index

 o add(int, String, Object)
 o delete(int)
 o deleteAll()
 o doSetSelected(int, boolean)
 o getCount()
 o getItem(int)
 o getPanel(int)
 o getPanels()
 o getSelected()
 o getTabItems()
Used by the child windows to access the tab items.
 o getTabSize()
 o getText(int)
 o getUserData(int)
 o handleEvent(Event)
 o layout()
 o nextPage()
Selects the next page.
 o positionTabsNow()
Returns true if it is appropriate to position tabs.
 o previousPage()
Selects the previous page.
 o reshape(int, int, int, int)
 o resizeChildren()
Resizes the tab and page child windows according to the given height for the tab window.
 o setFont(Font)
 o setPanel(int, Panel)
 o setSelected(int)
Sets the currently selected item and updates the control accordingly.
 o setTabSize(int, int)
 o setText(int, String)
 o setUserData(int, Object)

Constructors

 o AWTTabControl
  public AWTTabControl()

Methods

 o getCount
  public int getCount()
 o getPanels
  public synchronized Panel[] getPanels()
Returns:
An array containing all of the panels in the tab control. The array contains no space and thus the index of a given panel may not match the id of the panel, although the order of panels in the array is consistant with the id.
 o getSelected
  public int getSelected()
 o setSelected
  public void setSelected(int id)
Sets the currently selected item and updates the control accordingly.
Parameters:
id - The id of the item to be selected.
 o getTabSize
  public synchronized Dimension getTabSize()
 o setTabSize
  public synchronized void setTabSize(int width,
                                      int height)
 o getPanel
  public synchronized Panel getPanel(int id)
 o setPanel
  public synchronized void setPanel(int id,
                                    Panel panel)
 o getText
  public synchronized String getText(int id)
 o setText
  public synchronized void setText(int id,
                                   String text)
 o getUserData
  public synchronized Object getUserData(int id)
 o setUserData
  public synchronized void setUserData(int id,
                                       Object userData)
 o add
  public synchronized void add(int id,
                               String text,
                               Object userData)
 o delete
  public synchronized boolean delete(int id)
 o deleteAll
  public synchronized boolean deleteAll()
 o nextPage
  public void nextPage()
Selects the next page.
 o previousPage
  public void previousPage()
Selects the previous page.
 o handleEvent
  public boolean handleEvent(Event e)
Overrides:
handleEvent in class Component
 o layout
  public synchronized void layout()
Overrides:
layout in class Container
 o reshape
  public synchronized void reshape(int x,
                                   int y,
                                   int width,
                                   int height)
Overrides:
reshape in class Component
 o setFont
  public synchronized void setFont(Font f)
Overrides:
setFont in class Component
 o getItem
  protected TabItem getItem(int id)
 o doSetSelected
  protected synchronized void doSetSelected(int id,
                                            boolean fireEvent)
 o positionTabsNow
  protected boolean positionTabsNow()
Returns true if it is appropriate to position tabs.
 o getTabItems
  protected synchronized TabItem[] getTabItems()
Used by the child windows to access the tab items.
 o resizeChildren
  protected synchronized void resizeChildren()
Resizes the tab and page child windows according to the given height for the tab window.

All Packages  Class Hierarchy  This Package  Previous  Next  Index