logininfo.java
来自「题库管理系统,用最新的jsp技术开发的,里面有一些比较好的方法,希望与大家共享」· Java 代码 · 共 55 行
JAVA
55 行
/*
* LoginInfo.java
*
* Created on 2006年10月19日, 下午10:58
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package TiKuMS;
/**
*
* @author hp
*/
public class LoginInfo {
private boolean logined=false;
private int userID=0;
private String userName;
private String userType;
/** Creates a new instance of LoginInfo */
public void login(int userID,String userName,String userType)
{
logined=true;
this.userID=userID;
this.userName=userName;
this.userType=userType;
}
public void logout()
{
logined=false;
this.userID=0;
this.userName="";
this.userType="";
}
public LoginInfo() {
}
public boolean isLogined() {
return logined;
}
public int getUserID() {
return userID;
}
public String getUserName() {
return userName;
}
public String getUserType() {
return userType;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?