- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 43 of file Link.java.
◆ Link()
org.turro.zkoss.text.Link.Link |
( |
WikiElement |
wikiElement | ) |
|
Definition at line 54 of file Link.java.
55 HashMap args =
new HashMap();
56 args.put(
"el_label", I_.compatibilityMap());
57 args.put(
"i_", I_.api());
58 args.put(
"i", I_.map());
59 args.put(
"k", I_.byKeyMap());
60 Executions.createComponents(
"/WEB-INF/_zul/bs/comps/editor/link.zul",
this, args);
61 Selectors.wireComponents(
this,
this,
false);
62 Selectors.wireEventListeners(
this,
this);
63 this.wikiElement = wikiElement;
◆ getFileFolder()
String org.turro.zkoss.text.Link.getFileFolder |
( |
| ) |
|
◆ onFindFile()
void org.turro.zkoss.text.Link.onFindFile |
( |
| ) |
|
Definition at line 98 of file Link.java.
99 final RepositoryWalker repositories =
new RepositoryWalker(
null);
101 repositories.selectFolder(fileFolder);
102 repositories.setFilter(RepositoryContent.FILE_FILTER);
103 repositories.setReadOnlyRepository(readOnlyRepository);
104 repositories.setNoTreeRepository(noTreeRepository);
105 SelectionDialog.showComponent(getPage(), I_.get(
"Repository"), repositories,
"90%",
"90%",
new Command() {
107 public Object execute(Context context) {
108 File result = repositories.getResult();
110 link.setValue(ElephantContext.getRootWebPath() + ElephantContext.getRelativePath(result.getAbsolutePath()));
111 content.setValue(result.getName());
◆ renderResult()
boolean org.turro.zkoss.text.Link.renderResult |
( |
| ) |
|
Definition at line 83 of file Link.java.
86 String sclass = cssClass.getSelectedItem() ==
null ?
"" : cssClass.getSelectedItem().getLabel();
88 if(!Strings.isBlank(sclass)) {
91 if(newTab.isChecked()) {
94 return wikiElement.
render();
void addNoValuedAttribute(String value)
HashMap< String, String > getAttributes()
void addClass(String sclass)
void setContent(String content)
◆ setFileFolder()
void org.turro.zkoss.text.Link.setFileFolder |
( |
String |
fileFolder | ) |
|
Definition at line 71 of file Link.java.
72 this.fileFolder = fileFolder;
◆ setNoTreeRepository()
void org.turro.zkoss.text.Link.setNoTreeRepository |
( |
boolean |
noTreeRepository | ) |
|
Definition at line 79 of file Link.java.
80 this.noTreeRepository = noTreeRepository;
◆ setReadOnlyRepository()
void org.turro.zkoss.text.Link.setReadOnlyRepository |
( |
boolean |
readOnlyRepository | ) |
|
Definition at line 75 of file Link.java.
76 this.readOnlyRepository = readOnlyRepository;
The documentation for this class was generated from the following file: