public abstract class AndroidViewComponent extends VisibleComponent
Provides implementations for standard properties and events.
Modifier and Type | Field and Description |
---|---|
protected ComponentContainer |
container |
ACCELEROMETER_SENSITIVITY_MODERATE, ACCELEROMETER_SENSITIVITY_STRONG, ACCELEROMETER_SENSITIVITY_WEAK, ALIGNMENT_CENTER, ALIGNMENT_NORMAL, ALIGNMENT_OPPOSITE, ASSET_DIRECTORY, BUTTON_SHAPE_DEFAULT, BUTTON_SHAPE_OVAL, BUTTON_SHAPE_RECT, BUTTON_SHAPE_ROUNDED, COLOR_BLACK, COLOR_BLUE, COLOR_CYAN, COLOR_DEFAULT, COLOR_DKGRAY, COLOR_GRAY, COLOR_GREEN, COLOR_LTGRAY, COLOR_MAGENTA, COLOR_NONE, COLOR_ORANGE, COLOR_PINK, COLOR_RED, COLOR_WHITE, COLOR_YELLOW, DEFAULT_VALUE_COLOR_BLACK, DEFAULT_VALUE_COLOR_BLUE, DEFAULT_VALUE_COLOR_CYAN, DEFAULT_VALUE_COLOR_DEFAULT, DEFAULT_VALUE_COLOR_DKGRAY, DEFAULT_VALUE_COLOR_GRAY, DEFAULT_VALUE_COLOR_GREEN, DEFAULT_VALUE_COLOR_LTGRAY, DEFAULT_VALUE_COLOR_MAGENTA, DEFAULT_VALUE_COLOR_NONE, DEFAULT_VALUE_COLOR_ORANGE, DEFAULT_VALUE_COLOR_PINK, DEFAULT_VALUE_COLOR_RED, DEFAULT_VALUE_COLOR_WHITE, DEFAULT_VALUE_COLOR_YELLOW, DIRECTION_EAST, DIRECTION_MAX, DIRECTION_MIN, DIRECTION_NONE, DIRECTION_NORTH, DIRECTION_NORTHEAST, DIRECTION_NORTHWEST, DIRECTION_SOUTH, DIRECTION_SOUTHEAST, DIRECTION_SOUTHWEST, DIRECTION_WEST, FONT_DEFAULT_SIZE, LAYOUT_ORIENTATION_HORIZONTAL, LAYOUT_ORIENTATION_VERTICAL, LENGTH_FILL_PARENT, LENGTH_PREFERRED, LENGTH_UNKNOWN, SLIDER_MAX_VALUE, SLIDER_MIN_VALUE, SLIDER_THUMB_VALUE, TOAST_LENGTH_LONG, TOAST_LENGTH_SHORT, TYPEFACE_DEFAULT, TYPEFACE_MONOSPACE, TYPEFACE_SANSSERIF, TYPEFACE_SERIF
Modifier | Constructor and Description |
---|---|
protected |
AndroidViewComponent(ComponentContainer container)
Creates a new AndroidViewComponent.
|
Modifier and Type | Method and Description |
---|---|
int |
Column()
Column property getter method.
|
void |
Column(int column)
Column property setter method.
|
void |
CopyHeight(AndroidViewComponent sourceComponent)
Copy the height from another component to this one.
|
void |
CopyWidth(AndroidViewComponent sourceComponent)
Copy the width from another component to this one.
|
HandlesEventDispatching |
getDispatchDelegate()
Returns the dispatch delegate that is responsible for dispatching events
for this component.
|
abstract android.view.View |
getView()
Returns the
View that is displayed in the UI. |
int |
Height()
Returns the component's vertical height, measured in pixels.
|
void |
Height(int height)
Specifies the component's vertical height, measured in pixels.
|
int |
Row()
Row property getter method.
|
void |
Row(int row)
Row property setter method.
|
boolean |
Visible()
Returns true iff the component is visible.
|
void |
Visible(java.lang.Boolean visibility)
Specifies whether the component should be visible on the screen.
|
int |
Width()
Returns the component's horizontal width, measured in pixels.
|
void |
Width(int width)
Specifies the component's horizontal width, measured in pixels.
|
protected final ComponentContainer container
protected AndroidViewComponent(ComponentContainer container)
container
- container, component will be placed inpublic abstract android.view.View getView()
View
that is displayed in the UI.public boolean Visible()
public void Visible(java.lang.Boolean visibility)
visibility
- desired statepublic int Width()
Width
in class VisibleComponent
public void Width(int width)
Width
in class VisibleComponent
width
- in pixelspublic void CopyWidth(AndroidViewComponent sourceComponent)
sourceComponent
- the component to copy frompublic int Height()
Height
in class VisibleComponent
public void Height(int height)
Height
in class VisibleComponent
height
- in pixelspublic void CopyHeight(AndroidViewComponent sourceComponent)
sourceComponent
- the component to copy frompublic int Column()
public void Column(int column)
column
- column property used by the table arrangementpublic int Row()
public void Row(int row)
row
- row property used by the table arrangementpublic HandlesEventDispatching getDispatchDelegate()
Component