root/lang/actionscript/doubleslider/TestLabelProvider.as
@
16016
| Revision 8177, 392 bytes (checked in by gyuque, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | package |
| 2 | { |
| 3 | import doubleslider.ILabelProvider; |
| 4 | public class TestLabelProvider implements ILabelProvider |
| 5 | { |
| 6 | public function getTopLabel(pos:int):String |
| 7 | { |
| 8 | return makeLabel(pos); |
| 9 | } |
| 10 | |
| 11 | public function getBottomLabel(pos:int):String |
| 12 | { |
| 13 | return makeLabel(pos); |
| 14 | } |
| 15 | |
| 16 | private static function makeLabel(pos:int):String |
| 17 | { |
| 18 | return (1995 + pos).toString(); |
| 19 | } |
| 20 | } |
| 21 | } |
Note: See TracBrowser
for help on using the browser.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)