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

Public Member Functions

void onKnowledge ()
 
void onFunctional ()
 
void onAttitude ()
 
void onNewKnowledge (InputEvent event)
 
void onNewFunctional (InputEvent event)
 
void onNewAttitude (InputEvent event)
 
void onCancel ()
 
String getPath ()
 
void setPath (String path)
 
String getEntityPath ()
 
void setEntityPath (String entityPath)
 
- 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 37 of file EditSkillsControl.java.

Member Function Documentation

◆ doFinally()

void org.turro.skills.EditSkillsControl.doFinally ( )
protected

Reimplemented from org.turro.elephant.TemplateControl.

Definition at line 127 of file EditSkillsControl.java.

127  {
128  super.doFinally();
129  KeyValueMap kvm = Actions.getRightNowAction(Application.getApplication().getConstructor());
130  if(kvm != null && kvm.containsKey("entityPath")) {
131  entityPath = kvm.get("entityPath");
132  }
133  initComponents();
134  }
Here is the call graph for this function:

◆ getEntityPath()

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

Definition at line 118 of file EditSkillsControl.java.

118  {
119  return entityPath;
120  }

◆ getPath()

String org.turro.skills.EditSkillsControl.getPath ( )

Definition at line 110 of file EditSkillsControl.java.

110  {
111  return path;
112  }

◆ onAttitude()

void org.turro.skills.EditSkillsControl.onAttitude ( )

Definition at line 60 of file EditSkillsControl.java.

60  {
61  Skills.setSkillsFor(entityPath, attitude.getObjectValues()
62  .stream().map(s -> s.getFor(entityPath)).collect(Collectors.toSet()),
63  SkillType.SKILL_ATTITUDE);
64  }
Here is the call graph for this function:

◆ onCancel()

void org.turro.skills.EditSkillsControl.onCancel ( )

Definition at line 106 of file EditSkillsControl.java.

106  {
107  Application.getApplication().sendRedirect(path);
108  }
Here is the call graph for this function:

◆ onFunctional()

void org.turro.skills.EditSkillsControl.onFunctional ( )

Definition at line 53 of file EditSkillsControl.java.

53  {
54  Skills.setSkillsFor(entityPath, functional.getObjectValues()
55  .stream().map(s -> s.getFor(entityPath)).collect(Collectors.toSet()),
56  SkillType.SKILL_FUNCTIONAL);
57  }
Here is the call graph for this function:

◆ onKnowledge()

void org.turro.skills.EditSkillsControl.onKnowledge ( )

Definition at line 46 of file EditSkillsControl.java.

46  {
47  Skills.setSkillsFor(entityPath, knowledge.getObjectValues()
48  .stream().map(s -> s.getFor(entityPath)).collect(Collectors.toSet()),
49  SkillType.SKILL_KNOWLEDGE);
50  }
Here is the call graph for this function:

◆ onNewAttitude()

void org.turro.skills.EditSkillsControl.onNewAttitude ( InputEvent  event)

Definition at line 93 of file EditSkillsControl.java.

93  {
94  String value = event.getValue();
95  if(!Strings.isBlank(value)) {
96  Skill skill = new Skill();
97  skill.setSkill(value);
98  skill.setEntityPath(entityPath);
99  skill.setType(SkillType.SKILL_ATTITUDE);
100  Skills.addSkillFor(entityPath, skill);
101  attitude.addToModel(new SkillRoot(skill));
102  }
103  }
void addToModel(SkillRoot value)
Here is the call graph for this function:

◆ onNewFunctional()

void org.turro.skills.EditSkillsControl.onNewFunctional ( InputEvent  event)

Definition at line 80 of file EditSkillsControl.java.

80  {
81  String value = event.getValue();
82  if(!Strings.isBlank(value)) {
83  Skill skill = new Skill();
84  skill.setSkill(value);
85  skill.setEntityPath(entityPath);
86  skill.setType(SkillType.SKILL_FUNCTIONAL);
87  Skills.addSkillFor(entityPath, skill);
88  functional.addToModel(new SkillRoot(skill));
89  }
90  }
Here is the call graph for this function:

◆ onNewKnowledge()

void org.turro.skills.EditSkillsControl.onNewKnowledge ( InputEvent  event)

Definition at line 67 of file EditSkillsControl.java.

67  {
68  String value = event.getValue();
69  if(!Strings.isBlank(value)) {
70  Skill skill = new Skill();
71  skill.setSkill(value);
72  skill.setEntityPath(entityPath);
73  skill.setType(SkillType.SKILL_KNOWLEDGE);
74  Skills.addSkillFor(entityPath, skill);
75  knowledge.addToModel(new SkillRoot(skill));
76  }
77  }
Here is the call graph for this function:

◆ setEntityPath()

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

Definition at line 122 of file EditSkillsControl.java.

122  {
123  this.entityPath = entityPath;
124  }

◆ setPath()

void org.turro.skills.EditSkillsControl.setPath ( String  path)

Definition at line 114 of file EditSkillsControl.java.

114  {
115  this.path = path;
116  }

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