OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / assets / javascripts / models / ground_color.js.coffee
1 class GroundColor extends Element\r
2   @single: () ->\r
3     'GroundColor'\r
4   \r
5   @plural: () ->\r
6     'GroundColors'\r
7   \r
8   @colum_structures: ->\r
9     {}\r
10   \r
11   defaults: {\r
12     x: 11\r
13   } \r
14   \r
15   initialize: () ->\r
16     confirm("Welcome to this world")\r
17   \r
18   @test: () ->\r
19     confirm( @single())\r
20     confirm( @plural() )\r
21     confirm( @class_name() )\r
22     confirm( @element_name() )\r
23     confirm( @table_name() )\r
24     confirm( @path_name() )\r
25     confirm( @colum_structures() )\r
26     \r
27   has_picture: () ->\r
28     true\r
29   \r
30   has_part: () ->\r
31     false\r
32   \r
33   extend_column: () ->\r
34     null\r
35   \r
36   test: () ->\r
37     confirm( @has_picture() )\r
38     confirm( @has_part() )\r
39     confirm( @parts() )\r
40     confirm( @has_helper('column_name') )\r
41     confirm( @element_name() )\r
42     confirm( @extend_column() )\r
43     confirm( @extend_element_name() )\r
44     confirm( @find_configurations(window.configurations,'v') )\r
45     confirm( @new_index() )\r
46     confirm( @set_new_index(3) )\r
47     confirm( @set_new_panel('v') )\r
48     confirm( @get_new_panel() )\r
49     confirm( '@get_panel()' )\r
50     confirm( @get_panel() )\r
51     confirm( @tag_id('c') )\r
52     confirm( @field_tag_id('f') )\r
53     confirm( @tag_panel_id() )\r
54     confirm( @tag_element_id() )\r
55     confirm( @tag_element_type() )\r
56     confirm( @tag_new_index() )\r
57     confirm( @path_name() )\r
58     confirm( @form_template() )\r
59     confirm( @scenario_template() )\r
60     confirm( @element_face_template() )\r
61     confirm( @form_helper_template('colum_name') )\r
62     confirm( @tag_attributes('column') )\r
63     confirm( @field_tag_attributes('column', 0, {}) )\r
64     confirm( @any_tag_attributes('name', {}) )\r
65     confirm( @select_tag_attributes(true, 'column', 0) )\r
66     confirm( @tag_attr('column', {}) )\r
67     confirm( @field_tag_attr('column', 1, {}) )\r
68     confirm( @any_tag_attr('name', {}) )\r
69 \r
70 @PanelPicture = PanelPicture\r