|
static final String | IMAGE_FILTER = ".*(\\.jpg|\\.jpeg|\\.png|\\.gif)" |
|
◆ addMedias()
void org.turro.zkoss.text.RepositoryContent.addMedias |
( |
Media[] |
medias | ) |
|
Definition at line 104 of file RepositoryContent.java.
105 if(medias ==
null || medias.length == 0)
return;
106 for(Media media : medias) {
107 Medias.toFolder(media, folder);
◆ getFolder()
File org.turro.zkoss.text.RepositoryContent.getFolder |
( |
| ) |
|
◆ getMatchFilter()
String org.turro.zkoss.text.RepositoryContent.getMatchFilter |
( |
| ) |
|
◆ setFolder()
void org.turro.zkoss.text.RepositoryContent.setFolder |
( |
File |
folder | ) |
|
◆ setMatchFilter()
void org.turro.zkoss.text.RepositoryContent.setMatchFilter |
( |
String |
matchFilter | ) |
|
◆ showContent()
void org.turro.zkoss.text.RepositoryContent.showContent |
( |
| ) |
|
Definition at line 70 of file RepositoryContent.java.
71 if(folder !=
null && folder.exists()) {
72 getChildren().clear();
73 for(File file : folder.listFiles(
new FileFilter() {
75 public boolean accept(File pathname) {
76 return pathname.isFile() && !pathname.isHidden() && pathname.getName().matches(matchFilter);
79 appendChild(createBox(file));
◆ upload()
void org.turro.zkoss.text.RepositoryContent.upload |
( |
final Command |
command | ) |
|
Definition at line 84 of file RepositoryContent.java.
85 if(!folder.exists()) {
88 Fileupload.get(100,
new EventListener<UploadEvent>() {
90 public void onEvent(UploadEvent event) {
94 command.execute(
null);
95 }
catch (Exception ex) {
96 Logger.getLogger(RepositoryContent.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
void addMedias(Media[] medias)
◆ IMAGE_FILTER
final String org.turro.zkoss.text.RepositoryContent.IMAGE_FILTER = ".*(\\.jpg|\\.jpeg|\\.png|\\.gif)" |
|
static |
The documentation for this class was generated from the following file: