All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fernice.reflare.light.FCheckBox.kt Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

package fernice.reflare.light

import org.fernice.reflare.ui.FlareCheckBoxUI
import javax.swing.Action
import javax.swing.Icon
import javax.swing.JCheckBox
import javax.swing.JToolTip

@Suppress("UNUSED")
open class FCheckBox : JCheckBox {

    constructor()
    constructor(action: Action?) : super(action)
    constructor(icon: Icon?) : super(icon)
    constructor(icon: Icon?, selected: Boolean) : super(icon, selected)
    constructor(text: String?) : super(text)
    constructor(text: String?, selected: Boolean) : super(text, selected)
    constructor(text: String?, icon: Icon?) : super(text, icon)
    constructor(text: String?, icon: Icon?, selected: Boolean) : super(text, icon, selected)

    override fun updateUI() {
        super.setUI(integrationDependent(this) { FlareCheckBoxUI() })
    }

    override fun createToolTip(): JToolTip {
        val toolTip = FToolTip()
        toolTip.component = this
        return toolTip
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy