Building UI
原型
1 项
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
ElementComposite 类包装了一个自定义 HTML 元素或 web 组件。它将您的 Java 类绑定到基础的 Element,并让您可以通过 Java 操作该元素的属性、属性和事件。当将 web 组件集成到 webforJ 应用程序中时,请使用它。