org.wicketstuff.datatable_autocomplete.table.column
Class DTARadioColumn<T>

java.lang.Object
  extended by org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T>
      extended by org.wicketstuff.datatable_autocomplete.table.column.DTARadioColumn<T>
All Implemented Interfaces:
Serializable, ICellPopulator<T>, IColumn<T>, IStyledColumn<T>, IClusterable, IDetachable

public class DTARadioColumn<T>
extends AbstractColumn<T>

Author:
mocleiri A radio for use where the table this column is added to is wrapped by a RadioGroup
See Also:
Serialized Form

Constructor Summary
DTARadioColumn(IModel<String> displayModel)
           
DTARadioColumn(String columnName)
           
 
Method Summary
 void detach()
           
 String getRadioMarkupID(int index)
          Get the markupid for the radio representing a specific row.
 void populateItem(Item<ICellPopulator<T>> cellItem, String componentId, IModel<T> rowModel)
           
 
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn
getCssClass, getDisplayModel, getHeader, getSortProperty, isSortable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTARadioColumn

public DTARadioColumn(IModel<String> displayModel)
Parameters:
displayModel -

DTARadioColumn

public DTARadioColumn(String columnName)
Parameters:
columnName -
Method Detail

populateItem

public void populateItem(Item<ICellPopulator<T>> cellItem,
                         String componentId,
                         IModel<T> rowModel)

detach

public void detach()
Specified by:
detach in interface IDetachable
Overrides:
detach in class AbstractColumn<T>

getRadioMarkupID

public final String getRadioMarkupID(int index)
Get the markupid for the radio representing a specific row. Used to allow row onclick actions to trigger a radio selection DOM action.

Parameters:
index -
Returns:
the markup id for the radio for the row index given.


Copyright © 2009-2013. All Rights Reserved.