AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.Component Interface Reference
Inheritance diagram for com.google.appinventor.components.runtime.Component:
com.google.appinventor.components.runtime.ActivityStarter com.google.appinventor.components.runtime.AndroidNonvisibleComponent com.google.appinventor.components.runtime.BarcodeScanner com.google.appinventor.components.runtime.BluetoothConnectionBase com.google.appinventor.components.runtime.Camcorder com.google.appinventor.components.runtime.Camera com.google.appinventor.components.runtime.Clock com.google.appinventor.components.runtime.CloudDB com.google.appinventor.components.runtime.File com.google.appinventor.components.runtime.FirebaseDB com.google.appinventor.components.runtime.Form com.google.appinventor.components.runtime.FusiontablesControl com.google.appinventor.components.runtime.GameClient com.google.appinventor.components.runtime.HVArrangement com.google.appinventor.components.runtime.LegoMindstormsEv3Base com.google.appinventor.components.runtime.LegoMindstormsNxtBase com.google.appinventor.components.runtime.LocationSensor com.google.appinventor.components.runtime.MediaStore com.google.appinventor.components.runtime.Navigation com.google.appinventor.components.runtime.Notifier com.google.appinventor.components.runtime.Pedometer com.google.appinventor.components.runtime.PhoneCall com.google.appinventor.components.runtime.PhoneStatus com.google.appinventor.components.runtime.Player com.google.appinventor.components.runtime.SensorComponent com.google.appinventor.components.runtime.Serial com.google.appinventor.components.runtime.Sound com.google.appinventor.components.runtime.SoundRecorder com.google.appinventor.components.runtime.SpeechRecognizer com.google.appinventor.components.runtime.TableArrangement com.google.appinventor.components.runtime.Texting com.google.appinventor.components.runtime.TextToSpeech com.google.appinventor.components.runtime.TinyDB com.google.appinventor.components.runtime.TinyWebDB com.google.appinventor.components.runtime.Twitter com.google.appinventor.components.runtime.util.MapFactory.MapFeature com.google.appinventor.components.runtime.VisibleComponent com.google.appinventor.components.runtime.Voting com.google.appinventor.components.runtime.Web

Public Member Functions

HandlesEventDispatching getDispatchDelegate ()
 

Static Public Attributes

static final String ASSET_DIRECTORY = "component"
 
static final int ALIGNMENT_NORMAL = 0
 
static final int ALIGNMENT_CENTER = 1
 
static final int ALIGNMENT_OPPOSITE = 2
 
static final int ACCELEROMETER_SENSITIVITY_WEAK = 1
 
static final int ACCELEROMETER_SENSITIVITY_MODERATE = 2
 
static final int ACCELEROMETER_SENSITIVITY_STRONG = 3
 
static final int BUTTON_SHAPE_DEFAULT = 0
 
static final int BUTTON_SHAPE_ROUNDED = 1
 
static final int BUTTON_SHAPE_RECT = 2
 
static final int BUTTON_SHAPE_OVAL = 3
 
static final int COLOR_NONE = 0x00FFFFFF
 
static final int COLOR_BLACK = 0xFF000000
 
static final int COLOR_BLUE = 0xFF0000FF
 
static final int COLOR_CYAN = 0xFF00FFFF
 
static final int COLOR_DKGRAY = 0xFF444444
 
static final int COLOR_GRAY = 0xFF888888
 
static final int COLOR_GREEN = 0xFF00FF00
 
static final int COLOR_LTGRAY = 0xFFCCCCCC
 
static final int COLOR_MAGENTA = 0xFFFF00FF
 
static final int COLOR_ORANGE = 0xFFFFC800
 
static final int COLOR_PINK = 0xFFFFAFAF
 
static final int COLOR_RED = 0xFFFF0000
 
static final int COLOR_WHITE = 0xFFFFFFFF
 
static final int COLOR_YELLOW = 0xFFFFFF00
 
static final int COLOR_DEFAULT = 0x00000000
 
static final String DEFAULT_VALUE_COLOR_NONE = "&H00FFFFFF"
 
static final String DEFAULT_VALUE_COLOR_BLACK = "&HFF000000"
 
static final String DEFAULT_VALUE_COLOR_BLUE = "&HFF0000FF"
 
static final String DEFAULT_VALUE_COLOR_CYAN = "&HFF00FFFF"
 
static final String DEFAULT_VALUE_COLOR_DKGRAY = "&HFF444444"
 
static final String DEFAULT_VALUE_COLOR_GRAY = "&HFF888888"
 
static final String DEFAULT_VALUE_COLOR_GREEN = "&HFF00FF00"
 
static final String DEFAULT_VALUE_COLOR_LTGRAY = "&HFFCCCCCC"
 
static final String DEFAULT_VALUE_COLOR_MAGENTA = "&HFFFF00FF"
 
static final String DEFAULT_VALUE_COLOR_ORANGE = "&HFFFFC800"
 
static final String DEFAULT_VALUE_COLOR_PINK = "&HFFFFAFAF"
 
static final String DEFAULT_VALUE_COLOR_RED = "&HFFFF0000"
 
static final String DEFAULT_VALUE_COLOR_WHITE = "&HFFFFFFFF"
 
static final String DEFAULT_VALUE_COLOR_YELLOW = "&HFFFFFF00"
 
static final String DEFAULT_VALUE_COLOR_DEFAULT = "&H00000000"
 
static final float FONT_DEFAULT_SIZE = 14
 
static final int LAYOUT_ORIENTATION_HORIZONTAL = ComponentConstants.LAYOUT_ORIENTATION_HORIZONTAL
 
static final int LAYOUT_ORIENTATION_VERTICAL = ComponentConstants.LAYOUT_ORIENTATION_VERTICAL
 
static final int SCALING_SCALE_PROPORTIONALLY = 0
 
static final int SCALING_SCALE_TO_FIT = 1
 
static final int TYPEFACE_DEFAULT = 0
 
static final int TYPEFACE_SANSSERIF = 1
 
static final int TYPEFACE_SERIF = 2
 
static final int TYPEFACE_MONOSPACE = 3
 
static final int LENGTH_PREFERRED = -1
 
static final int LENGTH_FILL_PARENT = -2
 
static final int LENGTH_UNKNOWN = -3
 
static final int LENGTH_PERCENT_TAG = -1000
 
static final int TOAST_LENGTH_SHORT = 0
 
static final int TOAST_LENGTH_LONG = 1
 
static final int DIRECTION_NORTH = 1
 
static final int DIRECTION_NORTHEAST = 2
 
static final int DIRECTION_EAST = 3
 
static final int DIRECTION_SOUTHEAST = 4
 
static final int DIRECTION_SOUTH = -1
 
static final int DIRECTION_SOUTHWEST = -2
 
static final int DIRECTION_WEST = -3
 
static final int DIRECTION_NORTHWEST = -4
 
static final int DIRECTION_NONE = 0
 
static final int DIRECTION_MIN = -4
 
static final int DIRECTION_MAX = 4
 
static float SLIDER_MIN_VALUE = 10
 
static float SLIDER_MAX_VALUE = 50
 
static float SLIDER_THUMB_VALUE = (SLIDER_MIN_VALUE + SLIDER_MAX_VALUE) / 2.0f
 
static final String DEFAULT_VALUE_TEXT_TO_SPEECH_COUNTRY = ""
 
static final String DEFAULT_VALUE_TEXT_TO_SPEECH_LANGUAGE = ""
 

Detailed Description

Interface for Simple components.

Definition at line 17 of file Component.java.

Member Function Documentation

◆ getDispatchDelegate()

Member Data Documentation

◆ ACCELEROMETER_SENSITIVITY_MODERATE

final int com.google.appinventor.components.runtime.Component.ACCELEROMETER_SENSITIVITY_MODERATE = 2
static

Definition at line 40 of file Component.java.

◆ ACCELEROMETER_SENSITIVITY_STRONG

final int com.google.appinventor.components.runtime.Component.ACCELEROMETER_SENSITIVITY_STRONG = 3
static

Definition at line 41 of file Component.java.

◆ ACCELEROMETER_SENSITIVITY_WEAK

final int com.google.appinventor.components.runtime.Component.ACCELEROMETER_SENSITIVITY_WEAK = 1
static

Definition at line 39 of file Component.java.

◆ ALIGNMENT_CENTER

final int com.google.appinventor.components.runtime.Component.ALIGNMENT_CENTER = 1
static

Definition at line 33 of file Component.java.

◆ ALIGNMENT_NORMAL

final int com.google.appinventor.components.runtime.Component.ALIGNMENT_NORMAL = 0
static

Definition at line 32 of file Component.java.

◆ ALIGNMENT_OPPOSITE

final int com.google.appinventor.components.runtime.Component.ALIGNMENT_OPPOSITE = 2
static

Definition at line 34 of file Component.java.

◆ ASSET_DIRECTORY

final String com.google.appinventor.components.runtime.Component.ASSET_DIRECTORY = "component"
static

Definition at line 27 of file Component.java.

◆ BUTTON_SHAPE_DEFAULT

final int com.google.appinventor.components.runtime.Component.BUTTON_SHAPE_DEFAULT = 0
static

Definition at line 46 of file Component.java.

◆ BUTTON_SHAPE_OVAL

final int com.google.appinventor.components.runtime.Component.BUTTON_SHAPE_OVAL = 3
static

Definition at line 49 of file Component.java.

◆ BUTTON_SHAPE_RECT

final int com.google.appinventor.components.runtime.Component.BUTTON_SHAPE_RECT = 2
static

Definition at line 48 of file Component.java.

◆ BUTTON_SHAPE_ROUNDED

final int com.google.appinventor.components.runtime.Component.BUTTON_SHAPE_ROUNDED = 1
static

Definition at line 47 of file Component.java.

◆ COLOR_BLACK

final int com.google.appinventor.components.runtime.Component.COLOR_BLACK = 0xFF000000
static

Definition at line 55 of file Component.java.

◆ COLOR_BLUE

final int com.google.appinventor.components.runtime.Component.COLOR_BLUE = 0xFF0000FF
static

Definition at line 56 of file Component.java.

◆ COLOR_CYAN

final int com.google.appinventor.components.runtime.Component.COLOR_CYAN = 0xFF00FFFF
static

Definition at line 57 of file Component.java.

◆ COLOR_DEFAULT

final int com.google.appinventor.components.runtime.Component.COLOR_DEFAULT = 0x00000000
static

Definition at line 68 of file Component.java.

◆ COLOR_DKGRAY

final int com.google.appinventor.components.runtime.Component.COLOR_DKGRAY = 0xFF444444
static

Definition at line 58 of file Component.java.

◆ COLOR_GRAY

final int com.google.appinventor.components.runtime.Component.COLOR_GRAY = 0xFF888888
static

Definition at line 59 of file Component.java.

◆ COLOR_GREEN

final int com.google.appinventor.components.runtime.Component.COLOR_GREEN = 0xFF00FF00
static

Definition at line 60 of file Component.java.

◆ COLOR_LTGRAY

final int com.google.appinventor.components.runtime.Component.COLOR_LTGRAY = 0xFFCCCCCC
static

Definition at line 61 of file Component.java.

◆ COLOR_MAGENTA

final int com.google.appinventor.components.runtime.Component.COLOR_MAGENTA = 0xFFFF00FF
static

Definition at line 62 of file Component.java.

◆ COLOR_NONE

final int com.google.appinventor.components.runtime.Component.COLOR_NONE = 0x00FFFFFF
static

Definition at line 54 of file Component.java.

◆ COLOR_ORANGE

final int com.google.appinventor.components.runtime.Component.COLOR_ORANGE = 0xFFFFC800
static

Definition at line 63 of file Component.java.

◆ COLOR_PINK

final int com.google.appinventor.components.runtime.Component.COLOR_PINK = 0xFFFFAFAF
static

Definition at line 64 of file Component.java.

◆ COLOR_RED

final int com.google.appinventor.components.runtime.Component.COLOR_RED = 0xFFFF0000
static

Definition at line 65 of file Component.java.

◆ COLOR_WHITE

final int com.google.appinventor.components.runtime.Component.COLOR_WHITE = 0xFFFFFFFF
static

Definition at line 66 of file Component.java.

◆ COLOR_YELLOW

final int com.google.appinventor.components.runtime.Component.COLOR_YELLOW = 0xFFFFFF00
static

Definition at line 67 of file Component.java.

◆ DEFAULT_VALUE_COLOR_BLACK

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_COLOR_BLACK = "&HFF000000"
static

Definition at line 71 of file Component.java.

◆ DEFAULT_VALUE_COLOR_BLUE

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_COLOR_BLUE = "&HFF0000FF"
static

Definition at line 72 of file Component.java.

◆ DEFAULT_VALUE_COLOR_CYAN

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_COLOR_CYAN = "&HFF00FFFF"
static

Definition at line 73 of file Component.java.

◆ DEFAULT_VALUE_COLOR_DEFAULT

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_COLOR_DEFAULT = "&H00000000"
static

Definition at line 84 of file Component.java.

◆ DEFAULT_VALUE_COLOR_DKGRAY

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_COLOR_DKGRAY = "&HFF444444"
static

Definition at line 74 of file Component.java.

◆ DEFAULT_VALUE_COLOR_GRAY

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_COLOR_GRAY = "&HFF888888"
static

Definition at line 75 of file Component.java.

◆ DEFAULT_VALUE_COLOR_GREEN

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_COLOR_GREEN = "&HFF00FF00"
static

Definition at line 76 of file Component.java.

◆ DEFAULT_VALUE_COLOR_LTGRAY

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_COLOR_LTGRAY = "&HFFCCCCCC"
static

Definition at line 77 of file Component.java.

◆ DEFAULT_VALUE_COLOR_MAGENTA

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_COLOR_MAGENTA = "&HFFFF00FF"
static

Definition at line 78 of file Component.java.

◆ DEFAULT_VALUE_COLOR_NONE

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_COLOR_NONE = "&H00FFFFFF"
static

Definition at line 70 of file Component.java.

◆ DEFAULT_VALUE_COLOR_ORANGE

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_COLOR_ORANGE = "&HFFFFC800"
static

Definition at line 79 of file Component.java.

◆ DEFAULT_VALUE_COLOR_PINK

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_COLOR_PINK = "&HFFFFAFAF"
static

Definition at line 80 of file Component.java.

◆ DEFAULT_VALUE_COLOR_RED

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_COLOR_RED = "&HFFFF0000"
static

Definition at line 81 of file Component.java.

◆ DEFAULT_VALUE_COLOR_WHITE

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_COLOR_WHITE = "&HFFFFFFFF"
static

Definition at line 82 of file Component.java.

◆ DEFAULT_VALUE_COLOR_YELLOW

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_COLOR_YELLOW = "&HFFFFFF00"
static

Definition at line 83 of file Component.java.

◆ DEFAULT_VALUE_TEXT_TO_SPEECH_COUNTRY

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_TEXT_TO_SPEECH_COUNTRY = ""
static

Definition at line 153 of file Component.java.

◆ DEFAULT_VALUE_TEXT_TO_SPEECH_LANGUAGE

final String com.google.appinventor.components.runtime.Component.DEFAULT_VALUE_TEXT_TO_SPEECH_LANGUAGE = ""
static

Definition at line 154 of file Component.java.

◆ DIRECTION_EAST

final int com.google.appinventor.components.runtime.Component.DIRECTION_EAST = 3
static

Definition at line 137 of file Component.java.

◆ DIRECTION_MAX

final int com.google.appinventor.components.runtime.Component.DIRECTION_MAX = 4
static

Definition at line 146 of file Component.java.

◆ DIRECTION_MIN

final int com.google.appinventor.components.runtime.Component.DIRECTION_MIN = -4
static

Definition at line 145 of file Component.java.

◆ DIRECTION_NONE

final int com.google.appinventor.components.runtime.Component.DIRECTION_NONE = 0
static

Definition at line 144 of file Component.java.

◆ DIRECTION_NORTH

final int com.google.appinventor.components.runtime.Component.DIRECTION_NORTH = 1
static

Definition at line 135 of file Component.java.

◆ DIRECTION_NORTHEAST

final int com.google.appinventor.components.runtime.Component.DIRECTION_NORTHEAST = 2
static

Definition at line 136 of file Component.java.

◆ DIRECTION_NORTHWEST

final int com.google.appinventor.components.runtime.Component.DIRECTION_NORTHWEST = -4
static

Definition at line 142 of file Component.java.

◆ DIRECTION_SOUTH

final int com.google.appinventor.components.runtime.Component.DIRECTION_SOUTH = -1
static

Definition at line 139 of file Component.java.

◆ DIRECTION_SOUTHEAST

final int com.google.appinventor.components.runtime.Component.DIRECTION_SOUTHEAST = 4
static

Definition at line 138 of file Component.java.

◆ DIRECTION_SOUTHWEST

final int com.google.appinventor.components.runtime.Component.DIRECTION_SOUTHWEST = -2
static

Definition at line 140 of file Component.java.

◆ DIRECTION_WEST

final int com.google.appinventor.components.runtime.Component.DIRECTION_WEST = -3
static

Definition at line 141 of file Component.java.

◆ FONT_DEFAULT_SIZE

final float com.google.appinventor.components.runtime.Component.FONT_DEFAULT_SIZE = 14
static

Definition at line 89 of file Component.java.

◆ LAYOUT_ORIENTATION_HORIZONTAL

final int com.google.appinventor.components.runtime.Component.LAYOUT_ORIENTATION_HORIZONTAL = ComponentConstants.LAYOUT_ORIENTATION_HORIZONTAL
static

Definition at line 94 of file Component.java.

◆ LAYOUT_ORIENTATION_VERTICAL

final int com.google.appinventor.components.runtime.Component.LAYOUT_ORIENTATION_VERTICAL = ComponentConstants.LAYOUT_ORIENTATION_VERTICAL
static

Definition at line 95 of file Component.java.

◆ LENGTH_FILL_PARENT

final int com.google.appinventor.components.runtime.Component.LENGTH_FILL_PARENT = -2
static

Definition at line 119 of file Component.java.

◆ LENGTH_PERCENT_TAG

final int com.google.appinventor.components.runtime.Component.LENGTH_PERCENT_TAG = -1000
static

Definition at line 123 of file Component.java.

◆ LENGTH_PREFERRED

final int com.google.appinventor.components.runtime.Component.LENGTH_PREFERRED = -1
static

Definition at line 118 of file Component.java.

◆ LENGTH_UNKNOWN

final int com.google.appinventor.components.runtime.Component.LENGTH_UNKNOWN = -3
static

Definition at line 120 of file Component.java.

◆ SCALING_SCALE_PROPORTIONALLY

final int com.google.appinventor.components.runtime.Component.SCALING_SCALE_PROPORTIONALLY = 0
static

Definition at line 100 of file Component.java.

◆ SCALING_SCALE_TO_FIT

final int com.google.appinventor.components.runtime.Component.SCALING_SCALE_TO_FIT = 1
static

Definition at line 101 of file Component.java.

◆ SLIDER_MAX_VALUE

float com.google.appinventor.components.runtime.Component.SLIDER_MAX_VALUE = 50
static

Definition at line 150 of file Component.java.

◆ SLIDER_MIN_VALUE

float com.google.appinventor.components.runtime.Component.SLIDER_MIN_VALUE = 10
static

Definition at line 149 of file Component.java.

◆ SLIDER_THUMB_VALUE

float com.google.appinventor.components.runtime.Component.SLIDER_THUMB_VALUE = (SLIDER_MIN_VALUE + SLIDER_MAX_VALUE) / 2.0f
static

Definition at line 151 of file Component.java.

◆ TOAST_LENGTH_LONG

final int com.google.appinventor.components.runtime.Component.TOAST_LENGTH_LONG = 1
static

Definition at line 129 of file Component.java.

◆ TOAST_LENGTH_SHORT

final int com.google.appinventor.components.runtime.Component.TOAST_LENGTH_SHORT = 0
static

Definition at line 128 of file Component.java.

◆ TYPEFACE_DEFAULT

final int com.google.appinventor.components.runtime.Component.TYPEFACE_DEFAULT = 0
static

Definition at line 106 of file Component.java.

◆ TYPEFACE_MONOSPACE

final int com.google.appinventor.components.runtime.Component.TYPEFACE_MONOSPACE = 3
static

Definition at line 109 of file Component.java.

◆ TYPEFACE_SANSSERIF

final int com.google.appinventor.components.runtime.Component.TYPEFACE_SANSSERIF = 1
static

Definition at line 107 of file Component.java.

◆ TYPEFACE_SERIF

final int com.google.appinventor.components.runtime.Component.TYPEFACE_SERIF = 2
static

Definition at line 108 of file Component.java.


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