Newer
Older
CardRegister / src / hayashi / yuu / register / MainPanel.java
@yuuhayashi yuuhayashi on 26 Jan 2014 1 KB version 2010-03-19
  1. package hayashi.yuu.register;
  2.  
  3. import javax.swing.JPanel;
  4.  
  5.  
  6. public class MainPanel extends JPanel implements MainPanelData
  7. {
  8.  
  9. /////////////////////////////////////////////////////////////////////////////////////////////////
  10. //
  11. // スレッド に関するメソッド
  12. //
  13. public static int timecount = 0;
  14. public static int getTimecount() {
  15. return timecount;
  16. }
  17.  
  18. public static void setTimecount(int timecount) {
  19. MainPanel.timecount = timecount;
  20. }
  21.  
  22. /////////////////////////////////////////////////////////////////////////////////////////////////
  23. //
  24. // MainPanel に関する共通メソッド
  25. //
  26. TouchScreen parentFrame; // 親フレーム
  27. CollectData loginUser; // 認証されたユーザー(USER_MODEのときのみ有効)
  28. public long getLoginUserId() {
  29. if (this.loginUser == null) {
  30. return 0L;
  31. }
  32. return this.loginUser.getId();
  33. }
  34.  
  35. public CollectData getLoginUser() {
  36. return this.loginUser;
  37. }
  38.  
  39. public TouchScreen getParentFrame() {
  40. return this.parentFrame;
  41. }
  42.  
  43. public void setLoginUser(CollectData loginUser) {
  44. this.loginUser = loginUser;
  45. }
  46.  
  47. public void setParentFrame(TouchScreen touchScreen) {
  48. this.parentFrame = touchScreen;
  49. }
  50. }