Class jrad.util.TabbingPanel
All Packages Class Hierarchy This Package Previous Next Index
Class jrad.util.TabbingPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----jrad.util.TabbingPanel
- public class TabbingPanel
- extends Panel
A panel 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 tabbing should be supported
for an entire frame, use the TabbingFrame class instead of adding a
TabbingPanel to a Frame.
-
activeComponent
- The active component.
-
tabOrder
- The order with which to tab between components.
-
TabbingPanel()
-
-
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.
TabbingPanel
public TabbingPanel()
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