net.rim.device.api.ui.component.table
Class TemplateRowProperties

java.lang.Object
  extended by net.rim.device.api.ui.component.table.TemplateRowProperties

public class TemplateRowProperties
extends Object

Container class of row properties.

Since:
BlackBerry API 6.0.0

Field Summary
static int PERCENTAGE_HEIGHT
          a style indicating that the row heights are specified as percentages of screen height.
static int PIXEL_HEIGHT
          a style indicating that the row heights are specified in pixels.
 
Constructor Summary
TemplateRowProperties(int height)
          Creates a row property with the specified height and the TemplateRowProperties.PIXEL_HEIGHT style.
TemplateRowProperties(int height, int style)
          Creates a row property with the specified height and style.
 
Method Summary
 int getHeight()
          Retrieves the height of this row.
 int getHeightStyle()
          Retrieves the height style of this row - one of TemplateRowProperties.PIXEL_HEIGHT or TemplateRowProperties.PERCENTAGE_HEIGHT.
 void setHeight(int height)
           
 void setHeightStyle(int height, int style)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Field Detail

PIXEL_HEIGHT

public static final int PIXEL_HEIGHT
a style indicating that the row heights are specified in pixels.

See Also:
Constant Field Values
Since:
BlackBerry API 6.0.0

PERCENTAGE_HEIGHT

public static final int PERCENTAGE_HEIGHT
a style indicating that the row heights are specified as percentages of screen height.

See Also:
Constant Field Values
Since:
BlackBerry API 6.0.0


Constructor Detail

TemplateRowProperties

public TemplateRowProperties(int height)
Creates a row property with the specified height and the TemplateRowProperties.PIXEL_HEIGHT style.

Parameters:
height - Preferred height of the row.
Since:
BlackBerry API 6.0.0

TemplateRowProperties

public TemplateRowProperties(int height,
                             int style)
Creates a row property with the specified height and style.

Parameters:
height - Height of the row.
style - One of TemplateRowProperties.PIXEL_HEIGHT or TemplateRowProperties.PERCENTAGE_HEIGHT.
Since:
BlackBerry API 6.0.0


Method Detail

getHeight

public int getHeight()
Retrieves the height of this row.

Returns:
Height of this row.
Since:
BlackBerry API 6.0.0

getHeightStyle

public int getHeightStyle()
Retrieves the height style of this row - one of TemplateRowProperties.PIXEL_HEIGHT or TemplateRowProperties.PERCENTAGE_HEIGHT.

Returns:
Height style of this row.
Since:
BlackBerry API 6.0.0

setHeight

public void setHeight(int height)
Parameters:
height - the desired row height
Since:
BlackBerry API 6.0.0

setHeightStyle

public void setHeightStyle(int height,
                           int style)
Parameters:
height - the desired row height
style - One of TemplateRowProperties.PIXEL_HEIGHT or TemplateRowProperties.PERCENTAGE_HEIGHT.
Since:
BlackBerry API 6.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal