Loading...
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
TUTORIAL

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

New widget - style inheritance

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

Hello,

rewrite the constructor like this:

public VTimeField() {
    addStyleName(CLASSNAME);
}

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,
Marc

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