jablonka.czprosek.czf

freenet-router

Subversion Repositories:
[/] [trunk/] [freenet-router/] [var/] [www/] [freenet-router/] [Framework/] [Libraries/] [UI/] [Model/] [Button.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 Button extends Control
{

    private $text;
    private $icon;
    private $mainStyle;
    private $onClick;
    
    function __construct($parent)
    {
        parent::__construct($parent);
        $this->onClick = new Collection();
    }     
    
    public function getText()
    {
        return $this->text;
    }

    protected function setText($text)
    {
        $this->text = $text;
    }

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

    protected function setValue($value)
    {
        $this->setText($value);
    }
    
    public function getIcon()
    {
        return $this->icon;
    }

    protected function setIcon($icon)
    {
        $this->icon = $icon;
    }
    
    public function getMainStyle()
    {
        return $this->mainStyle;
    }

    protected function setMainStyle($mainStyle)
    {
        $this->mainStyle = $mainStyle;
    }    
    
    public function OnClick()
    {
        return $this->onClick;
    }      

}

Powered by WebSVN 2.2.1