net.sourceforge.openutils.mgnlcontrols.configuration
Interface GridColumnType

All Known Implementing Classes:
AbstractGridColumnType, CheckboxGridColumnType, ColorGridColumnType, ComboGridColumnType, DateGridColumnType, FckEditorGridColumnType, FileGridColumnType, LinkGridColumnType, TextGridColumnType, UUIDLinkGridColumnType

public interface GridColumnType

Defines a column of the grid control. Methods are called by the grid control, the freemarker template and the save handler.

Version:
$Id: GridColumnType.java 2705 2010-06-21 16:21:05Z diego_schivo $
Author:
dschivo

Method Summary
 java.lang.String drawColumnJs(java.lang.String propertyName, int colIndex, java.util.Map colmap, info.magnolia.cms.i18n.Messages msgs)
          Gets the javascript object for the column model of the grid.
 java.lang.String drawSupportHtml(java.lang.String propertyName, int colIndex, java.util.Map colmap, info.magnolia.cms.i18n.Messages msgs)
          Adds extra markup to be used by the column, if needed.
 java.lang.String getHeadSnippet()
          Gets the html code for Including scripts and styles for the column.
 void processColumnOnLoad(java.lang.String[] column, info.magnolia.cms.core.Content colConfig)
          Possibly transforms the column values on grid load.
 void processColumnOnSave(java.lang.String[] column, info.magnolia.cms.core.Content colConfig, java.lang.String propertyName, info.magnolia.cms.core.Content parentNode)
          Possibly transforms the column values on grid save.
 

Method Detail

getHeadSnippet

java.lang.String getHeadSnippet()
Gets the html code for Including scripts and styles for the column. Called only once for each column type.

Returns:

drawSupportHtml

java.lang.String drawSupportHtml(java.lang.String propertyName,
                                 int colIndex,
                                 java.util.Map colmap,
                                 info.magnolia.cms.i18n.Messages msgs)
Adds extra markup to be used by the column, if needed.

Parameters:
propertyName -
colIndex -
colmap -
msgs -
Returns:

drawColumnJs

java.lang.String drawColumnJs(java.lang.String propertyName,
                              int colIndex,
                              java.util.Map colmap,
                              info.magnolia.cms.i18n.Messages msgs)
Gets the javascript object for the column model of the grid.

Parameters:
propertyName -
colIndex -
colmap -
msgs -
Returns:

processColumnOnLoad

void processColumnOnLoad(java.lang.String[] column,
                         info.magnolia.cms.core.Content colConfig)
Possibly transforms the column values on grid load.

Parameters:
column -
colConfig -

processColumnOnSave

void processColumnOnSave(java.lang.String[] column,
                         info.magnolia.cms.core.Content colConfig,
                         java.lang.String propertyName,
                         info.magnolia.cms.core.Content parentNode)
                         throws javax.jcr.RepositoryException,
                                info.magnolia.cms.security.AccessDeniedException
Possibly transforms the column values on grid save.

Parameters:
column -
colConfig -
propertyName -
parentNode -
Throws:
javax.jcr.RepositoryException
info.magnolia.cms.security.AccessDeniedException


Copyright © 2008-2010 Openmind. All Rights Reserved.