Documentation


SEARCH

TABLE OF CONTENT

    1. Getting started 2. Basic concepts 3. Request dispatching 4. Context container 5. Dual MVC 6. Component model: 7. Security 8. Configuration 9. Session handling 10. I18n 11. Cache 12. Logging 13. Error handling 14. Advanced Topics 15. API reference

      Tutorials: Frequently Asqued Questions

      See also:


      Class: __CheckBoxComponent


      Class Overview

      Checkbox represents the typical checkbox.


      The CheckBox tag is "checkbox"
      i.e.

      1.    <comp:checkbox name="accept_terms" caption="I have read and accept terms and conditions"/>

      The checkbox is a valueholder containing a boolean value. When the checkbox is checked, value is true, otherwise value is false.

      A checkbox component raises the click event when the user check or uncheck the component.
      See the Lion Events section for more information about events handled by lion components.



      See the checkbox component in action here: http://www.lionframework.org/components/checkbox.html


      Author:  Antonio Parraga Navarro
      Version:  1.3
      Copyright:  Copyright (c) 2009 Antonio Parraga Navarro
      __UIComponent
         |
         --__UIContainer
            |
            --__InputComponent
               |
               --__InputBoxComponent
                  |
                  --__CheckBoxComponent

      Properties

      Methods

      [ Top ]

      Inherited Properties, Constants, and Methods

      Inherited Properties Inherited Methods Inherited Constants

      Inherited From __InputBoxComponent

      Inherited From __InputComponent

      Inherited From __UIContainer

      Inherited From __UIComponent

      Inherited From __InputBoxComponent

      Inherited From __InputComponent

      Inherited From __UIContainer

      Inherited From __UIComponent


      [ Top ]

      Properties Summary

      mixed   $_caption  
      mixed   $_value  

      [ Top ]

      Method Summary

      unknown   getCaption()   Get the caption associated to the current checkbox
      void   getValue()  
      void   setCaption()   Set a caption to be show within the checkbox
      void   setValue()   Set the value associated to the current checkbox (true as checked, false as unchecked)

      [ Top ]

      Properties

      mixed   $_caption = null
      Access:  protected


      mixed   $_value = false
      Access:  protected


      Redefinition of:
      __InputBoxComponent::$_value

      Methods

      getCaption


        unknown getCaption( )

      Get the caption associated to the current checkbox

      Access:  public



      getValue


        void getValue( )

      Access:  public


      Redefinition of:
      __InputComponent::getValue()


      setCaption


        void setCaption( string $caption  )

      Set a caption to be show within the checkbox


      Parameters:
      TypeNameDescription
      string $caption

      Access:  public



      setValue


        void setValue( bool $value  )

      Set the value associated to the current checkbox (true as checked, false as unchecked)


      Parameters:
      TypeNameDescription
      bool $value

      Access:  public


      Redefinition of:
      __InputComponent::setValue()