jablonka.czprosek.czf

freenet-router

Subversion Repositories:
[/] [trunk/] [freenet-router/] [var/] [www/] [freenet-router/] [Framework/] [Libraries/] [UI/] [Model/] [SelectBox.php] - Rev 2

Compare with Previous - Blame - Download


<?php

namespace Phem\Libraries\UI\Model;

use Phem\Core\Collection;

/**
 * @author Jakub PetrŞílka <petrzilka@czweb.net>
 */
class SelectBox extends Control
{

    private $options;
    private $enabled = true;
    
    /**
     * @\Phem\Libraries\UI\Annotations\DomAttr(name="value")
     */
    private $selected;
    private $onChange;
    
    function __construct($parent)
    {
        parent::__construct($parent);
        $this->onChange = new Collection();
    }    

    public function getOptions()
    {
        return $this->options;
    }

    public function getSelected()
    {
        return $this->selected;
    }

    protected function setOptions($options)
    {
        $this->options = $options;
    }

    protected function setSelected($selected)
    {
        $this->selected = $selected;
    }


    public function getEnabled()
    {
        return $this->enabled;
    }

    protected function setEnabled($enabled)
    {
        $this->enabled = $enabled;
    }

    public function OnChange()
    {
        return $this->onChange;
    }

    public function getValue()
    {
        return $this->getText();
    }

    protected function setValue($value)
    {
        $this->setText($value);
    }

}

Powered by WebSVN 2.2.1