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

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

public class TemplateColumnProperties
extends Object

Container class of column properties.

Since:
BlackBerry API 6.0.0

Field Summary
static int PERCENTAGE_WIDTH
          A style indicating that the column widths are specified as percentages of screen width.
static int PIXEL_WIDTH
          A style indicating that the column widths are specified in pixels.
 
Constructor Summary
TemplateColumnProperties(int width)
          Creates a column property with the specified width and the TemplateColumnProperties.PIXEL_WIDTH style.
TemplateColumnProperties(int width, int style)
          Creates a column property with the specified width and style.
 
Method Summary
 int getWidth()
          Retrieves the width of this column.
 int getWidthStyle()
          Retrieves the width style of this column - one of TemplateColumnProperties.PIXEL_WIDTH or TemplateColumnProperties.PERCENTAGE_WIDTH.
 void setWidth(int width)
          Set the width of the column.
 void setWidthStyle(int width, int style)
          Set the width of the column and the style of the column.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Field Detail

PIXEL_WIDTH

public static final int PIXEL_WIDTH
A style indicating that the column widths are specified in pixels.

See Also:
Constant Field Values
Since:
BlackBerry API 6.0.0

PERCENTAGE_WIDTH

public static final int PERCENTAGE_WIDTH
A style indicating that the column widths are specified as percentages of screen width.

See Also:
Constant Field Values
Since:
BlackBerry API 6.0.0


Constructor Detail

TemplateColumnProperties

public TemplateColumnProperties(int width)
Creates a column property with the specified width and the TemplateColumnProperties.PIXEL_WIDTH style.

Parameters:
width - Preferred width of the column.
Since:
BlackBerry API 6.0.0

TemplateColumnProperties

public TemplateColumnProperties(int width,
                                int style)
Creates a column property with the specified width and style.

Parameters:
width - width of the column.
style - One of TemplateColumnProperties.PIXEL_WIDTH or TemplateColumnProperties.PERCENTAGE_WIDTH.
Since:
BlackBerry API 6.0.0


Method Detail

getWidth

public int getWidth()
Retrieves the width of this column.

Returns:
width of this column.
Since:
BlackBerry API 6.0.0

getWidthStyle

public int getWidthStyle()
Retrieves the width style of this column - one of TemplateColumnProperties.PIXEL_WIDTH or TemplateColumnProperties.PERCENTAGE_WIDTH.

Returns:
width style of this column.
Since:
BlackBerry API 6.0.0

setWidth

public void setWidth(int width)
Set the width of the column.

Parameters:
width - the width of the column
Since:
BlackBerry API 6.0.0

setWidthStyle

public void setWidthStyle(int width,
                          int style)
Set the width of the column and the style of the column.

Parameters:
width - the width of the column
style - One of TemplateColumnProperties.PIXEL_WIDTH or TemplateColumnProperties.PERCENTAGE_WIDTH
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