30 |
* on the type of content. |
* on the type of content. |
31 |
*/ |
*/ |
32 |
public class MultitypeCellContentView extends CellContentView { |
public class MultitypeCellContentView extends CellContentView { |
33 |
CellContentView textView, pageView, imageView; |
CellInBox textView, pageView, imageView; |
34 |
|
|
35 |
public MultitypeCellContentView(CellContentView textView, |
public MultitypeCellContentView(CellInBox textView, |
36 |
CellContentView pageView, |
CellInBox pageView, |
37 |
CellContentView imageView) { |
CellInBox imageView) { |
38 |
this.textView = textView; |
this.textView = textView; |
39 |
this.pageView = pageView; |
this.pageView = pageView; |
40 |
this.imageView = imageView; |
this.imageView = imageView; |
41 |
} |
} |
42 |
|
|
43 |
private CellContentView v(Cell c) { |
private CellInBox v(Cell c) { |
44 |
|
if(c == null) return textView; |
45 |
VStreamCellTexter tex = (VStreamCellTexter)c.space.getCellTexter(); |
VStreamCellTexter tex = (VStreamCellTexter)c.space.getCellTexter(); |
46 |
Enfilade1D enf = tex.getEnfilade(c, null); |
Enfilade1D enf = tex.getEnfilade(c, null); |
47 |
if(enf.length() == 0) return textView; |
if(enf.length() == 0) return textView; |