org.olat.core.gui.components.table
Class CustomRenderColumnDescriptor

java.lang.Object
  extended by org.olat.core.gui.components.table.DefaultColumnDescriptor
      extended by org.olat.core.gui.components.table.CustomRenderColumnDescriptor
All Implemented Interfaces:
ColumnDescriptor
Direct Known Subclasses:
RepositoryEntryTypeColumnDescriptor

public class CustomRenderColumnDescriptor
extends DefaultColumnDescriptor

Description:

Author:
Felix Jost

Field Summary
 
Fields inherited from class org.olat.core.gui.components.table.DefaultColumnDescriptor
DEFAULT_POPUP_ATTRIBUTES
 
Fields inherited from interface org.olat.core.gui.components.table.ColumnDescriptor
ALIGNMENT_CENTER, ALIGNMENT_LEFT, ALIGNMENT_RIGHT
 
Constructor Summary
CustomRenderColumnDescriptor(java.lang.String headerKey, int dataColumn, java.lang.String action, java.util.Locale locale, int alignment, CustomCellRenderer customCellRenderer)
           
 
Method Summary
 void renderValue(StringOutput sb, int row, Renderer renderer)
           
 java.lang.String toString(int rowid)
          String represenation of the value at specified row
 
Methods inherited from class org.olat.core.gui.components.table.DefaultColumnDescriptor
compareTo, getAction, getAlignment, getHeaderKey, getHrefGenerator, getLocale, getPopUpWindowAttributes, isPopUpWindowAction, isSortingAllowed, modelChanged, otherColumnDescriptorSorted, setAlignment, setHrefGenerator, setIsPopUpWindowAction, setTable, setTranslateHeaderKey, sortingAboutToStart, translateHeaderKey
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomRenderColumnDescriptor

public CustomRenderColumnDescriptor(java.lang.String headerKey,
                                    int dataColumn,
                                    java.lang.String action,
                                    java.util.Locale locale,
                                    int alignment,
                                    CustomCellRenderer customCellRenderer)
Parameters:
headerKey -
dataColumn -
action -
locale -
alignment -
customCellRenderer -
Method Detail

renderValue

public void renderValue(StringOutput sb,
                        int row,
                        Renderer renderer)
Specified by:
renderValue in interface ColumnDescriptor
Overrides:
renderValue in class DefaultColumnDescriptor
renderer - the Renderer. if null this means that the renderValue should be in plain text (e.g. for excel download)
See Also:
DefaultColumnDescriptor.renderValue(org.olat.core.gui.render.StringOutput, int, org.olat.core.gui.render.Renderer)

toString

public java.lang.String toString(int rowid)
Description copied from interface: ColumnDescriptor
String represenation of the value at specified row

Specified by:
toString in interface ColumnDescriptor
Overrides:
toString in class DefaultColumnDescriptor
Returns: