Package com.oorian.annotations
Annotation 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
-
Element Details
-
value
String valueThe path to the CSS resource.- Returns:
- the CSS file path (e.g., "/styles/main.css")
-