AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.ComponentContainer Interface Reference
Inheritance diagram for com.google.appinventor.components.runtime.ComponentContainer:
com.google.appinventor.components.runtime.Canvas com.google.appinventor.components.runtime.Form com.google.appinventor.components.runtime.HVArrangement com.google.appinventor.components.runtime.TableArrangement com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer com.google.appinventor.components.runtime.ReplForm com.google.appinventor.components.runtime.HorizontalArrangement com.google.appinventor.components.runtime.HorizontalScrollArrangement com.google.appinventor.components.runtime.VerticalArrangement com.google.appinventor.components.runtime.VerticalScrollArrangement com.google.appinventor.components.runtime.MapFeatureContainerBase com.google.appinventor.components.runtime.util.MapFactory.MapFeatureCollection com.google.appinventor.components.runtime.FeatureCollection com.google.appinventor.components.runtime.Map com.google.appinventor.components.runtime.FeatureCollection

Public Member Functions

Activity $context ()
 
Form $form ()
 
void $add (AndroidViewComponent component)
 
void setChildWidth (AndroidViewComponent component, int width)
 
void setChildHeight (AndroidViewComponent component, int height)
 
int Width ()
 
int Height ()
 

Detailed Description

Components that can contain other components need to implement this interface.

Definition at line 16 of file ComponentContainer.java.

Member Function Documentation

◆ $add()

void com.google.appinventor.components.runtime.ComponentContainer.$add ( AndroidViewComponent  component)

Adds a component to a container.

After this method is finished executing, the given component's view must have LayoutParams, even if the component cannot be added to the container until later.

Parameters
componentcomponent associated with view

Implemented in com.google.appinventor.components.runtime.Form, com.google.appinventor.components.runtime.Canvas, com.google.appinventor.components.runtime.MapFeatureContainerBase, com.google.appinventor.components.runtime.HVArrangement, and com.google.appinventor.components.runtime.TableArrangement.

◆ $context()

Activity com.google.appinventor.components.runtime.ComponentContainer.$context ( )

◆ $form()

◆ Height()

int com.google.appinventor.components.runtime.ComponentContainer.Height ( )

◆ setChildHeight()

◆ setChildWidth()

◆ Width()

int com.google.appinventor.components.runtime.ComponentContainer.Width ( )

The documentation for this interface was generated from the following file: