gordy43 / controlp5

Automatically exported from code.google.com/p/controlp5
0 stars 0 forks source link

Requesting setName() method for Tab or even ControllerGroup #80

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I would like to set the name (not just the Label) of the default Tab. When you 
create new Tabs, their name can be given. The name of the default Tab however 
is and seemingly forever remains "default".

I have searched the javadocs (Tab and ControllerGroup) and the source code, but 
it seems there is no setName() method. As all variables, the String _myName in 
ControllerGroup is protected.

What steps will reproduce the problem?
1. Add some new tabs with fascinating names.
2. All the names are correct, interesting and equal to the Label.
3. While the default Tab's Label can be changed, it's name cannot.

What is the expected output? What do you see instead?
I expected there was some method to change the name of the Tab.
I haven't found any.

What version of the product are you using? On what operating system?
ControlP5 2.0.4 with Processing 2.0.1

Please provide any additional information below.
If there is such a method please let me know.
If there is no such method, will you add one?
I know it's a minor thing, but hey, I'm a perfectionist. ;D

Original issue reported on code.google.com by amnonp5@gmail.com on 11 Jul 2013 at 8:33

GoogleCodeExporter commented 8 years ago
The easiest workaround for this is setting the visibility of the default tab to 
false, so you end up with only (visible) tabs with matching names and labels.

Original comment by amnonp5@gmail.com on 11 Jul 2013 at 9:25

GoogleCodeExporter commented 8 years ago
It is correct that the name of the default tab can't be changed and has been 
permanently set to 'default', although I did not make field _myName final for 
ControllerGroup - but it should be, see Controller - the change in name would 
affect a Controller/group's references elsewhere. Hence, I would like to avoid 
adding a setName(), but let me consider an alternative.

Original comment by soj...@gmail.com on 17 Jul 2013 at 8:12