super(root, asksAllowsChildren);
}
public void valueChanged(TreeSelectionEvent e) {
Hashtable<String, Object> qq_Params = new Hashtable<String, Object>();
if (e.getOldLeadSelectionPath() != null)
qq_Params.put( "OldNode", new ParameterHolder(e.getOldLeadSelectionPath().getLastPathComponent()) );
else
qq_Params.put( "OldNode", new ParameterHolder() ); // Always have a value for "OldNode" to stop any null errors.
if (e.getNewLeadSelectionPath() != null)
qq_Params.put( "NewNode", new ParameterHolder(e.getNewLeadSelectionPath().getLastPathComponent() ));
else
qq_Params.put( "NewNode", new ParameterHolder() ); // Always have a value for "OldNode" to stop any null errors.
qq_Params.put( "OldRowNumber", new ParameterHolder(0) );
if (e.getPath() != null)
qq_Params.put( "NewRowNumber", new ParameterHolder(e.getPath().getPathCount()) );
else
qq_Params.put( "NewRowNumber", new ParameterHolder(0) );
ClientEventManager.postEvent( e.getSource(), "AfterCurrentNodeChange", qq_Params );
}