at.spardat.xma.mdl.table
Class XMATableColumn

java.lang.Object
  extended byat.spardat.xma.mdl.table.XMATableColumn

public class XMATableColumn
extends java.lang.Object

This class is a data object to specify information pertaining to columns of table widget models.


Nested Class Summary
static interface XMATableColumn.AtomComparator
          This interace is used to implement a costum comparator for an XMATableColumn.
 
Constructor Summary
XMATableColumn(TableWMClient table)
          Constructs the information necessary to describe a column of table widget model.
 
Method Summary
 XMATableColumn.AtomComparator getComparator()
           
 at.spardat.enterprise.fmt.IFmt getFormatter()
          Returns the formatter set or null if none has been set.
 boolean isSortable()
          Returns if this column is sortable.
 boolean isVisible()
          Returns true if this column is visible.
 void setComparator(XMATableColumn.AtomComparator comparator)
          Sets an AtomComparator for the client side sorting of the XMATableColumn.
 void setFormatter(at.spardat.enterprise.fmt.IFmt formatter)
          Sets the formatter for a particular column
 void setSortable(boolean b)
          Sets whether this column is sortable
 void setVisible(boolean b)
          Sets the visibility state of this column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMATableColumn

public XMATableColumn(TableWMClient table)
Constructs the information necessary to describe a column of table widget model.

Method Detail

setFormatter

public void setFormatter(at.spardat.enterprise.fmt.IFmt formatter)
Sets the formatter for a particular column

Parameters:
formatter - will be used to render the string representations of the column cells. This parameter may be null.

getFormatter

public at.spardat.enterprise.fmt.IFmt getFormatter()
Returns the formatter set or null if none has been set.


isSortable

public boolean isSortable()
Returns if this column is sortable.


setSortable

public void setSortable(boolean b)
Sets whether this column is sortable


isVisible

public boolean isVisible()
Returns true if this column is visible.


setVisible

public void setVisible(boolean b)
Sets the visibility state of this column. If this method is never called, the property defaults to true.

Parameters:
b - the boolean which indicates the visibility state.

getComparator

public XMATableColumn.AtomComparator getComparator()
Returns:
Returns the comparator_.

setComparator

public void setComparator(XMATableColumn.AtomComparator comparator)
Sets an AtomComparator for the client side sorting of the XMATableColumn. The use of a costum comparator for XMATableColumns is optional. If no AtomComparator is set then the Atom's type natural ordering is used.

Parameters:
comparator - The comparator_ to set.