I’m not an expert with CSS, so if you can help me:
I instantiated a Button and set it’s style name “Button.STYLE_LINK”,
because I don’t want those borders and images from the normal button,
and I want to change it’s colors, but not from all links of the application,
just one by one.
I want one link with text color blue, and another one red. Both are Buttons.
you can add multiple styles to your buttons. first add the Button.STYLE_LINK that you already have, and then make up a new one like “my-awesome-green-link” which you give the link specific styles.
Something like this (untested pseudo code):
Button myButton = new Button();
myButton.setStyleName(Button.STYLE_LINK);
myButton.addStyleName("my-awesome-green-link");
May be that I have the selector wrong or that you have to refer to a link to get that working as it should. Use a code inspector to find the exact selector. Drop a message if you still have problems.