FEST

Ability to programmatically click on a JTree node known only by its textual representation.

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: FEST-Swing 1.2a2
  • Fix Version/s: FEST-Swing 1.2a3
  • Component/s: Swing
  • Labels:
    None
  • Number of attachments :
    0

Description

I find it difficult to programmatically click on a JTree node known by its text. I would therefore like this feature in FEST-Swing. I was able to find the node, but then the JTree reported it as having null bounds despite being visible. So I hope you guys with your experience of doing this kind of thing will be able to add this. I'll happily test it if it's added to svn, which I've checked out.

Activity

Hide
Alex Ruiz added a comment -

Sorry Ricky, I'm not following

I don't understand what you mean by "textual representation". We have a method where you can perform actions on nodes based on their paths, for example "root/node1/node1.1". Can you please provide an example?

Many thanks,
-Alex

Show
Alex Ruiz added a comment - Sorry Ricky, I'm not following I don't understand what you mean by "textual representation". We have a method where you can perform actions on nodes based on their paths, for example "root/node1/node1.1". Can you please provide an example? Many thanks, -Alex
Hide
Ricky Clarkson added a comment -

Hi Alex,

Sorry, my report was a little vague because I hadn't realised how the paths feature worked. However, there still is something to request here.

As far as I can see, we can select or show the popup menu on a node, but there's no mechanism to just perform a click. Our JTree, for better or worse, has MouseListeners, so we need actual clicks. If we could get the bounds of a node given its path that would be enough too.

Thanks,
Ricky.

Show
Ricky Clarkson added a comment - Hi Alex, Sorry, my report was a little vague because I hadn't realised how the paths feature worked. However, there still is something to request here. As far as I can see, we can select or show the popup menu on a node, but there's no mechanism to just perform a click. Our JTree, for better or worse, has MouseListeners, so we need actual clicks. If we could get the bounds of a node given its path that would be enough too. Thanks, Ricky.
Hide
Alex Ruiz added a comment -

Thanks Ricky! I'll add this feature to our next release (1.2a3 due on August 3rd). It seems that we might be a little bit delayed, due to a refactoring of our test cases I'm performing. I'll update the subject of this bug to reflect your requirement.

Thanks!
-Alex

Show
Alex Ruiz added a comment - Thanks Ricky! I'll add this feature to our next release (1.2a3 due on August 3rd). It seems that we might be a little bit delayed, due to a refactoring of our test cases I'm performing. I'll update the subject of this bug to reflect your requirement. Thanks! -Alex
Hide
Alex Ruiz added a comment -

Actually, the subject of the issue is correct. What I need to add are the following methods:

  1. clickRow(int)
  2. clickPath(String)

to JTreeFixture.

Show
Alex Ruiz added a comment - Actually, the subject of the issue is correct. What I need to add are the following methods:
  1. clickRow(int)
  2. clickPath(String)
to JTreeFixture.
Hide
Alex Ruiz added a comment -

Added method clickPath(String). I'll file a new issue for clickRow(int) and it will be addressed in the next release.

Show
Alex Ruiz added a comment - Added method clickPath(String). I'll file a new issue for clickRow(int) and it will be addressed in the next release.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: