Building UI
Archetypes
4 items
Understanding Components
Understand the webforJ component hierarchy, composition over inheritance, lifecycle stages, and concern interfaces before building custom components.
Using Components
Configure webforJ components in Java by setting text, attributes, IDs, inline styles, and CSS classes that drive appearance and behavior.
Composing Components
Combine webforJ components into reusable units by extending Composite, configuring the bound component, and overriding initBoundComponent.
Elements
Integrate raw HTML tags and custom web components in webforJ using the Element class to add children, set content, and invoke JavaScript.
Element Composite
The ElementComposite class wraps a custom HTML element or web component. It binds your Java class to the underlying Element and lets you work with that element's properties, attributes, and events through Java. Use it when integrating web components into a webforJ app.
Event Options
Configure element events with ElementEventOptions to attach payload data, filter, debounce, throttle, and run client-side code before firing.
Events
Attach event listeners to webforJ components with lambdas, anonymous classes, or method references and reuse the event payload server-side.