ItEr55S13CUAdministracionMateriaisItEr37S11: Focus on the name or the code boxes of a category makes that category selected.
This commit is contained in:
parent
b6d7eb3926
commit
2007a32fb5
1 changed files with 14 additions and 0 deletions
|
|
@ -184,6 +184,13 @@ public class MaterialsController extends
|
|||
materialCategory.setName(ie.getValue());
|
||||
}
|
||||
});
|
||||
tb.addEventListener("onFocus", new EventListener() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
((Treeitem)tb.getParent().getParent().getParent()).setSelected(true);
|
||||
refreshMaterials();
|
||||
}
|
||||
});
|
||||
Treecell tc = new Treecell();
|
||||
|
||||
Treerow tr = null;
|
||||
|
|
@ -209,6 +216,13 @@ public class MaterialsController extends
|
|||
materialCategory.setCode(ie.getValue());
|
||||
}
|
||||
});
|
||||
codeTb.addEventListener("onFocus", new EventListener() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
((Treeitem)codeTb.getParent().getParent().getParent()).setSelected(true);
|
||||
refreshMaterials();
|
||||
}
|
||||
});
|
||||
Treecell codeTc = new Treecell();
|
||||
codeTb.setParent(codeTc);
|
||||
codeTc.setParent(tr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue