function EntityWin(id,label,x,y,w,h) {
	this._id = id;
	this._parentId = -1;
	this._groupId = -1;
	this._childList = [];
	this._label = label;
	this._direction = 0;//0:为x,1:为y,2为混合;
	this._x = -1;
	this._y = -1;
	this._z = id;
	this._width = w;
	this._height = h;
	this._minLeft = -1;
	this._minTop = -1;
	this._defaultLeft = x;
	this._defaultTop = y;
	this._offsetLeft = 0;
	this._offsetTop = 0;
	this._button = null;
	this._padding = 0;
	this._isEmbed = false;
	if (typeof(EntityWin._initialized) == "undefined") {
		var _we = EntityWin.prototype;
		_we.$ = document.getElementById;
		/*------变量GET SET部份------*/
		_we.getId = function() {
			return this._id;
		}
		_we.getParentId = function() {
			return this._parentId;
		}
		_we.setParentId = function(n) {
			this._parentId = parseInt(n);
		}
		_we.getGroupId = function() {
			return this._groupId;
		}
		_we.setGroupId = function(n) {
			this._groupId = parseInt(n);
		}
		_we.getChildList = function() {
			return this._childList;
		}
		_we.setChildList = function(arr) {
			this._childList = arr;
		}
		_we.getChildListLength = function() {
			return this._childList.length;
		}
		_we.getChildListStr = function() {
			return this._childList.join("|");
		}
		_we.getLabel = function() {
			return this._label;
		}
		_we.setLabel = function(s) {
			this._label = s;
		}
		_we.getDirection = function() {
			return this._direction;
		}
		_we.setDirection = function(n) {
			this._direction = Number(n);
		}
		_we.getPosX = function() {
			return this._x;
		}	
		_we.setPosX = function(n) {
			this._x = parseInt(n);
		}
		_we.getPosY = function() {
			return this._y;
		}
		_we.setPosY = function(n) {
			this._y = parseInt(n);
		}
		_we.getZ = function() {
			return this._z;
		}
		_we.setZ = function(n) {
			this._z = parseInt(n);
		}
		_we.getWidth = function() {
			return this._width;
		}
		_we.setWidth = function(n) {
			this._width = parseInt(n);
		}
		_we.getHeight = function() {
			return this._height;
		}
		_we.setHeight = function(n) {
			this._height = parseInt(n);
		}
		_we.getMinLeft = function() {
			return this._minLeft;
		}
		_we.setMinLeft = function(n) {
			this._minLeft = parseInt(n);
		}
		_we.getMinTop = function() {
			return this._minTop;
		}
		_we.setMinTop = function(n) {
			this._minTop = parseInt(n);
		}
		_we.getDefaultLeft = function() {
			return this._defaultLeft;
		}
		_we.setDefaultLeft = function(n) {
			this._defaultLeft = parseInt(n);
		}
		_we.getDefaultTop = function() {
			return this._defaultTop;
		}
		_we.setDefaultTop = function(n) {
			this._defaultTop = parseInt(n);
		}
		_we.getOffsetLeft = function() {
			return this._offsetLeft;
		}
		_we.setOffsetLeft = function(n) {
			this._offsetLeft = parseInt(n);
		}
		_we.getOffsetTop = function() {
			return this._offsetTop;
		}
		_we.setOffsetTop = function(n) {
			this._offsetTop = parseInt(n);
		}
		_we.getButton = function() {
			return this._button;
		}
		_we.setButton = function(o) {
			this._button = o;
		}
		_we.getPadding = function() {
			return this._padding;
		}
		_we.setPadding = function(n) {
			this._padding = parseInt(n);
		}
		_we.getIsEmbed = function() {
			return this._isEmbed;
		}
		_we.setIsEmbed = function(b) {
			this._isEmbed = b;
		}
		EntityWin._initialized = true;
	}
}