Class VBBComponent

java.lang.Object
virtualbreadboard.cdk.VBBComponent

public class VBBComponent extends Object
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 Details

    • VBBComponent

      public VBBComponent()
  • Method Details

    • getWidgets

      public Widget[] getWidgets()
      returns and array of Widgets which are controlled by this component. Allows the available widgets to be inspected.
      Returns:
      array for Widgets
    • getWidget

      public Widget getWidget(String Id)
      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

      public Widget getWidget(Class classFilter)
      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 widgets

      ButtonWidget button = (ButtonWidget)component.getWidget(ButtonWidget.class);

      Parameters:
      classFilter - the class definition to search for
      Returns:
      a Widget