JXTableMsgChatVC.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. //
  2. // JXTableViewController.h
  3. // Plancast
  4. //
  5. // Created by Leah Culver on 7/2/10.
  6. // Copyright (c) 2010 Leah Culver
  7. //
  8. // Permission is hereby granted, free of charge, to any person
  9. // obtaining a copy of this software and associated documentation
  10. // files (the "Software"), to deal in the Software without
  11. // restriction, including without limitation the rights to use,
  12. // copy, modify, merge, publish, distribute, sublicense, and/or sell
  13. // copies of the Software, and to permit persons to whom the
  14. // Software is furnished to do so, subject to the following
  15. // conditions:
  16. //
  17. // The above copyright notice and this permission notice shall be
  18. // included in all copies or substantial portions of the Software.
  19. //
  20. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  22. // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  23. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  24. // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  25. // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  26. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  27. // OTHER DEALINGS IN THE SOFTWARE.
  28. //
  29. #import <UIKit/UIKit.h>
  30. #import "JXTableView.h"
  31. #import "MJRefreshFooterView.h"
  32. #import "MJRefreshHeaderView.h"
  33. @class JXLabel;
  34. @class JXTableView;
  35. @protocol JXTableViewDelegate;
  36. @interface JXTableMsgChatVC : UIViewController<JXTableViewDelegate,UITableViewDataSource,UITableViewDelegate> {
  37. BOOL _isLoading;
  38. //refresh一次page+1
  39. int _page;
  40. JXTableView* _table;
  41. int _tableHeight;
  42. MJRefreshFooterView *_footer;
  43. MJRefreshHeaderView *_header;
  44. ATMHud* _wait;
  45. // JXTableViewController* _pSelf;
  46. int _oldRowCount;//翻页之前的行数
  47. NSTimeInterval _lastScrollTime;
  48. }
  49. @property (nonatomic, strong) JXTableView* tableView;
  50. @property(nonatomic,assign) BOOL isGotoBack;
  51. @property(nonatomic,assign) BOOL isFreeOnClose;
  52. @property(nonatomic,assign) BOOL isShowHeaderPull;
  53. @property(nonatomic,assign) BOOL isShowFooterPull;
  54. @property(nonatomic,strong) UIView *tableHeader;
  55. @property(nonatomic,strong) UIView *tableFooter;
  56. @property(nonatomic,assign) int heightHeader;
  57. @property(nonatomic,assign) int heightFooter;
  58. @property(nonatomic,strong) UIButton *footerBtnMid;
  59. @property(nonatomic,strong) UIButton *footerBtnLeft;
  60. @property(nonatomic,strong) UIButton *footerBtnRight;
  61. @property(nonatomic,strong) JXLabel *headerTitle;
  62. @property(nonatomic,strong) MJRefreshFooterView *footer;
  63. @property(nonatomic,strong) MJRefreshHeaderView *header;
  64. @property (nonatomic, strong) UIButton *gotoBackBtn;
  65. -(void)setupStrings;
  66. -(void)stopLoading;
  67. -(void)createHeadAndFoot;
  68. -(void)scrollToPageUp;
  69. -(void)scrollToPageDown;
  70. -(void)getServerData;
  71. -(void)actionQuit;
  72. -(void)onGotoHome;
  73. -(void)doQuit;
  74. -(void)actionTitle:(JXLabel*)sender;
  75. -(void)doAutoScroll:(NSIndexPath*)indexPath;
  76. //获取_table
  77. - (JXTableView *)getTableView;
  78. - (void)moveSelfViewToLeft;
  79. - (void)resetViewFrame;
  80. @end