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

Public Member Functions

void onUpload (UploadEvent event)
 
void onCrop (UploadEvent event)
 
void setFolder (String folder)
 
void setFileName (String fileName)
 
void setMaxHeight (int maxHeight)
 
void setMinHeight (int minHeight)
 
void setMaxWidth (int maxWidth)
 
void setMinWidth (int minWidth)
 
void setFixedHeight (int fixedHeight)
 
void setFixedWidth (int fixedWidth)
 
- Public Member Functions inherited from org.turro.elephant.TemplateControl
void setRootTmpl (String rootTmpl)
 
void setTmpl (String tmpl)
 
void afterCompose ()
 

Protected Member Functions

void doFinally ()
 

Detailed Description

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

Definition at line 34 of file UploadImageControl.java.

Member Function Documentation

◆ doFinally()

void org.turro.zkoss.image.UploadImageControl.doFinally ( )
protected

Reimplemented from org.turro.elephant.TemplateControl.

Definition at line 65 of file UploadImageControl.java.

65  {
66  super.doFinally();
67  initComponents();
68  }

◆ onCrop()

void org.turro.zkoss.image.UploadImageControl.onCrop ( UploadEvent  event)

Definition at line 52 of file UploadImageControl.java.

52  {
53 // try {
54 // AImage img = cropper.getCroppedImage();
55 // cropper.setContent(img);
56 // try (InputStream in = img.getStreamData()) {
57 // Files.copy(in, Paths.get(ElephantContext.getRealPath(getImagePath())), StandardCopyOption.REPLACE_EXISTING);
58 // }
59 // } catch (IOException ex) {
60 // Logger.getLogger(UploadImageControl.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
61 // }
62  }

◆ onUpload()

void org.turro.zkoss.image.UploadImageControl.onUpload ( UploadEvent  event)

Definition at line 43 of file UploadImageControl.java.

43  {
44 // try {
45 // cropper.setContent(new AImage(fileName, event.getMedia().getStreamData()));
46 // } catch (IOException ex) {
47 // Logger.getLogger(UploadImageControl.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
48 // }
49  }

◆ setFileName()

void org.turro.zkoss.image.UploadImageControl.setFileName ( String  fileName)

Definition at line 74 of file UploadImageControl.java.

74  {
75  this.fileName = fileName;
76  }

◆ setFixedHeight()

void org.turro.zkoss.image.UploadImageControl.setFixedHeight ( int  fixedHeight)

Definition at line 94 of file UploadImageControl.java.

94  {
95  setMaxHeight(fixedHeight);
96  setMinHeight(fixedHeight);
97  }
Here is the call graph for this function:

◆ setFixedWidth()

void org.turro.zkoss.image.UploadImageControl.setFixedWidth ( int  fixedWidth)

Definition at line 99 of file UploadImageControl.java.

99  {
100  setMaxWidth(fixedWidth);
101  setMinWidth(fixedWidth);
102  }
Here is the call graph for this function:

◆ setFolder()

void org.turro.zkoss.image.UploadImageControl.setFolder ( String  folder)

Definition at line 70 of file UploadImageControl.java.

70  {
71  this.folder = folder;
72  }

◆ setMaxHeight()

void org.turro.zkoss.image.UploadImageControl.setMaxHeight ( int  maxHeight)

Definition at line 78 of file UploadImageControl.java.

78  {
79  this.maxHeight = maxHeight;
80  }
Here is the caller graph for this function:

◆ setMaxWidth()

void org.turro.zkoss.image.UploadImageControl.setMaxWidth ( int  maxWidth)

Definition at line 86 of file UploadImageControl.java.

86  {
87  this.maxWidth = maxWidth;
88  }
Here is the caller graph for this function:

◆ setMinHeight()

void org.turro.zkoss.image.UploadImageControl.setMinHeight ( int  minHeight)

Definition at line 82 of file UploadImageControl.java.

82  {
83  this.minHeight = minHeight;
84  }
Here is the caller graph for this function:

◆ setMinWidth()

void org.turro.zkoss.image.UploadImageControl.setMinWidth ( int  minWidth)

Definition at line 90 of file UploadImageControl.java.

90  {
91  this.minWidth = minWidth;
92  }
Here is the caller graph for this function:

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