litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/datatables/DetailCellRenderer.java
|
@@ -1,8 +1,7 @@ |
1 |
1 |
|
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
2 |
|
package org.litesoft.GWT.client.widgets.datatables; |
3 |
3 |
|
|
4 |
|
- |
public abstract class DetailCellRenderer<RowType> extends TableCellRenderer<RowType> |
5 |
|
- |
{ |
|
4 |
+ |
public abstract class DetailCellRenderer<RowType> extends TableCellRenderer<RowType> { |
6 |
5 |
|
private boolean mMaxHeight = true; |
7 |
6 |
|
private boolean mDetailRow; |
8 |
7 |
|
|
|
@@ -10,8 +9,7 @@ |
10 |
9 |
|
* Read by the rendering logic to determine if the cell should be full |
11 |
10 |
|
* height when in the detail row. |
12 |
11 |
|
*/ |
13 |
|
- |
public boolean isMaxHeight() |
14 |
|
- |
{ |
|
12 |
+ |
public boolean isMaxHeight() { |
15 |
13 |
|
return mMaxHeight; |
16 |
14 |
|
} |
17 |
15 |
|
|
|
@@ -19,21 +17,18 @@ |
19 |
17 |
|
* Can be called during construction to override default behavior and render |
20 |
18 |
|
* this cell as a normal height cell. |
21 |
19 |
|
*/ |
22 |
|
- |
public void setMaxHeight( boolean pMaxHeight ) |
23 |
|
- |
{ |
|
20 |
+ |
public void setMaxHeight( boolean pMaxHeight ) { |
24 |
21 |
|
mMaxHeight = pMaxHeight; |
25 |
22 |
|
} |
26 |
23 |
|
|
27 |
|
- |
protected boolean isDetailRow() |
28 |
|
- |
{ |
|
24 |
+ |
protected boolean isDetailRow() { |
29 |
25 |
|
return mDetailRow; |
30 |
26 |
|
} |
31 |
27 |
|
|
32 |
28 |
|
/** |
33 |
29 |
|
* Called by the rendering logic w/ true for all cells in rows. |
34 |
30 |
|
*/ |
35 |
|
- |
public void setDetailRow( boolean pDetailRow ) |
36 |
|
- |
{ |
|
31 |
+ |
public void setDetailRow( boolean pDetailRow ) { |
37 |
32 |
|
mDetailRow = pDetailRow; |
38 |
33 |
|
} |
39 |
34 |
|
} |