source:
code/Website/open-flash-chart/elements/menu/menu_item_factory.as
Last change on this file was 7849, checked in by , 15 years ago | |
---|---|
File size: 366 bytes |
Rev | Line | |
---|---|---|
[7849] | 1 | package elements.menu { |
2 | ||
3 | public class menu_item_factory { | |
4 | ||
5 | public static function make(chartID:String, style:Properties ):menuItem { | |
6 | ||
7 | switch( style.get('type') ) | |
8 | { | |
9 | case 'camera-icon': | |
10 | return new CameraIcon(chartID, style); | |
11 | break; | |
12 | ||
13 | default: | |
14 | return new menuItem(chartID, style); | |
15 | break; | |
16 | } | |
17 | } | |
18 | } | |
19 | } |
Note:
See TracBrowser
for help on using the repository browser.