Annotation Interface Css


@Retention(RUNTIME) @Target(TYPE) @Inherited public @interface Css
Annotation for specifying CSS resources to be included with an Oorian page.

The @Css annotation is used on HtmlPage subclasses to declare CSS stylesheets that should be loaded when the page is rendered. This provides a declarative way to associate styles with pages.

Usage:


 @Css("/styles/main.css")
 @Page(path="/dashboard")
 public class DashboardPage extends HtmlPage {
     // Page implementation
 }
 

The annotation is inherited, so subclasses automatically include CSS resources declared on their parent classes.

Since:
2021
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The path to the CSS resource.
  • Element Details

    • value

      String value
      The path to the CSS resource.
      Returns:
      the CSS file path (e.g., "/styles/main.css")