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

Public Member Functions

 ImageSelector (String path, String regexp)
 
String getRootPath ()
 
String getImage (int index)
 
String getNextImage ()
 
String getPreviousImage ()
 

Detailed Description

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

Definition at line 28 of file ImageSelector.java.

Constructor & Destructor Documentation

◆ ImageSelector()

org.turro.zkoss.image.ImageSelector.ImageSelector ( String  path,
String  regexp 
)

Definition at line 32 of file ImageSelector.java.

32  {
33  super(ElephantContext.getRealPath(path), regexp);
34  this.webPath = path;
35  }
Here is the call graph for this function:

Member Function Documentation

◆ getImage()

String org.turro.zkoss.image.ImageSelector.getImage ( int  index)

Definition at line 41 of file ImageSelector.java.

41  {
42  File file = getFile(index);
43  if(file != null) {
44  return webPath + "/" + file.getName();
45  }
46  return null;
47  }

◆ getNextImage()

String org.turro.zkoss.image.ImageSelector.getNextImage ( )

Definition at line 49 of file ImageSelector.java.

49  {
50  File file = getNextFile();
51  if(file != null) {
52  return webPath + "/" + file.getName();
53  }
54  return null;
55  }

◆ getPreviousImage()

String org.turro.zkoss.image.ImageSelector.getPreviousImage ( )

Definition at line 57 of file ImageSelector.java.

57  {
58  File file = getPreviousFile();
59  if(file != null) {
60  return webPath + "/" + file.getName();
61  }
62  return null;
63  }

◆ getRootPath()

String org.turro.zkoss.image.ImageSelector.getRootPath ( )

Definition at line 37 of file ImageSelector.java.

37  {
38  return ElephantContext.getRootWebPath();
39  }
Here is the call graph for this function:

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