BrightSide Workbench Full Report + Source Code
org.turro.entities.Controls Class Reference

Static Public Member Functions

static Object getControl (String name)
 
static Object getControl (String name, String entityPath)
 
static Object getControl (String name, IConstructor constructor)
 
static Object getControl (String name, IConstructor constructor, String entityPath)
 

Static Public Attributes

static final String CTRL_ATTACHMENT = "attachment"
 

Detailed Description

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

Definition at line 31 of file Controls.java.

Member Function Documentation

◆ getControl() [1/4]

static Object org.turro.entities.Controls.getControl ( String  name)
static

Definition at line 37 of file Controls.java.

37  {
38  return getControl(name, null, null);
39  }
static Object getControl(String name)
Definition: Controls.java:37
Here is the caller graph for this function:

◆ getControl() [2/4]

static Object org.turro.entities.Controls.getControl ( String  name,
IConstructor  constructor 
)
static

Definition at line 45 of file Controls.java.

45  {
46  return getControl(name, constructor, null);
47  }
Here is the call graph for this function:

◆ getControl() [3/4]

static Object org.turro.entities.Controls.getControl ( String  name,
IConstructor  constructor,
String  entityPath 
)
static

Definition at line 49 of file Controls.java.

49  {
50  if(!Strings.isBlank(name)) {
51  for(String sclass : ClassNames.cached().byAnnotation(ElephantControl.class.getName())) {
52  Class pclass = Reflections.check(sclass);
53  if(pclass != null && ((ElephantControl) pclass.getAnnotation(ElephantControl.class)).name().equals(name)) {
54  if(constructor != null) {
55  return Reflections.of(pclass).classes(IConstructor.class).objects(constructor).instance();
56  } else if(!Strings.isBlank(entityPath)) {
57  return Reflections.of(pclass).classes(String.class).objects(entityPath).instance();
58  }
59  return Reflections.of(pclass).instance();
60  }
61  }
62  }
63  return null;
64  }

◆ getControl() [4/4]

static Object org.turro.entities.Controls.getControl ( String  name,
String  entityPath 
)
static

Definition at line 41 of file Controls.java.

41  {
42  return getControl(name, null, entityPath);
43  }
Here is the call graph for this function:

Member Data Documentation

◆ CTRL_ATTACHMENT

final String org.turro.entities.Controls.CTRL_ATTACHMENT = "attachment"
static

Definition at line 34 of file Controls.java.


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