1 | <script type="text/javascript"> |
---|
2 | /* ************************************************** */ |
---|
3 | /* ****************** LISTS ************************* */ |
---|
4 | /* ************************************************** */ |
---|
5 | |
---|
6 | var ListPlatforms = Class.create( ListItem, { |
---|
7 | |
---|
8 | createItemDiv: function( itemHash, objectParameter ) |
---|
9 | { |
---|
10 | return new Plateform( itemHash, objectParameter ); |
---|
11 | } |
---|
12 | } ); |
---|
13 | |
---|
14 | var ListParameters = Class.create( ListItem, { |
---|
15 | |
---|
16 | createItemDiv: function( itemHash, objectParameter ) |
---|
17 | { |
---|
18 | return new Parameter( itemHash, objectParameter ); |
---|
19 | } |
---|
20 | } ); |
---|
21 | |
---|
22 | |
---|
23 | /* ***************************************************** */ |
---|
24 | /* ****************** ELEMENTS ************************* */ |
---|
25 | /* ***************************************************** */ |
---|
26 | var Plateform = Class.create( Item, { |
---|
27 | |
---|
28 | display : function( parentNode, className ) |
---|
29 | { |
---|
30 | this.createContainer( "containerPlateform", "containerPlateform " + className ); |
---|
31 | this.addName( "plateform_name" ); |
---|
32 | this.appendContainer( parentNode ); |
---|
33 | this.addObservers(); |
---|
34 | }, |
---|
35 | |
---|
36 | select: function() |
---|
37 | { |
---|
38 | this.selectWithParameter( "plateform_selected" ); |
---|
39 | }, |
---|
40 | |
---|
41 | unselect: function() |
---|
42 | { |
---|
43 | this.unselectWithParameter( "plateform_selected" ); |
---|
44 | } |
---|
45 | } ); |
---|
46 | |
---|
47 | var Parameter = Class.create( Item, { |
---|
48 | |
---|
49 | display : function( parentNode, className ) |
---|
50 | { |
---|
51 | this.createContainer( "containerParameter", "containerParameter " + className ); |
---|
52 | this.addName( "parameter_name" ); |
---|
53 | // this.addCode( "parameter_code" ); |
---|
54 | this.appendContainer( parentNode ); |
---|
55 | this.addObservers(); |
---|
56 | }, |
---|
57 | |
---|
58 | select: function() |
---|
59 | { |
---|
60 | this.selectWithParameter( "parameter_selected" ); |
---|
61 | }, |
---|
62 | |
---|
63 | unselect: function() |
---|
64 | { |
---|
65 | this.unselectWithParameter( "parameter_selected" ); |
---|
66 | } |
---|
67 | |
---|
68 | // addCode: function ( classNameValue ) |
---|
69 | // { |
---|
70 | // if( !this.divContainer ) |
---|
71 | // return; |
---|
72 | // |
---|
73 | // this.divName = $( document.createElement( "div" ) ); |
---|
74 | // this.divName.className = classNameValue; |
---|
75 | // this.divName.innerHTML = " (" + this.jsonElement.code + ")"; |
---|
76 | // |
---|
77 | // this.divContainer.appendChild( this.divName ); |
---|
78 | // } |
---|
79 | } ); |
---|
80 | </script> |
---|