1.  
  2. this.getGrabber = function() { return grabber; };
  3. this.getGrabberLabel = function() { return grabberLabel; };
  4. this.getTabButton = function(n) {
  5. switch(n) {
  6. case tabButton1.button: return tabButton1;
  7. case tabButton2.button: return tabButton2;
  8. case tabButton3.button: return tabButton3;
  9. case tabButton4.button: return tabButton4;
  10. case tabButton5.button: return tabButton5;
  11. default: return null;
  12. }
  13. };
  14. this.getTabPane = function(n) {
  15. switch(n) {
  16. case tabPane1.pane: return tabPane1;
  17. case tabPane2.pane: return tabPane2;
  18. case tabPane3.pane: return tabPane3;
  19. case tabPane4.pane: return tabPane4;
  20. case tabPane5.pane: return tabPane5;
  21. default: return null;
  22. }
  23. };
  24. this.getCloseButton = function() { return closeButton; };
  25. this.setCloseButton = function(btn) {
  26. closeButtonContainer.remove(closeButton);
  27. closeButton = null;
  28. closeButton = btn;
  29. closeButtonContainer.setSize(closeButton.getWidth(), closeButton.getHeight());
  30. closeButtonContainer.add(closeButton);
  31. }
  32. this.getCloseLabel = function() { return closeLabel; };
  33. this.getCloseImage = function() { return closeX; };
  34. this.getBackgroundColor = function() { return internalContainer.getStyleProperty("backgroundColor"); };
  35. this.setBackgroundColor = function(color) { internalContainer.setStyleProperty("backgroundColor", color); };
  36. this.selectTab = function(tab) {
  37. switch(tab) {
  38. case tabButton1.button: tabButton1.dispatchEvent("mouseover"); return;
  39. case tabButton2.button: tabButton2.dispatchEvent("mouseover"); return;
  40. case tabButton3.button: tabButton3.dispatchEvent("mouseover"); return;
  41. case tabButton4.button: tabButton4.dispatchEvent("mouseover"); return;
  42. case tabButton5.button: tabButton5.dispatchEvent("mouseover"); return;
  43. default: return;
  44. }
  45. }
  46.  
  47.