Directory

← Back

ComponentHighlighter

Extension for decorating a component with a debug info label

Author

Rating

Popularity

<100

The add-on provides a component extension which will highlight the extended component in the browser with an eye-catching label containing the fully qualified class name of the extended component or a user-defined text. By that, you can see which part of your UI is implemented by which Java class directly in the browser. The extension is only active when the Vaadin application is run in debug mode. In production mode, the add-on will have no effect.

The file download contains all JavaDocs and documentation.

Sample code

public class MyComponent extends CustomComponent {
    ...
    public MyComponent() {
        super();
        new ComponentHighlighterExtension(this);
        ...
    }
}
String templateName = "mytemplate";
CustomLayout layout = new CustomLayout(templateName);

new ComponentHighlighterExtension (layout)
    .setComponentDebugLabel (
          CustomLayout.class.getName ()
          + " (template name: " + templateName + ".html)");

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Initial release

Released
2014-01-20
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.0+
Vaadin 8.0+
Browser
Firefox
Safari
Google Chrome
Internet Explorer
Internet Explorer
Microsoft Edge

ComponentHighlighter - Vaadin Add-on Directory

Extension for decorating a component with a debug info label ComponentHighlighter - Vaadin Add-on Directory
The add-on provides a component extension which will highlight the extended component in the browser with an eye-catching label containing the fully qualified class name of the extended component or a user-defined text. By that, you can see which part of your UI is implemented by which Java class directly in the browser. The extension is only active when the Vaadin application is run in debug mode. In production mode, the add-on will have no effect. The file download contains all JavaDocs and documentation.
Blog Post
Documentation
Issue Tracker
Source Code
Discussion Forum

ComponentHighlighter version 1.0
Initial release

Online