abstract class TableDialog<D : Document<S>, S : DocumentSchema<D>> : Dialog, TableColumnsBuilder<D>, Refreshable
TableDialog(context: Context, titleId: String, schema: S) |
lateinit var addButton: Button |
|
lateinit var deleteButton: Button |
|
lateinit var refreshButton: Button |
|
val schema: S |
|
lateinit var table: TableView<D> |
open lateinit var buttonInvokable: NodeInvokable |
|
open lateinit var cancelButton: Button |
|
open lateinit var contentPane: VBox |
|
var graphic: Node? |
|
open val titleId: String |
abstract fun add(): Unit |
|
open fun <T> column(text: String?, init: TableColumn<D, T>.() -> Unit): TableColumn<D, T> |
|
open fun delete(): Unit |
|
open fun refresh(): Unit |
open fun dismiss(): Unit |
|
open fun graphicProperty(): ObjectProperty<Node> |
|
open fun setActualContent(region: Region): Unit |
|
open fun setOnShown(onShown: () -> Unit): Unit |
class EditEmployeeDialog : TableDialog<Employee, Employees> |
|
abstract class EditPriceDialog<D, S> : TableDialog<D, S> where D : Document<S>, D : Named, S : DocumentSchema<D>, S : NamedSchema |
|
class EditRecessDialog : TableDialog<Recess, Recesses> |