73,7 → 73,15 |
// on crée le conteneur de l'arbre |
Label labelRecherche = new Label("Mots clés :"); |
arbreMotsCles = new TreePanel(); |
arbreMotsCles.setId("x-view-tree-filter"); |
|
// on crée une racine pour l'arbre |
TreeNode root = new TreeNode("Tags"); |
root.setId("racine_filtre"); |
String[] usObject = { "Mots clés", "racine_filtre" }; |
root.setUserObject(usObject); |
arbreMotsCles.setRootNode(root); |
|
this.setPaddings(5); |
|
this.setBorder(false); |
100,7 → 108,6 |
|
// on interdit le drag and drop dans l'arbre |
arbreMotsCles.setEnableDD(false); |
arbreMotsCles.setId("x-view-tree-filter"); |
arbreMotsCles.setAutoWidth(false); |
arbreMotsCles.setAutoScroll(true); |
arbreMotsCles.setBorder(false); |
110,7 → 117,7 |
// on crée une racine pour l'arbre |
TreeNode root = new TreeNode("Tags"); |
root.setId("racine_filtre"); |
String[] usObject = { "Mots clés", "racine" }; |
String[] usObject = { "Mots clés", "racine_filtre" }; |
root.setUserObject(usObject); |
arbreMotsCles.setRootNode(root); |
} |