Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

New widget - style inheritance

Sean Owen
1 decade ago Feb 10, 2012 7:05am
Marc Bosserhoff
1 decade ago Feb 10, 2012 11:16am


rewrite the constructor like this:

public VTimeField() {

As VTextfield sets its own css class with "setStyleName" you overwrite these settings again and loose the style information from the original text field.

Just a note: As VTextfield already implements Paintable i think you don't have to implement it again.

Hope that helps,

Last updated on Feb, 10th 2012
Sean Owen
1 decade ago Feb 13, 2012 7:49am