BrightSide Workbench Full Report + Source Code
org.turro.zkoss.text.RepositoryWalker Class Reference
Inheritance diagram for org.turro.zkoss.text.RepositoryWalker:
Collaboration diagram for org.turro.zkoss.text.RepositoryWalker:

Public Member Functions

void onNewFolder ()
 
void onDelFolder ()
 
void onUpload (UploadEvent event)
 
void onDropUpload (UploadEvent event)
 
void onRepository ()
 
void onSelectFile (Event event)
 
 RepositoryWalker (WikiElement wikiElement)
 
void selectFolder (String folder)
 
void setFilter (String filter)
 
File getResult ()
 
boolean renderResult ()
 
boolean isReadOnlyRepository ()
 
void setReadOnlyRepository (boolean readOnlyRepository)
 
boolean isNoTreeRepository ()
 
void setNoTreeRepository (boolean noTreeRepository)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 46 of file RepositoryWalker.java.

Constructor & Destructor Documentation

◆ RepositoryWalker()

org.turro.zkoss.text.RepositoryWalker.RepositoryWalker ( WikiElement  wikiElement)

Definition at line 105 of file RepositoryWalker.java.

105  {
106  HashMap args = new HashMap();
107  args.put("el_label", I_.compatibilityMap());
108  args.put("i_", I_.api());
109  args.put("i", I_.map());
110  args.put("k", I_.byKeyMap());
111  Executions.createComponents("/WEB-INF/_zul/bs/comps/editor/repositoryWalker.zul", this, args);
112  Selectors.wireComponents(this, this, false);
113  Selectors.wireEventListeners(this, this);
114  this.wikiElement = wikiElement;
115  }
Here is the call graph for this function:

Member Function Documentation

◆ getResult()

File org.turro.zkoss.text.RepositoryWalker.getResult ( )

Definition at line 130 of file RepositoryWalker.java.

130  {
131  return result;
132  }
Here is the caller graph for this function:

◆ isNoTreeRepository()

boolean org.turro.zkoss.text.RepositoryWalker.isNoTreeRepository ( )

Definition at line 151 of file RepositoryWalker.java.

151  {
152  return noTreeRepository;
153  }

◆ isReadOnlyRepository()

boolean org.turro.zkoss.text.RepositoryWalker.isReadOnlyRepository ( )

Definition at line 138 of file RepositoryWalker.java.

138  {
139  return readOnlyRepository;
140  }

◆ onDelFolder()

void org.turro.zkoss.text.RepositoryWalker.onDelFolder ( )

Definition at line 68 of file RepositoryWalker.java.

68  {
69  if(!noTreeRepository && !readOnlyRepository) {
70  repositoriesTree.deleteFolder();
71  }
72  }
Here is the call graph for this function:

◆ onDropUpload()

void org.turro.zkoss.text.RepositoryWalker.onDropUpload ( UploadEvent  event)

Definition at line 88 of file RepositoryWalker.java.

88  {
89  repositoryContent.addMedias(event.getMedias());
90  repositoryContent.showContent();
91  }
Here is the call graph for this function:

◆ onNewFolder()

void org.turro.zkoss.text.RepositoryWalker.onNewFolder ( )

Definition at line 61 of file RepositoryWalker.java.

61  {
62  if(!noTreeRepository && !readOnlyRepository) {
63  repositoriesTree.createFolder();
64  }
65  }
Here is the call graph for this function:

◆ onRepository()

void org.turro.zkoss.text.RepositoryWalker.onRepository ( )

Definition at line 94 of file RepositoryWalker.java.

94  {
95  repositoryContent.setFolder(repositoriesTree.getSelectedRepository());
96  repositoryContent.showContent();
97  }
Here is the call graph for this function:

◆ onSelectFile()

void org.turro.zkoss.text.RepositoryWalker.onSelectFile ( Event  event)

Definition at line 100 of file RepositoryWalker.java.

100  {
101  result = (File) event.getData();
102  Events.postEvent(new Event(Events.ON_CLOSE, Components.from(this).parent(SelectionDialog.class)));
103  }
Here is the call graph for this function:

◆ onUpload()

void org.turro.zkoss.text.RepositoryWalker.onUpload ( UploadEvent  event)

Definition at line 75 of file RepositoryWalker.java.

75  {
76  repositoryContent.addMedias(event.getMedias());
77  repositoryContent.showContent();
78 // repositoryContent.upload(new Command() {
79 // @Override
80 // public boolean execute(Context context) throws Exception {
81 // repositoryContent.showContent();
82 // return Command.PROCESSING_COMPLETE;
83 // }
84 // });
85  }
Here is the call graph for this function:

◆ renderResult()

boolean org.turro.zkoss.text.RepositoryWalker.renderResult ( )

Definition at line 134 of file RepositoryWalker.java.

134  {
135  return wikiElement.renderImage(result);
136  }
boolean renderImage(File image)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ selectFolder()

void org.turro.zkoss.text.RepositoryWalker.selectFolder ( String  folder)

Definition at line 117 of file RepositoryWalker.java.

117  {
118  if(Strings.isBlank(initialFolder)) {
119  initialFolder = folder;
120  }
121  repositoriesTree.selectFolder(folder);
122  repositoryContent.setFolder(new File(ElephantContext.getRealPath(folder)));
123  repositoryContent.showContent();
124  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFilter()

void org.turro.zkoss.text.RepositoryWalker.setFilter ( String  filter)

Definition at line 126 of file RepositoryWalker.java.

126  {
127  repositoryContent.setMatchFilter(filter);
128  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setNoTreeRepository()

void org.turro.zkoss.text.RepositoryWalker.setNoTreeRepository ( boolean  noTreeRepository)

Definition at line 155 of file RepositoryWalker.java.

155  {
156  this.noTreeRepository = noTreeRepository;
157  treePanel.setVisible(!noTreeRepository);
158  }
Here is the caller graph for this function:

◆ setReadOnlyRepository()

void org.turro.zkoss.text.RepositoryWalker.setReadOnlyRepository ( boolean  readOnlyRepository)

Definition at line 142 of file RepositoryWalker.java.

142  {
143  this.readOnlyRepository = readOnlyRepository;
144  upload.setDisabled(readOnlyRepository);
145  if(readOnlyRepository) {
146  dropUpload.setDetection("none");
147  dropUpload.setVisible(false);
148  }
149  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: