to.etc.domui.component.tbl
Class SimpleColumnDef

java.lang.Object
  extended by to.etc.domui.component.tbl.SimpleColumnDef

public class SimpleColumnDef
extends java.lang.Object

Contains data for rendering a column in a data table.

Author:
Frits Jalvingh Created on Jun 18, 2008

Constructor Summary
SimpleColumnDef()
           
SimpleColumnDef(ExpandedDisplayProperty<?> m)
           
SimpleColumnDef(PropertyMetaModel<?> m)
          Create a column definition using metadata for the column.
 
Method Summary
 TextAlign getAlign()
           
 ICellClicked<?> getCellClicked()
           
 java.lang.String getColumnLabel()
           
 java.lang.Class<?> getColumnType()
           
 INodeContentRenderer<?> getContentRenderer()
           
 java.lang.String getCssClass()
          When set this defines the css class to set on each value cell for this column.
 int getDisplayLength()
           
 java.lang.String getHeaderCssClass()
          When set this defines the css class to set on the header of this column.
 NumericPresentation getNumericPresentation()
           
 IObjectToStringConverter<?> getPresentationConverter()
          Returns the optional converter to use to convert raw object values to some presentation string value.
 java.lang.String getPropertyName()
           
 java.lang.String getRenderHint()
           
 SortableType getSortable()
           
 ISortHelper getSortHelper()
           
 IValueTransformer<?> getValueTransformer()
           
 java.lang.String getWidth()
           
 boolean isNowrap()
           
 void setAlign(TextAlign align)
           
 void setCellClicked(ICellClicked<?> cellClicked)
           
 void setColumnLabel(java.lang.String columnLabel)
           
 void setColumnType(java.lang.Class<?> columnType)
           
 void setContentRenderer(INodeContentRenderer<?> contentRenderer)
           
 void setCssClass(java.lang.String cssClass)
          When set this defines the css class to set on each value cell for this column.
 void setDisplayLength(int displayLength)
           
 void setHeaderCssClass(java.lang.String headerCssClass)
          When set this defines the css class to set on the header of this column.
 void setNowrap(boolean nowrap)
           
 void setNumericPresentation(NumericPresentation numericPresentation)
           
 void setPresentationConverter(IConverter<?> valueConverter)
           
 void setPropertyName(java.lang.String propertyName)
           
 void setRenderHint(java.lang.String renderHint)
           
 void setSortable(SortableType sortable)
           
 void setSortHelper(ISortHelper sortHelper)
           
 void setValueTransformer(IValueTransformer<?> valueTransformer)
           
 void setWidth(java.lang.String width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleColumnDef

public SimpleColumnDef()

SimpleColumnDef

public SimpleColumnDef(PropertyMetaModel<?> m)
Create a column definition using metadata for the column.

Parameters:
m -

SimpleColumnDef

public SimpleColumnDef(ExpandedDisplayProperty<?> m)
Method Detail

getColumnLabel

public java.lang.String getColumnLabel()

setColumnLabel

public void setColumnLabel(java.lang.String columnLabel)

getColumnType

public java.lang.Class<?> getColumnType()

setColumnType

public void setColumnType(java.lang.Class<?> columnType)

getSortable

@Nonnull
public SortableType getSortable()

setSortable

public void setSortable(SortableType sortable)

getWidth

public java.lang.String getWidth()

setWidth

public void setWidth(java.lang.String width)

getValueTransformer

public IValueTransformer<?> getValueTransformer()

setValueTransformer

public void setValueTransformer(IValueTransformer<?> valueTransformer)

getPresentationConverter

public IObjectToStringConverter<?> getPresentationConverter()
Returns the optional converter to use to convert raw object values to some presentation string value.

Returns:

setPresentationConverter

public void setPresentationConverter(IConverter<?> valueConverter)

getPropertyName

public java.lang.String getPropertyName()

setPropertyName

public void setPropertyName(java.lang.String propertyName)

getContentRenderer

public INodeContentRenderer<?> getContentRenderer()

setContentRenderer

public void setContentRenderer(INodeContentRenderer<?> contentRenderer)

getCssClass

public java.lang.String getCssClass()
When set this defines the css class to set on each value cell for this column. Setting this does NOT set a css class for the header!!

Returns:

setCssClass

public void setCssClass(java.lang.String cssClass)
When set this defines the css class to set on each value cell for this column. Setting this does NOT set a css class for the header!!

Parameters:
cssClass -

getHeaderCssClass

public java.lang.String getHeaderCssClass()
When set this defines the css class to set on the header of this column.

Returns:

setHeaderCssClass

public void setHeaderCssClass(java.lang.String headerCssClass)
When set this defines the css class to set on the header of this column.

Parameters:
headerCssClass -

getDisplayLength

public int getDisplayLength()

setDisplayLength

public void setDisplayLength(int displayLength)

isNowrap

public boolean isNowrap()

setNowrap

public void setNowrap(boolean nowrap)

getCellClicked

public ICellClicked<?> getCellClicked()

setCellClicked

public void setCellClicked(ICellClicked<?> cellClicked)

getNumericPresentation

public NumericPresentation getNumericPresentation()

setNumericPresentation

public void setNumericPresentation(NumericPresentation numericPresentation)

getAlign

public TextAlign getAlign()

setAlign

public void setAlign(TextAlign align)

getRenderHint

public java.lang.String getRenderHint()

setRenderHint

public void setRenderHint(java.lang.String renderHint)

getSortHelper

public ISortHelper getSortHelper()

setSortHelper

public void setSortHelper(ISortHelper sortHelper)