构建用户界面
原型
1 项
理解组件
Understand the webforJ component hierarchy, composition over inheritance, lifecycle stages, and concern interfaces before building custom components.
使用组件
Configure webforJ components in Java by setting text, attributes, IDs, inline styles, and CSS classes that drive appearance and behavior.
组件组合
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.
事件
Listen for component events, read the event payload, configure element events, and dispatch your own custom events with the EventDispatcher.
执行 JavaScript
Run client-side JavaScript from Java with executeJs, executeJsAsync, and executeJsVoidAsync at the app or element level.