« UI\Controls\Tab::setMargin
UI\Controls\Check::__construct »
PHP Manual
UI
Case à cocher de Contrôle
Case à cocher de Contrôle
(UI 0.9.9)
Introduction
Une Case à cocher (Check) est une boîte à cocher étiquetée
Synopsis de la classe
class
UI\Controls\Check
extends
UI\Control
{
/* Constructor */
public
__construct
(
string
$text
)
/* Méthodes */
public
getText
():
string
public
isChecked
():
bool
protected
onToggle
()
public
setChecked
(
bool
$checked
)
public
setText
(
string
$text
)
/* Méthodes héritées */
public
UI\Control::destroy
()
public
UI\Control::disable
()
public
UI\Control::enable
()
public
UI\Control::getParent
():
UI\Control
public
UI\Control::getTopLevel
():
int
public
UI\Control::hide
()
public
UI\Control::isEnabled
():
bool
public
UI\Control::isVisible
():
bool
public
UI\Control::setParent
(
UI\Control
$parent
)
public
UI\Control::show
()
}
Sommaire
UI\Controls\Check::__construct
— Construit une nouvelle case à cocher
UI\Controls\Check::getText
— Renvoie le texte
UI\Controls\Check::isChecked
— Détection de la case cochée
UI\Controls\Check::onToggle
— Fonction de rappel de basculement
UI\Controls\Check::setChecked
— Définit la case cochée
UI\Controls\Check::setText
— Définit le texte