Package virtualbreadboard.cdk
Class VBBComponent
java.lang.Object
virtualbreadboard.cdk.VBBComponent
VBBComponent is an object that was retrieved using VBBMicroUNO.getComponent(string Id);
The
Returns an Image object that can then be painted on the screen.
The url argument must specify an absolute
URL
. The name
argument is a specifier that is relative to the url argument.
This method always returns immediately, whether or not the image exists. When this applet attempts to draw the image on the screen, the data will be loaded. The graphics primitives that draw the image will incrementally paint on the screen.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturns the first widget of controller Class.returns a widget controlled by this object by it's unique identifier.Widget[]
returns and array of Widgets which are controlled by this component.
-
Constructor Details
-
VBBComponent
public VBBComponent()
-
-
Method Details
-
getWidgets
returns and array of Widgets which are controlled by this component. Allows the available widgets to be inspected.- Returns:
- array for Widgets
-
getWidget
returns a widget controlled by this object by it's unique identifier. Id's are assigned to widgets at design time in the CDK.- Parameters:
Id
- the unique Id assigned by the ID property of the widget- Returns:
-
getWidget
returns the first widget of controller Class. Most often components contain only one widget of a specific type hence this method can be quickly used to find it without knowing it's name or enumerating and inspecting the available widgetsButtonWidget button = (ButtonWidget)component.getWidget(ButtonWidget.class);
- Parameters:
classFilter
- the class definition to search for- Returns:
- a Widget
-