mirror of
https://github.com/DanilaFe/abacus
synced 2025-07-06 18:15:36 -07:00
13 lines
283 B
Kotlin
13 lines
283 B
Kotlin
|
package org.nwapw.abacus.fx
|
||
|
|
||
|
import javafx.beans.property.SimpleBooleanProperty
|
||
|
|
||
|
class ToggleablePlugin (val className: String, enabled: Boolean) {
|
||
|
|
||
|
val enabledProperty = SimpleBooleanProperty(enabled)
|
||
|
|
||
|
fun isEnabled(): Boolean {
|
||
|
return enabledProperty.value
|
||
|
}
|
||
|
|
||
|
}
|