Sony Addon SDK
public class

WidgetContainer

This project is no longer being supported and will not get any further updates.
extends java.lang.Object
  1. java.lang.Object
  2. com.sonyericsson.extras.liveware.extension.util.registration.WidgetContainer

Class Overview

The widget container describes a host application display's widget support. The information is retrieved from the Registration.Widget table.

Summary

Public Constructors
WidgetContainer(long id, int cellWidth, int cellHeight, int maxWidth, int maxHeight, int accessoryStates, java.lang.String type)

Create a widget container object.

Public Methods
long getId()

The ID of the widget.

int getCellWidth()

The width of a cell in pixels.

int getCellHeight()

The height of a cell in pixels.

int getMaxWidth()

The maximum width of a widget in pixels.

int getMaxHeight()

The maximum height of a widget in pixels.

int getAccessoryStates()

The states the accessory can enter.

java.lang.String getType()

The states the accessory can enter.

Public Constructors

public WidgetContainer(long id, int cellWidth, int cellHeight, int maxWidth, int maxHeight, int accessoryStates, java.lang.String type)

Create a widget container object.

Parameters
id
cellWidth
cellHeight
maxWidth
maxHeight
accessoryStates
type

Public Methods

public long getId()

The ID of the widget. Is populated from the _ID field of the Registration.Widget table.

Returns

The ID.

public int getCellWidth()

The width of a cell in pixels. Is populated from the CELL_WIDTH field.

Returns

The cell width.

public int getCellHeight()

The height of a cell in pixels. Is populated from the CELL_HEIGHT field.

Returns

The cell height.

public int getMaxWidth()

The maximum width of a widget in pixels. Is populated from the MAX_WIDTH field.

Returns

The maximum width.

public int getMaxHeight()

The maximum height of a widget in pixels. Is populated from the MAX_HEIGHT field.

Returns

The maximum height.

public int getAccessoryStates()

The states the accessory can enter. Is populated from the ACCESSORY_STATE field

Returns

the mAccessoryState

public java.lang.String getType()

The states the accessory can enter. Is populated from the TYPE field

Returns

the mType