litesoft
Diff Revisions
916
vs
917
for /trunk/Java/GWT/Server/src/org/litesoft/GWT/server/ReportTableDefinition.java
|
@@ -6,7 +6,7 @@ |
6 |
6 |
|
|
7 |
7 |
|
import org.litesoft.GWT.client.widgets.datatables.*; |
8 |
8 |
|
import org.litesoft.core.typeutils.*; |
9 |
|
- |
import org.litesoft.core.typeutils.Lists; |
|
9 |
+ |
import org.litesoft.core.typeutils.Objects; |
10 |
10 |
|
import org.litesoft.orsup.base.*; |
11 |
11 |
|
import org.litesoft.orsup.otherattributeaccessors.*; |
12 |
12 |
|
|
|
@@ -48,6 +48,7 @@ |
48 |
48 |
|
{ |
49 |
49 |
|
} |
50 |
50 |
|
|
|
51 |
+ |
@SuppressWarnings({"UnusedDeclaration"}) |
51 |
52 |
|
public void addStandardHeaders( Writer pWriter, String... pTitleLines ) |
52 |
53 |
|
throws IOException |
53 |
54 |
|
{ |
|
@@ -113,21 +114,25 @@ |
113 |
114 |
|
return ""; |
114 |
115 |
|
} |
115 |
116 |
|
|
|
117 |
+ |
@SuppressWarnings({"UnusedDeclaration"}) |
116 |
118 |
|
public ReportColumnDefinition<RowType> addColumn( String pDottedAttributeName ) |
117 |
119 |
|
{ |
118 |
120 |
|
return addColumn( pDottedAttributeName, null, null ); |
119 |
121 |
|
} |
120 |
122 |
|
|
|
123 |
+ |
@SuppressWarnings({"UnusedDeclaration"}) |
121 |
124 |
|
public ReportColumnDefinition<RowType> addColumn( String pDottedAttributeName, String pHeaderText ) |
122 |
125 |
|
{ |
123 |
126 |
|
return addColumn( pDottedAttributeName, pHeaderText, null ); |
124 |
127 |
|
} |
125 |
128 |
|
|
|
129 |
+ |
@SuppressWarnings({"UnusedDeclaration"}) |
126 |
130 |
|
public ReportColumnDefinition<RowType> addColumn( String pDottedAttributeName, TableCellRenderer.Builder pCellRendererBuilder ) |
127 |
131 |
|
{ |
128 |
132 |
|
return addColumn( pDottedAttributeName, null, new ReportCellRenderer<RowType>( pCellRendererBuilder ) ); |
129 |
133 |
|
} |
130 |
134 |
|
|
|
135 |
+ |
@SuppressWarnings({"UnusedDeclaration"}) |
131 |
136 |
|
public ReportColumnDefinition<RowType> addColumn( String pDottedAttributeName, ReportCellRenderer<RowType> pCellRenderer ) |
132 |
137 |
|
{ |
133 |
138 |
|
return addColumn( pDottedAttributeName, null, pCellRenderer ); |
|
@@ -183,10 +188,8 @@ |
183 |
188 |
|
return pColumnDef; |
184 |
189 |
|
} |
185 |
190 |
|
|
186 |
|
- |
@SuppressWarnings({"unchecked"}) |
187 |
191 |
|
protected List<TableColumnDefinition> getVisibleTableColumnDefinitions() |
188 |
192 |
|
{ |
189 |
|
- |
List zDefinitions = getVisibleColumnDefinitions(); |
190 |
|
- |
return (List<TableColumnDefinition>) zDefinitions; |
|
193 |
+ |
return Cast.it( getVisibleColumnDefinitions() ); |
191 |
194 |
|
} |
192 |
195 |
|
} |