Newer
Older
CardRegister / src / hayashi / yuu / register / MainPanel.java
@yuuhayashi yuuhayashi on 26 Jan 2014 1 KB version 2010-03-19
package hayashi.yuu.register;

import javax.swing.JPanel;


public class MainPanel extends JPanel implements MainPanelData
{

	/////////////////////////////////////////////////////////////////////////////////////////////////
	//  
	//  スレッド に関するメソッド
	//  
    
	public static int timecount = 0;
	
	public static int getTimecount() {
		return timecount;
	}

	public static void setTimecount(int timecount) {
		MainPanel.timecount = timecount;
	}
	

	/////////////////////////////////////////////////////////////////////////////////////////////////
	//  
	//  MainPanel に関する共通メソッド
	//
	TouchScreen parentFrame;	// 親フレーム
	CollectData loginUser;		// 認証されたユーザー(USER_MODEのときのみ有効)
    
	public long getLoginUserId() {
		if (this.loginUser == null) {
			return 0L;
		}
		return this.loginUser.getId();
	}

	public CollectData getLoginUser() {
		return this.loginUser;
	}

	public TouchScreen getParentFrame() {
		return this.parentFrame;
	}

	public void setLoginUser(CollectData loginUser) {
		this.loginUser = loginUser;
	}

	public void setParentFrame(TouchScreen touchScreen) {
		this.parentFrame = touchScreen;
	}
}