18 package org.turro.attach.zul.navigator;
20 import org.turro.attach.version.AttachVersionSet;
21 import org.turro.i18n.I_;
22 import org.turro.zkoss.grid.PagingGrid;
23 import org.zkoss.zk.ui.ext.AfterCompose;
24 import org.zkoss.zul.Column;
25 import org.zkoss.zul.Columns;
34 private boolean readOnly;
45 this.readOnly = readOnly;
53 this.currentFolder = currentFolder;
57 private void populateList() {
58 getRows(
true).getChildren().clear();
59 if(currentFolder !=
null) {
64 getRows(
true).appendChild(
new AttachmentRow(a, readOnly));
74 private void addColumns() {
79 Column col =
new Column();
80 col.setLabel(
I_.
get(
"Name"));
82 cols.appendChild(col);
85 col.setLabel(
I_.
get(
"Size"));
86 col.setAlign(
"right");
87 col.setWidth(
"120px");
88 cols.appendChild(col);
91 col.setLabel(
I_.
get(
"Date"));
92 col.setWidth(
"180px");
93 cols.appendChild(col);
Collection< AttachFolder > getAttachFolders()
AttachVersionMap getVersionMap()
AttachFolder getCurrentFolder()
void setReadOnly(boolean readOnly)
void setCurrentFolder(AttachFolder currentFolder)
static String get(String msg)
Columns getColumns(boolean create)
Rows getRows(boolean create)
void setRowCount(int rows)