org.cafesip.gwtcomp.client.ui
Class ColumnProperty

java.lang.Object
  extended by org.cafesip.gwtcomp.client.ui.ColumnProperty

public class ColumnProperty
extends Object

Helper class for the SuperTable class.

Author:
Amit Chatterjee

Constructor Summary
ColumnProperty(String header, Comparator<Widget[]> ascendingSortComparator, Comparator<Widget[]> descendingSortComparator)
          A constructor for this class.
 
Method Summary
 Comparator<Widget[]> getAscendingSortComparator()
          Returns the ascendingSortComparator.
 Comparator<Widget[]> getDescendingSortComparator()
          Returns the descendingSortComparator.
 String getHeader()
          Returns the column header.
 HasHorizontalAlignment.HorizontalAlignmentConstant getHorizontalAlignment()
           
 HasVerticalAlignment.VerticalAlignmentConstant getVerticalAlignment()
           
 String getWidth()
           
 boolean isDisplayed()
           
 boolean isSelected()
           
 void setDisplayed(boolean displayed)
           
 void setHorizontalAlignment(HasHorizontalAlignment.HorizontalAlignmentConstant horizontalAlignment)
           
 void setSelected(boolean selected)
           
 void setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant verticalAlignment)
           
 void setWidth(String width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnProperty

public ColumnProperty(String header,
                      Comparator<Widget[]> ascendingSortComparator,
                      Comparator<Widget[]> descendingSortComparator)
A constructor for this class.

Parameters:
header - column header.
ascendingSortComparator - ascending comparator class for the column. If this value is set to null, the "ascending sort" icon is not displayed.
descendingSortComparator - descending comparator class for the column. If this value is set to null, the "descending sort" icon is not displayed.
Method Detail

getAscendingSortComparator

public Comparator<Widget[]> getAscendingSortComparator()
Returns the ascendingSortComparator.

Returns:
returns the ascending comparator object

getHeader

public String getHeader()
Returns the column header.

Returns:
returns the header

getDescendingSortComparator

public Comparator<Widget[]> getDescendingSortComparator()
Returns the descendingSortComparator.

Returns:
returns the descending comparator object

isDisplayed

public boolean isDisplayed()

setDisplayed

public void setDisplayed(boolean displayed)

getWidth

public String getWidth()
Returns:
Returns the width.

setWidth

public void setWidth(String width)
Parameters:
width - The width to set.

isSelected

public boolean isSelected()
Returns:
Returns the selected.

setSelected

public void setSelected(boolean selected)
Parameters:
selected - The selected to set.

getHorizontalAlignment

public HasHorizontalAlignment.HorizontalAlignmentConstant getHorizontalAlignment()
Returns:
Returns the horizontalAlignment.

setHorizontalAlignment

public void setHorizontalAlignment(HasHorizontalAlignment.HorizontalAlignmentConstant horizontalAlignment)
Parameters:
horizontalAlignment - The horizontalAlignment to set.

getVerticalAlignment

public HasVerticalAlignment.VerticalAlignmentConstant getVerticalAlignment()
Returns:
Returns the verticalAlignment.

setVerticalAlignment

public void setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant verticalAlignment)
Parameters:
verticalAlignment - The verticalAlignment to set.


Copyright © 2010 Cafesip.org. All Rights Reserved.