◆ FileTree() [1/2]
org.turro.file.zul.tree.FileTree.FileTree |
( |
| ) |
|
◆ FileTree() [2/2]
org.turro.file.zul.tree.FileTree.FileTree |
( |
String |
title | ) |
|
Definition at line 74 of file tree/FileTree.java.
77 expressionFilter =
new ExpressionFilter();
78 innerFileFilter =
new InnerFileFilter(
this);
◆ addFolder()
FileItem org.turro.file.zul.tree.FileTree.addFolder |
( |
String |
label, |
|
|
String |
path |
|
) |
| |
Definition at line 146 of file tree/FileTree.java.
147 FileItem fi =
new FileItem(label,
new File(path));
148 children.appendChild(fi);
151 if(fi instanceof AfterCompose) {
152 ((AfterCompose) fi).afterCompose();
Menupopup getActionMenu()
◆ getActionMenu()
Menupopup org.turro.file.zul.tree.FileTree.getActionMenu |
( |
| ) |
|
◆ getColumns()
List<FileColumn> org.turro.file.zul.tree.FileTree.getColumns |
( |
| ) |
|
Definition at line 158 of file tree/FileTree.java.
159 return CollectionUtil.from(getTreecols().getChildren()).<List<FileColumn>>cast();
◆ getFileFilter()
FileFilter org.turro.file.zul.tree.FileTree.getFileFilter |
( |
| ) |
|
◆ getFileListener()
FileListener org.turro.file.zul.tree.FileTree.getFileListener |
( |
| ) |
|
◆ getRole()
String org.turro.file.zul.tree.FileTree.getRole |
( |
| ) |
|
◆ getSelectedFile()
File org.turro.file.zul.tree.FileTree.getSelectedFile |
( |
| ) |
|
Definition at line 162 of file tree/FileTree.java.
163 if(getSelectedItem() instanceof FileItem) {
164 return ((FileItem) getSelectedItem()).getFile();
◆ initTreeColumns()
void org.turro.file.zul.tree.FileTree.initTreeColumns |
( |
List< FileColumn > |
fileColumns | ) |
|
Definition at line 81 of file tree/FileTree.java.
82 addColumns(fileColumns);
84 addEventListener(Events.ON_CLICK,
new EventListener() {
86 public void onEvent(Event event)
throws Exception {
87 FileItem fi = (FileItem)
FileTree.this.getSelectedItem();
89 fi.processSelection(
true);
93 actionMenu =
new Menupopup();
94 actionMenu.addEventListener(Events.ON_OPEN,
new EventListener() {
96 public void onEvent(Event event)
throws Exception {
97 if(lastSelection ==
null || !lastSelection.equals(
FileTree.this.getSelectedItem())) {
98 lastSelection = (FileItem)
FileTree.this.getSelectedItem();
103 getParent().appendChild(actionMenu);
◆ isInRole()
boolean org.turro.file.zul.tree.FileTree.isInRole |
( |
String |
role | ) |
|
Definition at line 130 of file tree/FileTree.java.
131 return Application.getApplication().isInRole(this.role +
":" + role);
◆ setAddToolbar()
void org.turro.file.zul.tree.FileTree.setAddToolbar |
( |
boolean |
addToolbar | ) |
|
Definition at line 138 of file tree/FileTree.java.
140 searchbar =
new Toolbar();
141 getParent().insertBefore(searchbar,
FileTree.this);
142 addSearchbarButtons();
◆ setFileFilter()
void org.turro.file.zul.tree.FileTree.setFileFilter |
( |
FileFilter |
fileFilter | ) |
|
◆ setFileListener()
void org.turro.file.zul.tree.FileTree.setFileListener |
( |
FileListener |
listener | ) |
|
◆ setRole()
void org.turro.file.zul.tree.FileTree.setRole |
( |
String |
role | ) |
|
The documentation for this class was generated from the following file: