/Frameworks/AppKit/browser.platform/CPTabViewItem.j

http://github.com/jfahrenkrug/MapKit-HelloWorld · Unknown · 82 lines · 82 code · 0 blank · 0 comment · 0 complexity · a08ccf015520336e25997614e44d2291 MD5 · raw file

  1. I;21;Foundation/CPObject.jI;15;AppKit/CPView.jc;2568;
  2. CPSelectedTab=0;
  3. CPBackgroundTab=1;
  4. CPPressedTab=2;
  5. var _1=objj_allocateClassPair(CPObject,"CPTabViewItem"),_2=_1.isa;
  6. class_addIvars(_1,[new objj_ivar("_identifier"),new objj_ivar("_label"),new objj_ivar("_view"),new objj_ivar("_auxiliaryView")]);
  7. objj_registerClassPair(_1);
  8. objj_addClassForBundle(_1,objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
  9. class_addMethods(_1,[new objj_method(sel_getUid("initWithIdentifier:"),function(_3,_4,_5){
  10. with(_3){
  11. _3=objj_msgSendSuper({receiver:_3,super_class:objj_getClass("CPObject")},"init");
  12. if(_3){
  13. _identifier=_5;
  14. }
  15. return _3;
  16. }
  17. }),new objj_method(sel_getUid("setLabel:"),function(_6,_7,_8){
  18. with(_6){
  19. _label=_8;
  20. }
  21. }),new objj_method(sel_getUid("label"),function(_9,_a){
  22. with(_9){
  23. return _label;
  24. }
  25. }),new objj_method(sel_getUid("tabState"),function(_b,_c){
  26. with(_b){
  27. return _tabState;
  28. }
  29. }),new objj_method(sel_getUid("setIdentifier:"),function(_d,_e,_f){
  30. with(_d){
  31. _identifier=_f;
  32. }
  33. }),new objj_method(sel_getUid("identifier"),function(_10,_11){
  34. with(_10){
  35. return _identifier;
  36. }
  37. }),new objj_method(sel_getUid("setView:"),function(_12,_13,_14){
  38. with(_12){
  39. _view=_14;
  40. }
  41. }),new objj_method(sel_getUid("view"),function(_15,_16){
  42. with(_15){
  43. return _view;
  44. }
  45. }),new objj_method(sel_getUid("setAuxiliaryView:"),function(_17,_18,_19){
  46. with(_17){
  47. _auxiliaryView=_19;
  48. }
  49. }),new objj_method(sel_getUid("auxiliaryView"),function(_1a,_1b){
  50. with(_1a){
  51. return _auxiliaryView;
  52. }
  53. }),new objj_method(sel_getUid("tabView"),function(_1c,_1d){
  54. with(_1c){
  55. return _tabView;
  56. }
  57. })]);
  58. var _1e="CPTabViewItemIdentifierKey",_1f="CPTabViewItemLabelKey",_20="CPTabViewItemViewKey",_21="CPTabViewItemAuxViewKey";
  59. var _1=objj_getClass("CPTabViewItem");
  60. if(!_1){
  61. objj_exception_throw(new objj_exception(OBJJClassNotFoundException,"*** Could not find definition for class \"CPTabViewItem\""));
  62. }
  63. var _2=_1.isa;
  64. class_addMethods(_1,[new objj_method(sel_getUid("initWithCoder:"),function(_22,_23,_24){
  65. with(_22){
  66. _22=objj_msgSendSuper({receiver:_22,super_class:objj_getClass("CPObject")},"init");
  67. if(_22){
  68. _identifier=objj_msgSend(_24,"decodeObjectForKey:",_1e);
  69. _label=objj_msgSend(_24,"decodeObjectForKey:",_1f);
  70. _view=objj_msgSend(_24,"decodeObjectForKey:",_20);
  71. _auxiliaryView=objj_msgSend(_24,"decodeObjectForKey:",_21);
  72. }
  73. return _22;
  74. }
  75. }),new objj_method(sel_getUid("encodeWithCoder:"),function(_25,_26,_27){
  76. with(_25){
  77. objj_msgSend(_27,"encodeObject:forKey:",_identifier,_1e);
  78. objj_msgSend(_27,"encodeObject:forKey:",_label,_1f);
  79. objj_msgSend(_27,"encodeObject:forKey:",_view,_20);
  80. objj_msgSend(_27,"encodeObject:forKey:",_auxiliaryView,_21);
  81. }
  82. })]);