BrightSide Workbench Full Report + Source Code
org.turro.elephant.util.Images Class Reference

Static Public Member Functions

static String getImage (String image)
 
static String get12Image (String image)
 
static String get64Image (String image)
 
static String getBlankImage ()
 
static String getImageOrDefault (String image)
 
static String getImageOrDefault (String image, String defaultImage)
 
static String getImageOrNull (String image)
 
static String removeAppContext (String path)
 

Static Public Attributes

static final String PATH_TO_IMAGES = "/_zul/images/"
 

Detailed Description

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

Definition at line 28 of file Images.java.

Member Function Documentation

◆ get12Image()

static String org.turro.elephant.util.Images.get12Image ( String  image)
static

Definition at line 40 of file Images.java.

40  {
41  return PATH_TO_12IMAGES + image + IMAGE_EXTENSION;
42  }

◆ get64Image()

static String org.turro.elephant.util.Images.get64Image ( String  image)
static

Definition at line 44 of file Images.java.

44  {
45  return PATH_TO_64IMAGES + image + IMAGE_EXTENSION;
46  }
Here is the caller graph for this function:

◆ getBlankImage()

static String org.turro.elephant.util.Images.getBlankImage ( )
static

Definition at line 48 of file Images.java.

48  {
49  return PATH_TO_IMAGES + "no_img" + IMAGE_EXTENSION;
50  }
static final String PATH_TO_IMAGES
Definition: Images.java:31
Here is the caller graph for this function:

◆ getImage()

static String org.turro.elephant.util.Images.getImage ( String  image)
static

Definition at line 36 of file Images.java.

36  {
37  return PATH_TO_IMAGES + image + IMAGE_EXTENSION;
38  }
Here is the caller graph for this function:

◆ getImageOrDefault() [1/2]

static String org.turro.elephant.util.Images.getImageOrDefault ( String  image)
static

Definition at line 52 of file Images.java.

52  {
53  return getImageOrDefault(image, "/_zul/images/bg/default.png");
54  }
static String getImageOrDefault(String image)
Definition: Images.java:52
Here is the caller graph for this function:

◆ getImageOrDefault() [2/2]

static String org.turro.elephant.util.Images.getImageOrDefault ( String  image,
String  defaultImage 
)
static

Definition at line 56 of file Images.java.

56  {
57  return Files.exists(image) ? image : defaultImage;
58  }
Here is the call graph for this function:

◆ getImageOrNull()

static String org.turro.elephant.util.Images.getImageOrNull ( String  image)
static

Definition at line 60 of file Images.java.

60  {
61  return Files.exists(image) ? image : null;
62  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeAppContext()

static String org.turro.elephant.util.Images.removeAppContext ( String  path)
static

Definition at line 64 of file Images.java.

64  {
65  if(path.startsWith(ElephantContext.getRootWebPath())) {
66  path = path.substring(ElephantContext.getRootWebPath().length());
67  }
68  return path;
69  }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ PATH_TO_IMAGES

final String org.turro.elephant.util.Images.PATH_TO_IMAGES = "/_zul/images/"
static

Definition at line 31 of file Images.java.


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