BBjWrappedJComponent


Creation Path

BBjAPI > BBjSysGui > BBjWindow > BBjWrappedJComponent

Description

In BBj 7.0 and higher, the BBjWrappedJComponent is a BBjControl. that contains (or 'wraps') a Java JComponent A BBjWrappedJComponent is both a ClientObject and a BBjControl. The methods of the wrapped JComponent can be invoked on the BBjWrappedJComponent and the methods of a BBjControl can also be invoked on the BBjWrappedJComponent

Implemented Interfaces

Focusable, MouseWheelEnabled, TabTraversable

In BBj 12.0 and higher, MouseWheelEnabled

Creation

A BBjWrappedJComponent object is created through the following BBjWindow methods:

Return Value

Method

BBjWrappedJComponent

addWrappedJComponent(int ID, number x,number y, number width, number height, ClientObject component)

Methods of BBjWrappedJComponent

Because a BBjWrappedJComponent is a ClientObject, the methods of the 'wrapped' JComponent can be invoked on the BBjWrappedJComponent. Because a BBjWrappedJComponent is also a BBjControl, the methods of a BBjControl can be invoked on a BBjWrappedJComponent.

Methods of BBjWrappedJComponent implemented for Focusable

Return Value Method
boolean isFocusable()
void setFocusable(boolean focus)

Methods of BBjSlider implemented for MouseWheelEnabled

Return Value Method
int getScrollWheelBehavior()
void setScrollWheelBehavior(int trav)

Methods of BBjWrappedJComponent inherited from BBjControl

Remarks

None.

Constants inherited from BBjControl

Example

See Also

BBjAPI

BBjSysGui

BBjWindow

Focusable

ClientObject Tutorial

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