Construyendo la interfaz
Arquetipos
4 artículos
Comprensión de los componentes
Understand the webforJ component hierarchy, composition over inheritance, lifecycle stages, and concern interfaces before building custom components.
Usando Componentes
Configure webforJ components in Java by setting text, attributes, IDs, inline styles, and CSS classes that drive appearance and behavior.
Composición de Componentes
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 call JavaScript functions.
Element Composite
Wrap a custom HTML element or third-party web component in Java with ElementComposite, exposing its properties, attributes, and events through the Java API.
Eventos
Listen for component events, read the event payload, configure element events, and dispatch your own custom events with the EventDispatcher.
Ejecutar JavaScript
Run client-side JavaScript from Java with executeJs, executeJsAsync, and executeJsVoidAsync at the app or element level.