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.
-
activeComponent
- The active component.
-
tabOrder
- The order with which to tab between components.
-
TabbingFrame()
- Constructs a new TabbingFrame.
-
TabbingFrame(String)
- Constructs a new TabbingFrame with a title.
-
getActiveComponent()
- Returns the active component.
-
getTabComponent(int)
- Returns the component located at the specified index within the tab order.
-
getTabComponentCount()
- Returns the number of components to tab between.
-
getTabComponentIndex(Component)
- Returns the index of the component within the tab order.
-
getTabOrder()
- Returns the order with which to tab between components.
-
handleEvent(Event)
- Detect a tab or shift-tab keyboard event and attempt to detect
when a component is selected via the mouse.
-
isComponentAvailable(Component)
- Returns true if the component may be active component.
-
setActiveComponent(Component)
- Sets the active component.
-
setTabOrder(Component[])
- Sets the order with which to tab between components.
-
tabBackward()
- Handles tabbing to the previous component.
-
tabForward()
- Handles tabbing to the next component.
activeComponent
protected Component activeComponent
- The active component.
tabOrder
protected Component tabOrder[]
- The order with which to tab between components.
TabbingFrame
public TabbingFrame()
- Constructs a new TabbingFrame.
TabbingFrame
public TabbingFrame(String title)
- Constructs a new TabbingFrame with a title.
- Parameters:
- title - the Frame's title
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
getTabOrder
public Component[] getTabOrder()
- Returns the order with which to tab between components.
setTabOrder
public void setTabOrder(Component components[])
- Sets the order with which to tab between components.
getActiveComponent
public Component getActiveComponent()
- Returns the active component.
setActiveComponent
public void setActiveComponent(Component c)
- Sets the active component.
tabForward
public synchronized void tabForward()
- Handles tabbing to the next component.
tabBackward
public synchronized void tabBackward()
- Handles tabbing to the previous component.
getTabComponentCount
protected int getTabComponentCount()
- Returns the number of components to tab between.
isComponentAvailable
protected boolean isComponentAvailable(Component c)
- Returns true if the component may be active component.
getTabComponent
protected Component getTabComponent(int index)
- Returns the component located at the specified index within the tab order.
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