BrightSide Workbench Full Report + Source Code
org.turro.skills.SkillsChosenbox Class Reference
Inheritance diagram for org.turro.skills.SkillsChosenbox:
Collaboration diagram for org.turro.skills.SkillsChosenbox:

Public Member Functions

void setRootFilter (String rootFilter)
 
void setEntityPath (String entityPath)
 
void setTypes (SkillType[] types)
 
void setTypes (String[] types)
 
void setTypes (String types)
 
String getEntityPath ()
 
SkillType[] getTypes ()
 
Set< SkillRootgetObjectValues ()
 
void setObjectValues (Collection< SkillRoot > internalValues)
 
void addToModel (SkillRoot value)
 
void afterCompose ()
 

Detailed Description

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

Definition at line 32 of file SkillsChosenbox.java.

Member Function Documentation

◆ addToModel()

void org.turro.skills.SkillsChosenbox.addToModel ( SkillRoot  value)

Definition at line 79 of file SkillsChosenbox.java.

79  {
80  ((ListModelList) getModel()).add(value);
81  Set set = getSelectedObjects();
82  set.add(value);
83  setSelectedObjects(set);
84  }
Here is the caller graph for this function:

◆ afterCompose()

void org.turro.skills.SkillsChosenbox.afterCompose ( )

Definition at line 87 of file SkillsChosenbox.java.

87  {
88  if(!populated) {
89  populateList();
90  populated = true;
91  if (internalValues != null) {
92  setObjectValues(internalValues);
93  internalValues = null;
94  } else {
95  setObjectValues(null);
96  }
97  }
98  }
void setObjectValues(Collection< SkillRoot > internalValues)
Here is the call graph for this function:

◆ getEntityPath()

String org.turro.skills.SkillsChosenbox.getEntityPath ( )

Definition at line 63 of file SkillsChosenbox.java.

63  {
64  return entityPath;
65  }

◆ getObjectValues()

Set<SkillRoot> org.turro.skills.SkillsChosenbox.getObjectValues ( )

Definition at line 71 of file SkillsChosenbox.java.

71  {
72  return getSelectedObjects();
73  }
Here is the caller graph for this function:

◆ getTypes()

SkillType [] org.turro.skills.SkillsChosenbox.getTypes ( )

Definition at line 67 of file SkillsChosenbox.java.

67  {
68  return types;
69  }

◆ setEntityPath()

void org.turro.skills.SkillsChosenbox.setEntityPath ( String  entityPath)

Definition at line 43 of file SkillsChosenbox.java.

43  {
44  this.entityPath = entityPath;
45  setObjectValues(Skills.getSkillsAsRootFrom(entityPath, types));
46  }
Here is the call graph for this function:

◆ setObjectValues()

void org.turro.skills.SkillsChosenbox.setObjectValues ( Collection< SkillRoot internalValues)

Definition at line 75 of file SkillsChosenbox.java.

75  {
76  if(internalValues != null) setSelectedObjects(internalValues);
77  }
Here is the caller graph for this function:

◆ setRootFilter()

void org.turro.skills.SkillsChosenbox.setRootFilter ( String  rootFilter)

Definition at line 39 of file SkillsChosenbox.java.

39  {
40  this.rootFilter = rootFilter;
41  }

◆ setTypes() [1/3]

void org.turro.skills.SkillsChosenbox.setTypes ( SkillType[]  types)

Definition at line 48 of file SkillsChosenbox.java.

48  {
49  this.types = types;
50  }
Here is the caller graph for this function:

◆ setTypes() [2/3]

void org.turro.skills.SkillsChosenbox.setTypes ( String  types)

Definition at line 59 of file SkillsChosenbox.java.

59  {
60  setTypes(types.split("\\s*,\\s*"));
61  }
void setTypes(SkillType[] types)
Here is the call graph for this function:

◆ setTypes() [3/3]

void org.turro.skills.SkillsChosenbox.setTypes ( String[]  types)

Definition at line 52 of file SkillsChosenbox.java.

52  {
53  this.types = new SkillType[types.length];
54  for(int i = 0; i < types.length; i++) {
55  this.types[0] = SkillType.valueOf(types[0]);
56  }
57  }

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