Class jrad.util.TabbingFrame
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jrad.util.TabbingFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----jrad.util.TabbingFrame

public class TabbingFrame
extends Frame
A frame that supports tabbing between its components. If a specific tab order is not specified, the Z order is used. Note that the Z order may vary from platform to platform, so it is recommended that a specific tab order be set. Under Windows 95 and NT, the panel also makes TextFields post LOST_FOCUS and GOT_FOCUS events, since the AWT 1.0.2 does not post these events. If tool tips should be supported only within a portion of the Frame or in an Applet, use the TabbingPanel class instead.

Variable Index

 o activeComponent
The active component.
 o tabOrder
The order with which to tab between components.

Constructor Index

 o TabbingFrame()
Constructs a new TabbingFrame.
 o TabbingFrame(String)
Constructs a new TabbingFrame with a title.

Method Index

 o getActiveComponent()
Returns the active component.
 o getTabComponent(int)
Returns the component located at the specified index within the tab order.
 o getTabComponentCount()
Returns the number of components to tab between.
 o getTabComponentIndex(Component)
Returns the index of the component within the tab order.
 o getTabOrder()
Returns the order with which to tab between components.
 o handleEvent(Event)
Detect a tab or shift-tab keyboard event and attempt to detect when a component is selected via the mouse.
 o isComponentAvailable(Component)
Returns true if the component may be active component.
 o setActiveComponent(Component)
Sets the active component.
 o setTabOrder(Component[])
Sets the order with which to tab between components.
 o tabBackward()
Handles tabbing to the previous component.
 o tabForward()
Handles tabbing to the next component.

Variables

 o activeComponent
  protected Component activeComponent
The active component.
 o tabOrder
  protected Component tabOrder[]
The order with which to tab between components.

Constructors

 o TabbingFrame
  public TabbingFrame()
Constructs a new TabbingFrame.
 o TabbingFrame
  public TabbingFrame(String title)
Constructs a new TabbingFrame with a title.
Parameters:
title - the Frame's title

Methods

 o handleEvent
  public boolean handleEvent(Event event)
Detect a tab or shift-tab keyboard event and attempt to detect when a component is selected via the mouse.
Overrides:
handleEvent in class Component
 o getTabOrder
  public Component[] getTabOrder()
Returns the order with which to tab between components.
 o setTabOrder
  public void setTabOrder(Component components[])
Sets the order with which to tab between components.
 o getActiveComponent
  public Component getActiveComponent()
Returns the active component.
 o setActiveComponent
  public void setActiveComponent(Component c)
Sets the active component.
 o tabForward
  public synchronized void tabForward()
Handles tabbing to the next component.
 o tabBackward
  public synchronized void tabBackward()
Handles tabbing to the previous component.
 o getTabComponentCount
  protected int getTabComponentCount()
Returns the number of components to tab between.
 o isComponentAvailable
  protected boolean isComponentAvailable(Component c)
Returns true if the component may be active component.
 o getTabComponent
  protected Component getTabComponent(int index)
Returns the component located at the specified index within the tab order.
 o getTabComponentIndex
  protected int getTabComponentIndex(Component c)
Returns the index of the component within the tab order. Returns -1 if the component is not within the tab order.

All Packages  Class Hierarchy  This Package  Previous  Next  Index