Subversion Repositories HomeAutomation

Rev

Rev 1171 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1171 Rev 1185
Line 1... Line 1...
1
 
1
 
2
function MenuItem()
2
function MenuItem(parentDisplay)
3
{
3
{
-
 
4
    this.parentDisplay = parentDisplay;
-
 
5
    this.displayData = new Array();
4
}
6
}
-
 
7
 
-
 
8
/* the display object who created the menu item */
-
 
9
MenuItem.prototype.parentDisplay = null;
5
 
10
 
6
/* the data to display for this item, may be updated before sent to display via the doUpdate function */
11
/* the data to display for this item, may be updated before sent to display via the doUpdate function */
7
MenuItem.prototype.displayData = new Array();
12
MenuItem.prototype.displayData = null;
8
/* function to call when this menu item is active and left is choosen */
13
/* function to call when this menu item is active and left is choosen */
9
MenuItem.prototype.doLeft = null;
14
MenuItem.prototype.doLeft = null;
10
/* function to call when this menu item is active and right is choosen */
15
/* function to call when this menu item is active and right is choosen */
11
MenuItem.prototype.doRight = null;
16
MenuItem.prototype.doRight = null;
12
/* function to call when this menu item is active and button is pressed */
17
/* function to call when this menu item is active and button is pressed */
Line 18... Line 23...
18
/* what MenuItem is next item, if used */
23
/* what MenuItem is next item, if used */
19
MenuItem.prototype.prevItem = null;
24
MenuItem.prototype.prevItem = null;
20
/* what MenuItem to descend to, if used */
25
/* what MenuItem to descend to, if used */
21
MenuItem.prototype.descItem = null;
26
MenuItem.prototype.descItem = null;
22
 
27
 
23
MenuItem.setNextItem = function (nextItem)
28
MenuItem.prototype.setNextItem = function (nextItem)
24
{
29
{
25
    this.nextItem = nextItem;
30
    this.nextItem = nextItem;
26
}
31
}
27
MenuItem.setPrevItem = function (prevItem)
32
MenuItem.prototype.setPrevItem = function (prevItem)
28
{
33
{
29
    this.prevItem = prevItem;
34
    this.prevItem = prevItem;
30
}
35
}