29 |
/** A cell content view that uses a text- or pagespan view, dependent |
/** A cell content view that uses a text- or pagespan view, dependent |
30 |
* on the type of content. |
* on the type of content. |
31 |
*/ |
*/ |
32 |
public class MultitypeCellContentView extends CellContentView { |
public class MultitypeCellContentView extends CellView { |
33 |
CellInBox textView, pageView, imageView; |
CellView textView, pageView, imageView; |
34 |
|
|
35 |
public MultitypeCellContentView(CellInBox textView, |
public MultitypeCellContentView(CellView textView, |
36 |
CellInBox pageView, |
CellView pageView, |
37 |
CellInBox imageView) { |
CellView 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 CellInBox v(Cell c) { |
private CellView v(Cell c) { |
44 |
if(c == null) return textView; |
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); |