~eda-qa/dhlib/main

« back to all changes in this revision

Viewing changes to lib/ui/RadioBox.hx

  • Committer: edA-qa mort-ora-y
  • Date: 2010-02-16 05:36:32 UTC
  • Revision ID: eda-qa@disemia.com-20100216053632-60lt7fndfi3fgblw
first

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* <license>
 
2
 * This file is part of the dis-Emi-A HaXe Library. Copyright (c) edA-qa mort-ora-y
 
3
 * For full copyright and license information please refer to doc/license.txt.
 
4
 * </license> 
 
5
 */
 
6
package ui;
 
7
 
 
8
/**
 
9
 * The radio box is simply a slightly different rendering than the check box.
 
10
 * Actual radio behaviour can be had with the RadioGroup class.
 
11
 */
 
12
class RadioBox extends CheckBox
 
13
{
 
14
        private function new( text : String, ?color : draw.Color )
 
15
        {
 
16
                super( text, color );
 
17
                circle = true;
 
18
        }
 
19
        
 
20
        static public function plain( text : String, ?color : draw.Color )
 
21
        {
 
22
                return new RadioBox( text, color );
 
23
        }
 
24
}