package com.adealink.weparty.module.widget.form.adapter

import android.content.Context
import android.view.ViewGroup
import androidx.lifecycle.LifecycleOwner
import com.adealink.weparty.module.widget.form.BaseWidgetView
import com.adealink.weparty.module.widget.form.IWidgetData
import com.adealink.weparty.module.widget.form.data.FieldException

abstract class WidgetDelegate<DATA : IWidgetData, WIDGET : BaseWidgetView<DATA>> {

    @Throws(FieldException::class)
    abstract fun onCreateView(
        lifecycleOwner: LifecycleOwner,
        context: Context,
        parent: ViewGroup,
        data: DATA
    ): WIDGET

}
