com.sage.swt.client.widget.table.property
Class PreferredWidthProperty

java.lang.Object
  extended by com.google.gwt.gen2.table.client.property.ColumnProperty
      extended by com.sage.swt.client.widget.table.property.PreferredWidthProperty

public class PreferredWidthProperty
extends com.google.gwt.gen2.table.client.property.ColumnProperty

A ColumnProperty that provides the preferred width of a column.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.gen2.table.client.property.ColumnProperty
com.google.gwt.gen2.table.client.property.ColumnProperty.Type<P extends com.google.gwt.gen2.table.client.property.ColumnProperty>
 
Field Summary
static com.google.gwt.gen2.table.client.property.ColumnProperty.Type<PreferredWidthProperty> TYPE
          Property type.
 
Constructor Summary
PreferredWidthProperty(int preferredWidth)
          Construct a new PreferredWidthProperty.
 
Method Summary
 int getPreferredColumnWidth()
          Returns the preferred width of the column in pixels.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final com.google.gwt.gen2.table.client.property.ColumnProperty.Type<PreferredWidthProperty> TYPE
Property type.

Constructor Detail

PreferredWidthProperty

public PreferredWidthProperty(int preferredWidth)
Construct a new PreferredWidthProperty.

Parameters:
preferredWidth - the preferred column width
Method Detail

getPreferredColumnWidth

public int getPreferredColumnWidth()
Returns the preferred width of the column in pixels. Views should respect the preferred column width and attempt to size the column to its preferred width. If the column must be resized, the preferred width should serve as a weight relative to the preferred widths of other ColumnDefinitions.

Returns:
the preferred width of the column


Copyright © 2011 Sage Software, Inc. All rights reserved.