19 package org.turro.file.zul.navigator;
22 import org.turro.i18n.I_;
23 import org.turro.zkoss.grid.PagingGrid;
24 import org.zkoss.zk.ui.ext.AfterCompose;
25 import org.zkoss.zul.Column;
26 import org.zkoss.zul.Columns;
35 private boolean readOnly;
46 this.readOnly = readOnly;
54 this.currentFolder = currentFolder;
58 private void populateList() {
59 getRows(
true).getChildren().clear();
60 if(currentFolder !=
null) {
64 for(File a : currentFolder.
getFiles()) {
65 getRows(
true).appendChild(
new FileRow(a, readOnly));
75 private void addColumns() {
80 Column col =
new Column();
81 col.setLabel(
I_.
get(
"Name"));
83 cols.appendChild(col);
86 col.setLabel(
I_.
get(
"Size"));
87 col.setAlign(
"right");
88 col.setWidth(
"120px");
89 cols.appendChild(col);
92 col.setLabel(
I_.
get(
"Date"));
93 col.setWidth(
"180px");
94 cols.appendChild(col);
Collection< FileFolder > getFileFolders()
Collection< File > getFiles()
void setCurrentFolder(FileFolder currentFolder)
FileFolder getCurrentFolder()
void setReadOnly(boolean readOnly)
static String get(String msg)
Columns getColumns(boolean create)
Rows getRows(boolean create)
void setRowCount(int rows)