◆ BannerComposer()
org.turro.newsletter.BannerComposer.BannerComposer |
( |
String |
htmlStr, |
|
|
String |
entityPath |
|
) |
| |
Definition at line 106 of file BannerComposer.java.
107 HashMap args =
new HashMap();
108 args.put(
"el_label", Application.getStringMap());
109 args.put(
"i_", I_.api());
110 args.put(
"i", I_.map());
111 args.put(
"k", I_.byKeyMap());
112 Executions.createComponents(
"/WEB-INF/_zul/bs/comps/editor/bannerComposer.zul",
this, args);
113 Selectors.wireComponents(
this,
this,
false);
114 Selectors.wireEventListeners(
this,
this);
115 this.entityPath = entityPath;
116 parseValues(htmlStr);
117 html.setContent(bannerString());
◆ getResult()
String org.turro.newsletter.BannerComposer.getResult |
( |
| ) |
|
◆ onChange()
final void org.turro.newsletter.BannerComposer.onChange |
( |
Event |
event | ) |
|
◆ onDeleteImage()
void org.turro.newsletter.BannerComposer.onDeleteImage |
( |
| ) |
|
◆ onSelectImage()
void org.turro.newsletter.BannerComposer.onSelectImage |
( |
| ) |
|
Definition at line 80 of file BannerComposer.java.
81 RepositoryWalker repositories =
new RepositoryWalker(
null);
82 repositories.selectFolder(
"/_internal/files" + entityPath);
83 repositories.setFilter(RepositoryContent.IMAGE_FILTER);
84 repositories.setReadOnlyRepository(Strings.isBlank(entityPath));
85 repositories.setNoTreeRepository(
false);
86 SelectionDialog.showComponent(getPage(), I_.get(
"Repository"), repositories,
"90%",
"90%",
new Command() {
88 public Object execute(Context context) {
89 File result = repositories.getResult();
91 imgSrc = ElephantContext.getRootWebPath() +
92 ElephantContext.getRelativePath(result.getAbsolutePath());
94 html.setContent(bannerString());
The documentation for this class was generated from the following file: