常规步骤
如何为自定义构建器类添加注释
您应使用将用于面板的组件构建器 id 来为构建器类添加注释。如果要针对不同对象类型使用组件构建器 id 相同的不同构建器,则还应包括 TypeBased 注释。例如:
@ComponentBuilder(“exampleBuilderId”)
@TypeBased(value = "com.acme.SomeType")
public class ExamplePanelBuilder extends TypedAttributesPanelBuilder
这对您有帮助吗?