Interface TabTraversable

Description

In BBj 4.00 and higher, a BBjControl implements the TabTraversable interface if keyboard navigation can focus the control.

Subinterfaces

None.

Implementing Classes

BBjBarChart, BBjButton, BBjCEdit, BBjChart, BBjCheckBox, BBjChildWindow, BBjColorChooser, BBjCommonChart, BBjDataAwareGrid, BBjDataBoundGrid, BBjEditBox, BBjEditBoxSpinner, BBjFileChooser, BBjFontChooser, BBjGenericChart, BBjGrid, BBjHtmlView, BBjInputD, BBjInputDSpinner, BBjInputE, BBjInputESpinner, BBjInputN, BBjInputNSpinner, BBjInputT, BBjInputTSpinner, BBjLineChart, BBjListBox, BBjListButton, BBjListEdit, BBjMenuButton, BBjNavigator, BBjPieChart, BBjRadioButton, BBjScrollBar, BBjSlider, BBjStandardGrid, BBjTabCtrl, BBjToolButton, BBjTree, BBjWebComponent, BBjWrappedJComponent

Methods of TabTraversable

Return Value Method
boolean isTabTraversable()
void setTabTraversable(boolean trav)

Example

rem 'Interface TabTraversable

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(100,100,200,225,"TabTraversable",$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
button! = window!.addButton(101,25,25,150,25,"Button",$$)
button!.setCallback(button!.ON_BUTTON_PUSH,"TabTraversable")
window!.addEditBox(102,25,75,150,25,"Edit Box",$$)
checkbox! = window!.addCheckBox(103,25,125,150,25,"CheckBox",$0004$)
checkbox!.setCallback(checkbox!.ON_CHECK_ON,"TabTraversable")
checkbox!.setCallback(checkbox!.ON_CHECK_OFF,"TabTraversable")
ok! = window!.addButton(1,25,175,50,25,"OK",$$)
ok!.setCallback(ok!.ON_BUTTON_PUSH,"TabTraversable")
cancel! = window!.addButton(2,100,175,75,25,"Cancel",$$)
cancel!.setCallback(cancel!.ON_BUTTON_PUSH,"TabTraversable")
process_events

TabTraversable:
    event! = sysgui!.getLastEvent()
    control! = event!.getControl()
    control!.setTabTraversable(!control!.isTabTraversable())
    tabTraversable$ = iff(control!.isTabTraversable(),"true","false")
    control!.setToolTipText("isTabTraversable? "+tabTraversable$)
    print control!," setTabTraversable ",tabTraversable$
return

eoj:
release

See Also

BBjAPI

BBjSysGui

Interface Focusable

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.