Subversion Repositories HomeAutomation

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

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