AI2 Component
(Version nb184)
|
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 () |
Components that can contain other components need to implement this interface.
Definition at line 16 of file ComponentContainer.java.
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.
component | component 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.
Activity com.google.appinventor.components.runtime.ComponentContainer.$context | ( | ) |
Returns the activity context (which can be retrieved from the root container - aka the form).
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.
Form com.google.appinventor.components.runtime.ComponentContainer.$form | ( | ) |
Returns the form that ultimately contains this container.
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.
int com.google.appinventor.components.runtime.ComponentContainer.Height | ( | ) |
Implemented in com.google.appinventor.components.runtime.Form.
void com.google.appinventor.components.runtime.ComponentContainer.setChildHeight | ( | AndroidViewComponent | component, |
int | height | ||
) |
Implemented in com.google.appinventor.components.runtime.Form, com.google.appinventor.components.runtime.HVArrangement, com.google.appinventor.components.runtime.Canvas, com.google.appinventor.components.runtime.MapFeatureContainerBase, and com.google.appinventor.components.runtime.TableArrangement.
void com.google.appinventor.components.runtime.ComponentContainer.setChildWidth | ( | AndroidViewComponent | component, |
int | width | ||
) |
Implemented in com.google.appinventor.components.runtime.Form, com.google.appinventor.components.runtime.HVArrangement, com.google.appinventor.components.runtime.Canvas, com.google.appinventor.components.runtime.MapFeatureContainerBase, and com.google.appinventor.components.runtime.TableArrangement.
int com.google.appinventor.components.runtime.ComponentContainer.Width | ( | ) |
Implemented in com.google.appinventor.components.runtime.Form.