This is an automated email from the git hooks/post-receive script. New commit to annotated tag v2.0.0-beta-1 in repository jaxx. See https://gitlab.nuiton.org/nuiton/jaxx.git commit bea7197f9fc62c151cf500db64e972ab4a77571a Author: Tony Chemit <chemit@codelutin.com> Date: Fri Oct 23 18:01:04 2009 +0000 add gotoChildNode in NavigationTreeHelper --- .../swing/navigation/NavigationTreeHelper.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/jaxx-runtime/src/main/java/jaxx/runtime/swing/navigation/NavigationTreeHelper.java b/jaxx-runtime/src/main/java/jaxx/runtime/swing/navigation/NavigationTreeHelper.java index 1b9fbeb..87072a2 100644 --- a/jaxx-runtime/src/main/java/jaxx/runtime/swing/navigation/NavigationTreeHelper.java +++ b/jaxx-runtime/src/main/java/jaxx/runtime/swing/navigation/NavigationTreeHelper.java @@ -143,6 +143,25 @@ public abstract class NavigationTreeHelper extends NavigationTreeContextHelper { } /** + * Sélection d'un fils du noeud selectionne dans l'arbre de navigation. + * + * @param context le contexte applicatif + * @param childIndex index du fils a selectionner + */ + public void gotoChildNode(JAXXContext context, int childIndex) { + + NavigationTreeNode node = getSelectedNode(context); + + if (node == null) { + // pas de noeud selectionne + throw new NullPointerException("no selected node in context"); + } + node = node.getChildAt(childIndex); + + selectNode(context, node); + } + + /** * Demande une opération de repaint sur un noeud de l'arbre de navigation. * * <b>Note:</b> La descendance du noeud n'est pas repainte. -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.