SimpleCheckBox

Kind of class: public class
Package:
Inherits from:
Implements:
Classpath: org.asaplibrary.ui.form.components.SimpleCheckBox
File last modified: Friday, 13 May 2011, 22:20:35
Very simple implementation of checkbox behaviour. This class expects one child with name "tV" on the timeline that will be set to visible or invisible depending on selection state. No animation is provided.

Summary

Constructor
Instance properties
Instance properties inherited from BaseButton
Instance methods

Constructor

SimpleCheckBox

function SimpleCheckBox()

Instance properties

tError

tError:MovieClip(read,write)

tV

tV:DisplayObject(read,write)

Instance methods

getValue

function getValue() : *

Return the value to be validated

hideError

function hideError() : void

Hide the error state

isEnabled

function isEnabled() : Boolean

isSelected

function isSelected() : Boolean
Returns
  • true if button is selected, otherwise false

reset

function reset() : void

Reset the checkbox by deselecting & enabling it

setEnabled

function setEnabled(inEnabled:Boolean) : void

setSelected

function setSelected(inSelected:Boolean) : void

Set selection state

showError

function showError() : void

Show the error state

toString

override function toString() : String