litesoft
@ 947
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
// This Source Code is in the Public Domain per: http://unlicense.org package org.litesoft.GWT.client.widgets.datatables; import org.litesoft.commonfoundation.html.*; import org.litesoft.core.util.*; import com.google.gwt.gen2.table.client.*; public class CheckedStatusableCellRenderer<T extends CheckedStatusable> extends TableCellRenderer<T> { public CheckedStatusableCellRenderer() { super( NO_ESCAPE ); } @Override public void renderContent( T pRowValue, ColumnDefinition<T, Object> pColumnDef, TableDefinition.AbstractCellView<T> pView, Object pCellValue ) { String result = HTMLConstants.NBSP; if ( Boolean.TRUE.equals( pRowValue.getChecked() ) ) { result = "<img style='width:12px;height:12px;' src='common/images/TableCheckIndicator/green.gif'/>"; } super.renderContent( pRowValue, pColumnDef, pView, result ); } } |
Commits for litesoft/trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/datatables/CheckedStatusableCellRenderer.java
Revision | Author | Commited | Message |
---|---|---|---|
947 Diff | GeorgeS | Fri 06 Jun, 2014 23:36:56 +0000 | Correct Spelling of package! |
942 Diff | GeorgeS | Mon 02 Jun, 2014 23:41:46 +0000 | Extracting commonfoundation |
712 Diff | GeorgeS | Sat 09 Jun, 2012 22:46:04 +0000 | Move PAV stuff into LiteSoft |
390 Diff | GeorgeS | Sun 14 Aug, 2011 19:33:48 +0000 | |
49 Diff | GeorgeS | Mon 12 Apr, 2010 02:59:10 +0000 | License Text |
2 | GeorgeS | Sun 07 Feb, 2010 12:50:58 +0000 |